(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b3e4810"],{"062a":function(e,t,n){e.exports=n.p+"img/guj.1c085f68.jpg"},1031:function(e,t,n){e.exports=n.p+"img/Raja.7b389e72.jpg"},"20f6":function(e,t,n){},"2b5d":function(e,t,n){"use strict";n("7db0"),n("c975"),n("fb6a"),n("a434"),n("b0c0"),n("d3b7"),n("25f0"),n("8a79");var i=n("5530"),s=(n("2bfd"),n("b974")),a=n("c6a6"),r=n("80d2");t["a"]=a["a"].extend({name:"v-combobox",props:{delimiters:{type:Array,default:function(){return[]}},returnObject:{type:Boolean,default:!0}},data:function(){return{editingIndex:-1}},computed:{computedCounterValue:function(){return this.multiple?this.selectedItems.length:(this.internalSearch||"").toString().length},hasSlot:function(){return s["a"].options.computed.hasSlot.call(this)||this.multiple},isAnyValueAllowed:function(){return!0},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!!this.$slots["no-data"]&&!this.hideNoData)}},methods:{onInternalSearchChanged:function(e){if(e&&this.multiple&&this.delimiters.length){var t=this.delimiters.find((function(t){return e.endsWith(t)}));null!=t&&(this.internalSearch=e.slice(0,e.length-t.length),this.updateTags())}this.updateMenuDimensions()},genInput:function(){var e=a["a"].options.methods.genInput.call(this);return delete e.data.attrs.name,e.data.on.paste=this.onPaste,e},genChipSelection:function(e,t){var n=this,a=s["a"].options.methods.genChipSelection.call(this,e,t);return this.multiple&&(a.componentOptions.listeners=Object(i["a"])(Object(i["a"])({},a.componentOptions.listeners),{},{dblclick:function(){n.editingIndex=t,n.internalSearch=n.getText(e),n.selectedIndex=-1}})),a},onChipInput:function(e){s["a"].options.methods.onChipInput.call(this,e),this.editingIndex=-1},onEnterDown:function(e){e.preventDefault(),this.getMenuIndex()>-1||this.$nextTick(this.updateSelf)},onFilteredItemsChanged:function(e,t){this.autoSelectFirst&&a["a"].options.methods.onFilteredItemsChanged.call(this,e,t)},onKeyDown:function(e){var t=e.keyCode;s["a"].options.methods.onKeyDown.call(this,e),this.multiple&&t===r["t"].left&&0===this.$refs.input.selectionStart?this.updateSelf():t===r["t"].enter&&this.onEnterDown(e),this.changeSelectedIndex(t)},onTabDown:function(e){if(this.multiple&&this.internalSearch&&-1===this.getMenuIndex())return e.preventDefault(),e.stopPropagation(),this.updateTags();a["a"].options.methods.onTabDown.call(this,e)},selectItem:function(e){this.editingIndex>-1?this.updateEditing():a["a"].options.methods.selectItem.call(this,e)},setSelectedItems:function(){null==this.internalValue||""===this.internalValue?this.selectedItems=[]:this.selectedItems=this.multiple?this.internalValue:[this.internalValue]},setValue:function(e){s["a"].options.methods.setValue.call(this,null!=e?e:this.internalSearch)},updateEditing:function(){var e=this.internalValue.slice();e[this.editingIndex]=this.internalSearch,this.setValue(e),this.editingIndex=-1},updateCombobox:function(){var e=Boolean(this.$scopedSlots.selection)||this.hasChips;e&&!this.searchIsDirty||(this.internalSearch!==this.getText(this.internalValue)&&this.setValue(),e&&(this.internalSearch=void 0))},updateSelf:function(){this.multiple?this.updateTags():this.updateCombobox()},updateTags:function(){var e=this.getMenuIndex();if(!(e<0)||this.searchIsDirty){if(this.editingIndex>-1)return this.updateEditing();var t=this.selectedItems.indexOf(this.internalSearch);if(t>-1){var n=this.internalValue.slice();n.splice(t,1),this.setValue(n)}if(e>-1)return this.internalSearch=null;this.selectItem(this.internalSearch),this.internalSearch=null}},onPaste:function(e){if(this.multiple&&!this.searchIsDirty){var t=e.clipboardData.getData("text/vnd.vuetify.autocomplete.item+plain");t&&-1===this.findExistingIndex(t)&&(e.preventDefault(),s["a"].options.methods.selectItem.call(this,t))}}}})},"2bfd":function(e,t,n){},"8a79":function(e,t,n){"use strict";var i=n("23e7"),s=n("06cf").f,a=n("50c4"),r=n("5a34"),o=n("1d80"),c=n("ab13"),l=n("c430"),u="".endsWith,h=Math.min,d=c("endsWith"),f=!l&&!d&&!!function(){var e=s(String.prototype,"endsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!f&&!d},{endsWith:function(e){var t=String(o(this));r(e);var n=arguments.length>1?arguments[1]:void 0,i=a(t.length),s=void 0===n?i:h(a(n),i),c=String(e);return u?u.call(t,c,s):t.slice(s-c.length,s)===c}})},a523:function(e,t,n){"use strict";n("99af"),n("4de4"),n("b64b"),n("2ca0"),n("20f6"),n("4b85");var i=n("e8f2"),s=n("d9f7");t["a"]=Object(i["a"])("container").extend({name:"v-container",functional:!0,props:{id:String,tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},render:function(e,t){var n,i=t.props,a=t.data,r=t.children,o=a.attrs;return o&&(a.attrs={},n=Object.keys(o).filter((function(e){if("slot"===e)return!1;var t=o[e];return e.startsWith("data-")?(a.attrs[e]=t,!1):t||"string"===typeof t}))),i.id&&(a.domProps=a.domProps||{},a.domProps.id=i.id),e(i.tag,Object(s["a"])(a,{staticClass:"container",class:Array({"container--fluid":i.fluid}).concat(n||[])}),r)}})},c6a6:function(e,t,n){"use strict";n("4de4"),n("7db0"),n("c975"),n("d81d"),n("45fc"),n("498a");var i=n("5530"),s=(n("2bfd"),n("b974")),a=n("8654"),r=n("d9f7"),o=n("80d2"),c=Object(i["a"])(Object(i["a"])({},s["b"]),{},{offsetY:!0,offsetOverflow:!0,transition:!1});t["a"]=s["a"].extend({name:"v-autocomplete",props:{allowOverflow:{type:Boolean,default:!0},autoSelectFirst:{type:Boolean,default:!1},filter:{type:Function,default:function(e,t,n){return n.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1}},hideNoData:Boolean,menuProps:{type:s["a"].options.props.menuProps.type,default:function(){return c}},noFilter:Boolean,searchInput:{type:String,default:void 0}},data:function(){return{lazySearch:this.searchInput}},computed:{classes:function(){return Object(i["a"])(Object(i["a"])({},s["a"].options.computed.classes.call(this)),{},{"v-autocomplete":!0,"v-autocomplete--is-selecting-index":this.selectedIndex>-1})},computedItems:function(){return this.filteredItems},selectedValues:function(){var e=this;return this.selectedItems.map((function(t){return e.getValue(t)}))},hasDisplayedItems:function(){var e=this;return this.hideSelected?this.filteredItems.some((function(t){return!e.hasItem(t)})):this.filteredItems.length>0},currentRange:function(){return null==this.selectedItem?0:String(this.getText(this.selectedItem)).length},filteredItems:function(){var e=this;return!this.isSearching||this.noFilter||null==this.internalSearch?this.allItems:this.allItems.filter((function(t){var n=Object(o["o"])(t,e.itemText),i=null!=n?String(n):"";return e.filter(t,String(e.internalSearch),i)}))},internalSearch:{get:function(){return this.lazySearch},set:function(e){this.lazySearch=e,this.$emit("update:search-input",e)}},isAnyValueAllowed:function(){return!1},isDirty:function(){return this.searchIsDirty||this.selectedItems.length>0},isSearching:function(){return this.multiple&&this.searchIsDirty||this.searchIsDirty&&this.internalSearch!==this.getText(this.selectedItem)},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!this.hideNoData)},$_menuProps:function(){var e=s["a"].options.computed.$_menuProps.call(this);return e.contentClass="v-autocomplete__content ".concat(e.contentClass||"").trim(),Object(i["a"])(Object(i["a"])({},c),e)},searchIsDirty:function(){return null!=this.internalSearch&&""!==this.internalSearch},selectedItem:function(){var e=this;return this.multiple?null:this.selectedItems.find((function(t){return e.valueComparator(e.getValue(t),e.getValue(e.internalValue))}))},listData:function(){var e=s["a"].options.computed.listData.call(this);return e.props=Object(i["a"])(Object(i["a"])({},e.props),{},{items:this.virtualizedItems,noFilter:this.noFilter||!this.isSearching||!this.filteredItems.length,searchInput:this.internalSearch}),e}},watch:{filteredItems:"onFilteredItemsChanged",internalValue:"setSearch",isFocused:function(e){e?(document.addEventListener("copy",this.onCopy),this.$refs.input&&this.$refs.input.select()):(document.removeEventListener("copy",this.onCopy),this.updateSelf())},isMenuActive:function(e){!e&&this.hasSlot&&(this.lazySearch=void 0)},items:function(e,t){t&&t.length||!this.hideNoData||!this.isFocused||this.isMenuActive||!e.length||this.activateMenu()},searchInput:function(e){this.lazySearch=e},internalSearch:"onInternalSearchChanged",itemText:"updateSelf"},created:function(){this.setSearch()},methods:{onFilteredItemsChanged:function(e,t){var n=this;e!==t&&(this.setMenuIndex(-1),this.$nextTick((function(){n.internalSearch&&(1===e.length||n.autoSelectFirst)&&(n.$refs.menu.getTiles(),n.setMenuIndex(0))})))},onInternalSearchChanged:function(){this.updateMenuDimensions()},updateMenuDimensions:function(){this.isMenuActive&&this.$refs.menu&&this.$refs.menu.updateDimensions()},changeSelectedIndex:function(e){this.searchIsDirty||(this.multiple&&e===o["t"].left?-1===this.selectedIndex?this.selectedIndex=this.selectedItems.length-1:this.selectedIndex--:this.multiple&&e===o["t"].right?this.selectedIndex>=this.selectedItems.length-1?this.selectedIndex=-1:this.selectedIndex++:e!==o["t"].backspace&&e!==o["t"].delete||this.deleteCurrentItem())},deleteCurrentItem:function(){var e=this.selectedIndex,t=this.selectedItems[e];if(this.isInteractive&&!this.getDisabled(t)){var n=this.selectedItems.length-1;if(-1!==this.selectedIndex||0===n){var i=this.selectedItems.length,s=e!==i-1?e:e-1,a=this.selectedItems[s];a?this.selectItem(t):this.setValue(this.multiple?[]:void 0),this.selectedIndex=s}else this.selectedIndex=n}},clearableCallback:function(){this.internalSearch=void 0,s["a"].options.methods.clearableCallback.call(this)},genInput:function(){var e=a["a"].options.methods.genInput.call(this);return e.data=Object(r["a"])(e.data,{attrs:{"aria-activedescendant":Object(o["n"])(this.$refs.menu,"activeTile.id"),autocomplete:Object(o["n"])(e.data,"attrs.autocomplete","off")},domProps:{value:this.internalSearch}}),e},genInputSlot:function(){var e=s["a"].options.methods.genInputSlot.call(this);return e.data.attrs.role="combobox",e},genSelections:function(){return this.hasSlot||this.multiple?s["a"].options.methods.genSelections.call(this):[]},onClick:function(e){this.isInteractive&&(this.selectedIndex>-1?this.selectedIndex=-1:this.onFocus(),this.isAppendInner(e.target)||this.activateMenu())},onInput:function(e){if(!(this.selectedIndex>-1)&&e.target){var t=e.target,n=t.value;t.value&&this.activateMenu(),this.internalSearch=n,this.badInput=t.validity&&t.validity.badInput}},onKeyDown:function(e){var t=e.keyCode;s["a"].options.methods.onKeyDown.call(this,e),this.changeSelectedIndex(t)},onSpaceDown:function(e){},onTabDown:function(e){s["a"].options.methods.onTabDown.call(this,e),this.updateSelf()},onUpDown:function(e){e.preventDefault(),this.activateMenu()},selectItem:function(e){s["a"].options.methods.selectItem.call(this,e),this.setSearch()},setSelectedItems:function(){s["a"].options.methods.setSelectedItems.call(this),this.isFocused||this.setSearch()},setSearch:function(){var e=this;this.$nextTick((function(){e.multiple&&e.internalSearch&&e.isMenuActive||(e.internalSearch=!e.selectedItems.length||e.multiple||e.hasSlot?null:e.getText(e.selectedItem))}))},updateSelf:function(){(this.searchIsDirty||this.internalValue)&&(this.valueComparator(this.internalSearch,this.getValue(this.internalValue))||this.setSearch())},hasItem:function(e){return this.selectedValues.indexOf(this.getValue(e))>-1},onCopy:function(e){if(-1!==this.selectedIndex){var t=this.selectedItems[this.selectedIndex],n=this.getText(t);e.clipboardData.setData("text/plain",n),e.clipboardData.setData("text/vnd.vuetify.autocomplete.item+plain",n),e.preventDefault()}}}})},e8f2:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n("99af"),n("4de4"),n("a15b"),n("b64b"),n("2ca0"),n("498a");var i=n("2b0e");function s(e){return i["a"].extend({name:"v-".concat(e),functional:!0,props:{id:String,tag:{type:String,default:"div"}},render:function(t,n){var i=n.props,s=n.data,a=n.children;s.staticClass="".concat(e," ").concat(s.staticClass||"").trim();var r=s.attrs;if(r){s.attrs={};var o=Object.keys(r).filter((function(e){if("slot"===e)return!1;var t=r[e];return e.startsWith("data-")?(s.attrs[e]=t,!1):t||"string"===typeof t}));o.length&&(s.staticClass+=" ".concat(o.join(" ")))}return i.id&&(s.domProps=s.domProps||{},s.domProps.id=i.id),t(i.tag,s,a)}})}},ffd5:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-container",{attrs:{fluid:""}},[i("v-card",{staticClass:"mt-3"},[e.$store.getters.warehouse.warehouseInfo&&e.$store.getters.warehouse.warehouseInfo.first_name?i("v-btn",{staticClass:"primary text-wrap",attrs:{block:""}},[i("v-icon",{attrs:{left:"",color:"white"}},[e._v(" mdi-map-marker ")]),e._v(e._s(e.$t("location.picker"))+" : "),i("b",[e._v(e._s(e.getWarehouseName))])],1):i("v-btn",{staticClass:"primary",attrs:{block:""}},[i("v-icon",{attrs:{left:"",color:"white"}},[e._v(" mdi-map-marker ")]),e._v(e._s(e.$t("location.picker"))+" :"),i("b",[e._v(" "+e._s(e.getWarehouseNameSelect))])],1),i("v-row",{staticClass:"pa-1 mt-5",attrs:{"no-gutters":""}},e._l(e.warehouselist,(function(t){return i("v-col",{key:t.id,staticClass:"pa-1",attrs:{cols:"6"}},[1==t.id?i("v-img",{attrs:{"max-height":"150","max-width":"200",src:n("062a")},on:{click:function(n){return e.selectWarehouse(t)}}}):e._e(),2==t.id?i("v-img",{attrs:{"max-height":"150","max-width":"200",src:n("1031")},on:{click:function(n){return e.selectWarehouse(t)}}}):e._e()],1)})),1)],1),e.selectiondiv?i("v-card",[i("v-row",[i("v-col",{staticClass:"pt-5 pb-0",attrs:{cols:"12"}},[i("v-combobox",{attrs:{items:e.mitraList,"item-text":"title","item-mitraListsvalue":"id",clearable:"",outlined:"",label:"Select Warehouse"},model:{value:e.selectedMitra,callback:function(t){e.selectedMitra=t},expression:"selectedMitra"}})],1)],1),i("v-row",{staticClass:"ml-8"},[i("v-col",[i("v-btn",{on:{click:function(t){return e.setWarehouse()}}},[e._v("next")])],1),i("v-col",[i("v-btn",{on:{click:function(t){e.nextpage=!0}}},[e._v("skip")])],1)],1)],1):e._e()],1)},s=[],a=(n("c740"),n("d81d"),n("96cf"),n("1da1")),r=n("6303"),o=n("2ef0"),c=n.n(o),l={name:"locationPickerComponent",props:{redirectRoute:[String,Boolean]},data:function(){return{selectedWarehouse:null,warehouse:null,nextpage:!1,selectiondiv:!1,mitraList:[],selectedMitra:null,warehouselist:[{first_name:"Ahmedabad",title:"Gujarat",id:1}],api:{},apisource:{endpoint:"/hub/warehouselist",method:"get"}}},mounted:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){var n,i,s,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=JSON.parse('[{"hostname": "r.arelishop.in","selectedHub": "Arelishop","first_name": "Arelishop","title": "Arelishop","id": 4},{"hostname": "userdemo.frendy.in","selectedHub": "Kadi","first_name": "Kadi","title": "Kadi","id": 4}]'),console.log("VUE_APP_SUBDOMAIN_LIST",n),console.log("window.location.href",window.location.origin),i=window.location.hostname,s=0;case 5:if(!(s<n.length)){t.next=14;break}if(a=n[s],console.log("subdomaininfo",i,a.hostname,e.$store.getters.selectedHub,a.selectedHub),i!==a.hostname||e.$store.getters.selectedHub==a.selectedHub){t.next=11;break}return e.selectWarehouse({first_name:a.first_name,title:a.title,id:a.id}),t.abrupt("break",14);case 11:s++,t.next=5;break;case 14:e.$store.getters.warehouse.warehouseId?e.selectedWarehouse=e.$store.getters.warehouse.warehouseId:e.selectedWarehouse="new warehouse",console.log("mounted",e.selectedWarehouse);case 16:case"end":return t.stop()}}),t)})))()},computed:{getWarehouseName:function(){return console.log("asas",this.$store.getters.warehouse.warehouseInfo.first_name),this.$store.getters.warehouse.warehouseInfo.first_name},getWarehouseNameSelect:function(){return"select Warehouse"},selectedWarehoueId:{get:function(){var e=this.$store.getters.warehouseId;return c.a.findIndex(this.warehouselist,(function(t){return t.id==e}))},set:function(e){console.log("newValue",e)}}},methods:{setWarehouse:function(){console.log("Warehouse......"),this.$store.dispatch("setCurrentSelectedHub",{warehouseId:this.selectedMitra.id,warehouseInfo:this.selectedMitra}),this.nextpage=!0},selectWarehouse:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!(t.$store.getters.warehouseId&&t.$store.getters.selectedPartnerId&&t.$store.getters.selectedHub)){n.next=5;break}return t.$store.dispatch("setSnackbar",{text:"location already selected",color:"info",timeout:2e3}),n.next=4,t.$router.push({name:"Home"});case 4:return n.abrupt("return");case 5:console.log("entered in selected method",e),console.log("entered in selected method",t.selectedWarehouse),t.$store.dispatch("setSelectedHub",e.first_name),t.$store.dispatch("setSnackbar",{text:"Selected Location: "+e.first_name}),t.selectiondiv=!0,t.mitraLists();case 11:case"end":return n.stop()}}),n)})))()},homepage:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.redirectRoute){t.next=8;break}if(console.log("this.redirectRoute -- PUSH"),!e.nextpage){t.next=6;break}return t.next=5,e.$router.push({name:e.redirectRoute});case 5:window.location.reload();case 6:t.next=12;break;case 8:return console.log("this.redirectRoute -- GO"),t.next=11,e.$router.go(e.$router.currentRoute);case 11:window.location.reload();case 12:case"end":return t.stop()}}),t)})))()},mitraLists:function(){var e=this;return Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,r["a"].get("/wareHouse/warehouselist").then((function(t){e.mitraList=t.data.map((function(e){return e.title=e.id+" "+e.first_name+" "+e.last_name,e})),console.log("this.mitraList",e.mitraList)}));case 2:case"end":return t.stop()}}),t)})))()}},watch:{nextpage:function(){console.log("call nextpage"),this.homepage()}}},u=l,h=n("2877"),d=n("6544"),f=n.n(d),p=n("8336"),m=n("b0af"),g=n("62ad"),v=n("2b5d"),I=n("a523"),b=n("132d"),S=n("adda"),x=n("0fd9"),w=Object(h["a"])(u,i,s,!1,null,null,null);t["default"]=w.exports;f()(w,{VBtn:p["a"],VCard:m["a"],VCol:g["a"],VCombobox:v["a"],VContainer:I["a"],VIcon:b["a"],VImg:S["a"],VRow:x["a"]})}}]);