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AAQR,EAAqBS,KAAK,KAAM,IAC3DH,EAAmBI,KAAOV,EAAqBS,KAAK,KAAMH,EAAmBI,KAAKD,KAAKH,G,KC9CvF3C,EAAoBQ,OAAEL,EAAW,CAAC,MAAM,IAAOH,EAAoB,OACnE,IAAIgD,EAAsBhD,EAAoBQ,OAAEL,EAAW,CAAC,MAAM,IAAOH,EAAoB,MAC7FgD,EAAsBhD,EAAoBQ,EAAEwC,E","sources":["webpack://stromodul-portal/webpack/runtime/chunk loaded","webpack://stromodul-portal/./Scripts/IndexClientModel.ts","webpack://stromodul-portal/./Scripts/jQuery.booleanRequired.ts","webpack://stromodul-portal/./Scripts/layout.ts","webpack://stromodul-portal/./Scripts/loader.ts","webpack://stromodul-portal/webpack/bootstrap","webpack://stromodul-portal/webpack/runtime/define property getters","webpack://stromodul-portal/webpack/runtime/global","webpack://stromodul-portal/webpack/runtime/hasOwnProperty shorthand","webpack://stromodul-portal/webpack/runtime/make namespace object","webpack://stromodul-portal/webpack/runtime/runtimeId","webpack://stromodul-portal/webpack/runtime/jsonp chunk loading","webpack://stromodul-portal/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IndexClientModel = void 0;\nvar loader_1 = require(\"./loader\");\nvar IndexClientModel = (function () {\n function IndexClientModel() {\n }\n IndexClientModel.prototype.Init = function () {\n var _this = this;\n this.FormBuy = document.getElementById('js-buy-form');\n var buyZip = this.FormBuy.querySelector('input[type=\"text\"]');\n var buyTenantList = document.getElementById('js-buy-tenant-list');\n this.FormBuy.addEventListener('submit', function (e) {\n e.preventDefault();\n _this.LoadSupplier(_this.FormBuy, buyZip, buyTenantList, '.toggle-supplier');\n });\n this.FormSell = document.getElementById('js-sell-form');\n if (this.FormSell != null) {\n var sellZip_1 = this.FormSell.querySelector('input[type=\"text\"]');\n var sellTenantList_1 = document.getElementById('js-sell-tenant-list');\n this.FormSell.addEventListener('submit', function (e) {\n e.preventDefault();\n _this.LoadSupplier(_this.FormSell, sellZip_1, sellTenantList_1, '.toggle-buyer');\n });\n }\n };\n IndexClientModel.prototype.LoadSupplier = function (form, zipInput, tenantList, toggle) {\n var validation = $(form).validate();\n if (validation.numberOfInvalids() > 0) {\n return;\n }\n form.setAttribute('data-busy', 'true');\n zipInput.disabled = true;\n var zip = zipInput.value;\n var url = form.action;\n var me = this;\n $.getJSON(url + '/' + zip, function (data) {\n var buttons = tenantList.querySelectorAll('button');\n for (var i = 0; i < buttons.length; i++) {\n tenantList.removeChild(buttons[i]);\n }\n for (var i = 0; i < data.length; i++) {\n var btn = document.createElement('button');\n btn.type = 'submit';\n btn.formAction = data[i].Url;\n btn.name = 'zipcode';\n btn.value = zip;\n btn.classList.add('list-group-item');\n btn.classList.add('list-group-item-action');\n if (i == 0)\n btn.classList.add('rounded-top');\n btn.innerText = data[i].Name;\n tenantList.appendChild(btn);\n }\n if (data.length == 0) {\n $(tenantList).parent().find('#no-supplier').show();\n }\n else {\n $(tenantList).parent().find('#no-supplier').hide();\n }\n if (me.HasBranding && data.length == 1) {\n $(tenantList).parent().find('.waiting-message').show();\n $(tenantList).find('button[type=\"submit\"]').click();\n }\n $(toggle).collapse('toggle');\n form.setAttribute('data-busy', '');\n zipInput.disabled = false;\n });\n };\n return IndexClientModel;\n}());\nexports.IndexClientModel = IndexClientModel;\n(0, loader_1.InitClientContext)(IndexClientModel);\n","jQuery.validator.unobtrusive.adapters.add(\"brequired\", function (options) {\n if (options.element.tagName.toUpperCase() == \"INPUT\" && options.element.type.toUpperCase() == \"CHECKBOX\") {\n options.rules[\"required\"] = true;\n if (options.message) {\n options.messages[\"required\"] = options.message;\n }\n }\n});\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nrequire(\"jquery-validation\");\nrequire(\"jquery-validation-unobtrusive\");\nrequire(\"./jQuery.booleanRequired\");\nrequire(\"bootstrap\");\nif ($('main > .container').height() > $(window).height()) {\n $('body').append('');\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InitClientContext = InitClientContext;\nfunction InitClientContext(type) {\n $(document).ready(function () {\n var model = new type();\n var context = document.getElementsByTagName(\"client-data\");\n if (context.length === 1) {\n var json = context[0].innerHTML;\n var data = JSON.parse(json);\n $.extend(model, data);\n }\n model.Init();\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].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\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__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\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};","__webpack_require__.j = 171;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t133: 0,\n\t171: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkstromodul_portal\"] = self[\"webpackChunkstromodul_portal\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\n__webpack_require__.O(undefined, [121], () => (__webpack_require__(386)))\nvar __webpack_exports__ = __webpack_require__.O(undefined, [121], () => (__webpack_require__(44)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","loader_1","IndexClientModel","prototype","Init","_this","this","FormBuy","document","getElementById","buyZip","querySelector","buyTenantList","addEventListener","e","preventDefault","LoadSupplier","FormSell","sellZip_1","sellTenantList_1","form","zipInput","tenantList","toggle","$","validate","numberOfInvalids","setAttribute","disabled","zip","value","url","action","me","getJSON","data","buttons","querySelectorAll","i","length","removeChild","btn","createElement","type","formAction","Url","name","classList","add","innerText","Name","appendChild","parent","find","show","hide","HasBranding","click","collapse","InitClientContext","validator","unobtrusive","adapters","options","element","tagName","toUpperCase","rules","message","messages","height","window","append","Object","defineProperty","exports","ready","model","context","getElementsByTagName","json","innerHTML","JSON","parse","extend","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","module","__webpack_modules__","call","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","keys","every","key","splice","r","d","definition","o","enumerable","get","g","globalThis","Function","obj","prop","hasOwnProperty","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""}