PageSourceSearch

https://get-in.com/en/chunk-PIHTCUTS.js

js get-in.com collected 2026-10-03 20:26:07 UTC 3,175 bytes, 2 lines download raw bytes

1import{a as P}from"./chunk-MNVAI74P.js";import{a as i,c as w}from"./chunk-SNKY6I5R.js";import{H as m}from"./chunk-QKVROGXD.js";import{K as c,O as n,Wa as b,c as f,ca as l,fa as d,ja as I,oa as g,q as a,r as L,s as h,x as p}from"./chunk-4BCQERYJ.js";var k=(()=>{let s=class s{constructor(t,e){this.http=t,this.platformId=e,this.ipApiUrl="https://ipapi.co/json/",this.api_base_url=P.api_base_url}getLocation(){return this.checkPermission().pipe(l(t=>(console.log("Permission status:",t),t==="granted"?this.getGpsLocation():t==="prompt"?this.getGpsLocation():(console.warn("Permission denied, using IP-based location"),this.getIpLocation()))),c(t=>(console.error("Error getting location, using IP-based location:",t),this.getIpLocation())))}checkPermission(){return m(this.platformId)?a(navigator.permissions.query({name:"geolocation"})).pipe(l(t=>a([t.state]))):L("denied")}getGpsLocation(){return new f(t=>{if(!m(this.platformId)||!navigator.geolocation){t.error("Geolocation is not supported by your browser, will use IP-based location");return}navigator.geolocation.getCurrentPosition(e=>{t.next({latitude:e.coords.latitude,longitude:e.coords.longitude,source:"GPS"}),t.complete()},e=>{console.warn("Geolocation failed, using IP-based location",e),t.error(e)})}).pipe(c(t=>(console.error("GPS failed, using IP location:",t),this.getIpLocation())))}getIpLocation(){return this.http.get(this.ipApiUrl).pipe(l(t=>{if(t&&t.latitude&&t.longitude){let e={latitude:t.latitude,longitude:t.longitude,source:"IP"};return a([e])}return h(()=>new Error("Could not fetch IP-based location"))}),c(t=>h(()=>new Error("IP-based location failed: "+t.message))))}getLocations(){let t=`${this.api_base_url}/api/cms/locations`,e=new i({"X-Requested-With":"XMLHttpRequest"});return this.http.get(t,{headers:e}).pipe(n(1),p(o=>o.data))}getLocationsSuggestion(){let t=`${this.api_base_url}/api/cms/locations/cities`,e=new i({"X-Requested-With":"XMLHttpRequest"});return this.http.get(t,{headers:e}).pipe(n(1),p(o=>o.data))}getHomepageLocations(){let t=`${this.api_base_url}/api/locations`,e=new i({"X-Requested-With":"XMLHttpRequest"});return this.http.get(t,{headers:e}).pipe(n(1),p(o=>o.data))}createLocation(t){let e=`${this.api_base_url}/api/cms/locations`,o=new i({"X-Requested-With":"XMLHttpRequest"});return this.http.post(e,t,{headers:o})}createLocations(t){let e={locations:t},o=`${this.api_base_url}/api/cms/locations/bulk-create`,r=new i({"X-Requested-With":"XMLHttpRequest"});return this.http.post(o,e,{headers:r})}editLocation(t,e){let o=`${this.api_base_url}/api/cms/locations/${t}`,r=new i({"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json"});return this.http.patch(o,e,{headers:r}).pipe(n(1),d(q=>{console.log("response ",q)}))}deleteLocation(t){let e=`${this.api_base_url}/api/cms/locations/${t}`,o=new i({"X-Requested-With":"XMLHttpRequest"});return this.http.delete(e,{headers:o}).pipe(n(1),d(r=>{console.log("response ",r)}))}};s.\u0275fac=function(e){return new(e||s)(g(w),g(b))},s.\u0275prov=I({token:s,factory:s.\u0275fac,providedIn:"root"});let u=s;return u})();export{k as a};
2/**i18n:781fa348e2b2338c8b8af109ef025fd7bb624da87d4802aee2d7ec6e37a8b725*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.