{"version":3,"file":"site.bundle.js","sources":["webpack://neighborstore_b2b/./wwwroot/js/site.js"],"sourcesContent":["$(function () {\n if ($('.selectpicker').length > 0) {\n $('.selectpicker').on('show.bs.select', function (e, clickedIndex, isSelected, previousValue) {\n $('.selectpicker').parent().find(\"ul.dropdown-menu\").addClass(\"show\");\n });\n }\n});\n\nfunction removeURL(stringURL) {\n var pos = stringURL.indexOf(\"?\");\n var result = stringURL;\n\n if (pos > 0) {\n result = stringURL.substr(0, pos);\n }\n\n return result;\n}\nwindow.removeURL = removeURL;\n\nfunction getCitiesByStateAddress(event) {\n var stateId = $(\"#stateId option:selected\").val();\n\n app.customerService.getCitiesByState(stateId, function (response) {\n if (response != null) {\n $(\"#cityId\").empty();\n $(\"#cityId\").append('');\n\n $.each(response, function (i, city) {\n $(\"#cityId\").append('');\n });\n\n getNeighborhoodsByCityAddress();\n }\n }, function (response) {\n });\n}\nwindow.getCitiesByStateAddress = getCitiesByStateAddress;\n\nfunction forgeryToken() {\n return kendo.antiForgeryTokens();\n}\nwindow.forgeryToken = forgeryToken;\n\nfunction setFilterCities() {\n var parameter = kendo.antiForgeryTokens();\n parameter.stateId = $(\"#UserStateId\").val();\n\n return parameter;\n}\nwindow.setFilterCities = setFilterCities;\n\nfunction setFilterCitiesRegister() {\n var parameter = kendo.antiForgeryTokens();\n parameter.stateId = $(\"#SignUpB2C_StateId\").val();\n\n return parameter;\n}\nwindow.setFilterCitiesRegister = setFilterCitiesRegister;\n\nfunction setFilterCitiesRegisterWithoutloginb2b() {\n var parameter = kendo.antiForgeryTokens();\n parameter.stateId = $(\"#RegistrationCustomer_StateId\").val();\n return parameter;\n}\nwindow.setFilterCitiesRegisterWithoutloginb2b = setFilterCitiesRegisterWithoutloginb2b;\n\nfunction setFilterNeighborhoodsRegister() {\n var parameter = kendo.antiForgeryTokens();\n parameter.cityId = $(\"#SignUpB2C_CityId\").val();\n\n return parameter;\n}\nwindow.setFilterNeighborhoodsRegister = setFilterNeighborhoodsRegister;\n\nfunction setFilterNeighborhoodsRegisterWithoutloginb2b() {\n var parameter = kendo.antiForgeryTokens();\n parameter.cityId = $(\"#RegistrationCustomer_CityId\").val();\n return parameter;\n}\nwindow.setFilterNeighborhoodsRegisterWithoutloginb2b = setFilterNeighborhoodsRegisterWithoutloginb2b;\n\nfunction setFilterCitiesAddressForm() {\n var parameter = kendo.antiForgeryTokens();\n parameter.stateId = $(\"#Address_StateId\").val();\n\n return parameter;\n}\nwindow.setFilterCitiesAddressForm = setFilterCitiesAddressForm;\n\nfunction setFilterNeighborhoodsAddressForm() {\n var parameter = kendo.antiForgeryTokens();\n parameter.cityId = $(\"#Address_CityId\").val();\n\n return parameter;\n}\nwindow.setFilterNeighborhoodsAddressForm = setFilterNeighborhoodsAddressForm;\n\nfunction setSteetType(e) {\n var itemSeleted = this.dataItem();\n\n if (itemSeleted != undefined) {\n const name = itemSeleted.Name.toLowerCase();\n const nameCapitalized = name.charAt(0).toUpperCase() + name.slice(1);\n $('#StreetLabel').html(nameCapitalized);\n }\n}\nwindow.setSteetType = setSteetType;\n\nfunction setFilterCitiesAddress() {\n var parameter = kendo.antiForgeryTokens();\n parameter.stateId = $(\"#BillingAddress_StateId\").val();\n\n return parameter;\n}\nwindow.setFilterCitiesAddress = setFilterCitiesAddress;\n\nfunction setFilterNeighborhoodsAddress() {\n var parameter = kendo.antiForgeryTokens();\n parameter.cityId = $(\"#BillingAddress_CityId\").val();\n\n return parameter;\n}\nwindow.setFilterNeighborhoodsAddress = setFilterNeighborhoodsAddress;\n\n$(document).ready(function () {\n var messageByAnswer = $('#message-by-answer').val();\n var titleByAnswer = $('#title-by-answer').val();\n\n if (messageByAnswer != undefined && messageByAnswer != \"\" && titleByAnswer != undefined && titleByAnswer != \"\") {\n var notification = $(\"#notification\").data(\"kendoNotification\");\n notification.show({\n title: titleByAnswer,\n message: messageByAnswer\n }, \"error\");\n }\n\n //$(\"#cityCustomer\").kendoTooltip({\n // filter: \"span\",\n // position: \"bottom\",\n // offset: 10,\n // height: \"70px\",\n // width: \"350px\",\n // content: \"Los productos que estás viendo para comprar puede que esten solo disponibles para esta ciudad.
Puedes cambiar tu ubicación aquí.\"\n //}).data(\"kendoTooltip\").show($(\"#cityCustomer\"));\n});\n"],"names":["$","e","clickedIndex","isSelected","previousValue","window","stringURL","pos","result","event","stateId","app","response","i","city","getNeighborhoodsByCityAddress","kendo","parameter","itemSeleted","undefined","name","nameCapitalized","document","messageByAnswer","titleByAnswer","notification"],"mappings":"sMAAAA,EAAE,WACMA,EAAE,iBAAiB,MAAM,CAAG,GAC5BA,EAAE,iBAAiB,EAAE,CAAC,iBAAkB,SAAUC,CAAC,CAAEC,CAAY,CAAEC,CAAU,CAAEC,CAAa,EACxFJ,EAAE,iBAAiB,MAAM,GAAG,IAAI,CAAC,oBAAoB,QAAQ,CAAC,OAClE,EAER,EAYAK,CAAAA,OAAO,SAAS,CAVhB,SAAmBC,CAAS,EACxB,IAAIC,EAAMD,EAAU,OAAO,CAAC,KACxBE,EAASF,EAMb,OAJIC,EAAM,GACNC,CAAAA,EAASF,EAAU,MAAM,CAAC,EAAGC,EAAG,EAG7BC,CACX,CAoBAH,CAAAA,OAAO,uBAAuB,CAjB9B,SAAiCI,CAAK,EAClC,IAAIC,EAAUV,EAAE,4BAA4B,GAAG,GAE/CW,IAAI,eAAe,CAAC,gBAAgB,CAACD,EAAS,SAAUE,CAAQ,EAC5C,MAAZA,IACAZ,EAAE,WAAW,KAAK,GAClBA,EAAE,WAAW,MAAM,CAAC,oDAEpBA,EAAE,IAAI,CAACY,EAAU,SAAUC,CAAC,CAAEC,CAAI,EAC9Bd,EAAE,WAAW,MAAM,CAAC,kBAAoBc,EAAK,EAAE,CAAG,SAAWA,EAAK,IAAI,CAAG,KAAOA,EAAK,IAAI,CAAG,YAChG,GAEAC,gCAER,EAAG,SAAUH,CAAQ,EACrB,EACJ,CAMAP,CAAAA,OAAO,YAAY,CAHnB,WACI,OAAOW,MAAM,iBAAiB,EAClC,CASAX,CAAA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