(self.webpackChunksp_seller_dashboard_client=self.webpackChunksp_seller_dashboard_client||[]).push([[5603,8730],{46849:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(81643),a=o.n(n),s=o(27361),r=o.n(s);const i={download:function(e,t,o){var n=navigator.userAgent.toLowerCase();if(a()(n).call(n,"chrome")>-1||a()(n).call(n,"firefox")>-1){var s=new XMLHttpRequest;s.open("GET",e.url,!0),s.responseType="arraybuffer",s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)s.onload=function(o){t&&t(o.target.status);var n=new Blob([this.response],{type:e.fileType}),a=document.createElement("a");a.setAttribute("href",window.URL.createObjectURL(n));var s=r()(this.getResponseHeader("content-disposition")&&this.getResponseHeader("content-disposition").split("filename="),"[1]",e.fileName);'"'===r()(s,"[0]","")&&'"'===r()(s,"".concat([s.length-1]),"")?a.setAttribute("download",s.substring(1,s.length-1)):a.setAttribute("download",s),document.body.appendChild(a),a.click()};else{var n,a=new Blob([this.response]),i=new FileReader;i.addEventListener("loadend",(()=>{try{n=JSON.parse(i.result)}catch(e){n=500}o(n)})),i.readAsText(a)}},s.send()}else a()(n).call(n,"safari")>-1&&window.open(e.url)}}},6992:(e,t,o)=>{"use strict";o.d(t,{Z:()=>d});var n=o(12151),a=o(67943),s=o(12408),r=o(44183);var i=a.Z.getItem("__cachedGeoLocation"),c={getCurrentGeoLocation:function(){return n.Z.getPromise((function(e,t){!r.A&&navigator&&"geolocation"in navigator?navigator.geolocation.getCurrentPosition((function(o,n){var r,c;n?t(n):(c={},(r=o).timestamp&&(c.timestamp=r.timestamp),r&&r.coords&&(r.coords.accuracy&&(c.accuracy=r.coords.accuracy),r.coords.altitude&&(c.altitude=r.coords.altitude),r.coords.latitude&&(c.latitude=r.coords.latitude),r.coords.longitude&&(c.longitude=r.coords.longitude)),o=c,s.Z.isEmpty(o)||function(e){i=e,a.Z.setItem("__cachedGeoLocation",e)}(o),e(o))})):t({message:"GeoLocation is not supported!"})}))},getGeoLocation:function(){return c.getCurrentGeoLocation(),i}};const d=c}}]);