PageSourceSearch

https://hygglo.com/_next/static/chunks/240-6e80ff813a27eb61.js?dpl=dpl_8pYtRRDKyeZWEwr9bka2CZfvfJVf

js hygglo.com collected 2026-10-01 12:11:53 UTC 31,762 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="88b0c7bd-2397-49c4-8c88-88a06fb33ae4",e._sentryDebugIdIdentifier="sentry-dbid-88b0c7bd-2397-49c4-8c88-88a06fb33ae4")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[240],{20169:(e,t,r)=>{r.r(t),r.d(t,{ApiContextProvider:()=>a,useApi:()=>c});var s=r(54568),i=r(7620),o=r(72153);let n=(0,i.createContext)(null),a=e=>{let{api:t,children:r}=e;return(0,s.jsx)(n.Provider,{value:t,children:r})},c=()=>{let e=(0,o.Z2)(e=>e.isAuthenticated),t=(0,i.useContext)(n);if(!t)throw Error("API not found");return{api:t,isLoggedIn:e}}},31019:(e,t,r)=>{r.d(t,{A:()=>s});function s(e,t){let r=e.safeParse(t);if(r.success)return r.data}},47065:(e,t,r)=>{r.d(t,{hD:()=>n,x6:()=>a});var s=r(48183),i=r(31019);let o=s.Ik({error:s.Ik({messagesToUser:s.lq(s.Ik({msg:s.Yj(),title:s.Yj()})),code:s.lq(s.Yj())})});class n extends Error{constructor(e,t){super(e),Object.assign(this,t)}}async function a(e,t){var r,s,a,c;let u,h=await fetch(e,t);if((null!=(r=h.headers.get("content-type"))?r:"").includes("application/json"))u=await h.json();else{let e=await h.text();throw new n("Invalid JSON response from server",{status:h.status,fullResponse:e})}if(h.status>=400){let{messagesToUser:e,code:t}=function(e){var t;let r=(0,i.A)(o,e),{messagesToUser:s,code:n}=null!=(t=null==r?void 0:r.error)?t:{};return{messagesToUser:s,code:n}}(u);throw new n(null!=(c=null!=(a=u.message)?a:null==(s=u.error)?void 0:s.message)?c:"API Error",{status:h.status,messagesToUser:e,code:t,fullResponse:u})}return u}},72153:(e,t,r)=>{r.d(t,{Z2:()=>h,nc:()=>u,zX:()=>c});var s=r(54568),i=r(7620),o=r(74582),n=r(49359);let a=(0,i.createContext)(null),c=e=>{let{initialData:t,children:r}=e,[o]=(0,i.useState)(()=>(function(e){var t;let r=null!=(t=null==e?void 0:e.refreshToken)?t:null;return(0,n.y)()(e=>({refreshToken:r,isAuthenticated:null!==r,setRefreshToken:t=>e({refreshToken:t,isAuthenticated:null!==t})}))})(t));return(0,s.jsx)(a.Provider,{value:o,children:r})};function u(){let e=(0,i.useContext)(a);if(!e)throw TypeError("useAuthStore must be used within AuthStoreProvider");return e}function h(e){return(0,o.Pj)(u(),e)}},83672:(e,t,r)=>{r.d(t,{nC:()=>en,NR:()=>u,hD:()=>B.hD,v3:()=>x,r_:()=>h,Dc:()=>et,uZ:()=>es});var s=r(892),i=r(13386),o=r(97839);let n="ngHyggloApp",a="lQVS05DGy9SQdAEInEPqTMK3aktEfSc7iupC7BYM4JY=";class c{constructor(e){this.core=e}}var u=function(e){return e.NEEDS_AUTHORIZE="needs_authorize",e.NEEDS_DATA="needs_data",e.NEEDS_VERIFICATION="needs_verification",e.READY_TO_REGISTER="ready_to_register",e.READY_FOR_LOGIN="ready_for_login",e.USED="used",e.EXPIRED="expired",e.SUCCESS="success",e.ERROR="error",e}({}),h=function(e){return e.USER_SIGN="USER_SIGN",e.PENDING="PENDING",e}({});class l extends c{appleMigration(e){let{fatllamaAuthorizationCode:t,hyggloAuthorizationCode:r}=e;return this.core.postJson("/v4/auth/apple-migration",{json:{fatllamaAuthorizationCode:t,hyggloAuthorizationCode:r},requireAuth:!1})}initiateEmailVerification(e){let{email:t,authTokenHash:r,reCaptchaToken:s}=e;return this.core.postJson("/v4/auth/email/initiate-verification",{json:{email:t,authTokenHash:r,reCaptchaToken:s},requireAuth:!1})}verifyEmail(e){let{email:t,code:r,authTokenHash:s}=e;return this.core.postJson("/v4/auth/email/verify",{json:{email:t,code:r,authTokenHash:s},requireAuth:!1})}initiatePhoneVerification(e){let{phoneNumber:t,authTokenHash:r,country:s,reCaptchaToken:i}=e;return this.core.postJson("/v4/auth/phone/initiate-verification",{json:{phoneNumber:t,authTokenHash:r,country:s,reCaptchaToken:i},requireAuth:!1})}verifyPhone(e){let{phoneNumber:t,code:r,authTokenHash:s}=e;return this.core.postJson("/v4/auth/phone/verify",{json:{phoneNumber:t,code:r,authTokenHash:s},requireAuth:!1})}register(e){return this.core.postJson("/v4/auth/register",{json:e,requireAuth:!1})}loginWithAuthToken(e){let{sessionId:t,authTokenHash:r}=e;return this.core.postJson("/v4/auth/login",{json:{sessionId:t,authTokenHash:r},requireAuth:!1})}updateAuthenticationData(e){return this.core.patchJson("/v4/auth/update-data",{json:e,requireAuth:!1})}authenticate(e){let{sessionId:t,provider:r,data:s,purpose:i,country:o}=e;return this.core.postJson("/v4/auth/authenticate",{query:{country:o},json:{sessionId:t,provider:r,data:s,purpose:i},requireAuth:!1})}
1verifyCaptcha(e){let{authTokenHash:t,reCaptchaToken:r}=e;return this.core.postJson("/v4/auth/verify-captcha",{json:{authTokenHash:t,reCaptchaToken:r},requireAuth:!1})}getAuthenticationProviders(e){let{country:t}=e;return this.core.getJson("/v4/auth/providers",{query:{country:t},requireAuth:!1})}getAuthenticationTokenStatus(e){let{authTokenHash:t}=e;return this.core.postJson("/v4/auth/status",{json:{authTokenHash:t},requireAuth:!1})}async login(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"password",s={grant_type:r,username:e,password:t,client_id:n,client_secret:a},i=this.core.getSessionId();i&&(s.session_id=i);let{refresh_token:o}=await this.core.postForm("/token",{form:s,requireAuth:!1});return{refreshToken:o}}checkEmail(e,t){return this.core.postJson("/v4/user/check-email",{json:{email:e,reCaptchaToken:t.reCaptchaToken},requireAuth:!1})}async sendResetPasswordEmail(e){let{country:t,email:r,reCaptchaToken:s}=e;return await this.core.postJson("/v4/password-reset",{query:{country:t},json:{email:r,reCaptchaToken:s},requireAuth:!1})}async resetPassword(e,t,r){return await this.core.putJson("/v4/password-reset/".concat(e),{json:{newPassword:t,confirmPassword:r},requireAuth:!1})}async update(e){await this.core.patchJson("/v4/my/user/current",{json:e,requireAuth:!0})}async updateProfileImage(e){return await this.core.putJson("/v4/my/user/profile-image",{json:e,requireAuth:!0})}async updateProfile(e){return await this.core.putJson("/v4/my/user/current",{json:e,requireAuth:!0})}getCurrentUser(){return this.core.getJson("/v4/my/user/current",{requireAuth:!0})}async getVendorOnboardingUrl(){let e=await this.core.getJson("/v4/my/vendor-onboarding",{requireAuth:!0});return(null==e?void 0:e.url)||""}constructor(...e){super(...e),this.getRegisterPresignedImageUrl=async e=>await this.core.postJson("/v4/auth/presigned-url",{json:e,requireAuth:!1}),this.getPresignedImageUrl=async e=>await this.core.postJson("/v4/my/user/presigned-url",{json:e,requireAuth:!0})}}class d extends c{async getAnnouncements(){return await this.core.getJson("/v4/announcements",{requireAuth:!1})}}class v extends c{constructor(...e){super(...e),this.getAll=e=>this.core.getJson("/v4/categories",{query:{country:e},avoidCorsPreflight:!0,requireAuth:!1}),this.getTop=e=>this.core.getJson("/v4/categories/top",{query:{country:e},avoidCorsPreflight:!0,requireAuth:!1}),this.get=async(e,t)=>{let{locationSlug:r,country:s}=t,i="number"==typeof e?e:function(e){let t=e.split("-")[0];if(!t)throw Error("TODO: handle invalid slug");return parseInt(t,10)}(e);return await this.core.getJson("/v4/categories/".concat(i),{query:{location:r,country:s},avoidCorsPreflight:!0,requireAuth:!1})},this.search=e=>{let{query:t,includeSearchSuggestions:r,categoryId:s}=e;return this.core.getJson("/v4/categories/search",{query:{keywords:t,includeSearchSuggestions:r,categoryId:s},avoidCorsPreflight:!0,requireAuth:!1})}}}class y extends c{async report(e){let{userId:t,productListingId:r,reason:s,notes:i}=e;await this.core.postJson("/v4/censorship/report",{json:{userId:t,productListingId:r,reason:s,notes:i},requireAuth:!0})}async block(e){let{userId:t}=e;await this.core.postJson("/v4/my/censorship/block",{json:{userId:t},requireAuth:!0})}}class g extends c{initiate(e){return this.core.postJson("/v4/my/eid-verification/initiate",{json:e,requireAuth:!0})}getStatus(e){return this.core.getJson("/v4/my/eid-verification/status/".concat(e),{requireAuth:!0})}getAvailableMethods(){return this.core.getJson("/v4/my/eid-verification/available-methods",{requireAuth:!0})}}class p extends c{async getFeatureFlags(){return await this.core.getJson("/v4/feature-flags",{requireAuth:!1})}}class w extends c{getPredictions(e){let{searchTerm:t,requireAddress:r}=e;return this.core.getJson("/v4/locations/autocomplete",{query:{searchTerm:t,requireAddress:r},avoidCorsPreflight:!0,requireAuth:!1})}geocodePlaceId(e){return this.core.getJson("/v4/locations/geocode",{query:e,requireAuth:!1})}geocodePosition(e){return this.core.getJson("/v4/locations/geocode",{query:e,requireAuth:!1})}}class m extends c{async get(e){let{slug:t,categoryId:r,statsOnly:s,country:i}=e;return await this.core.getJson("/v4/location-areas/".concat(t),{query:{categoryId:r,statsOnly:s,country:i},requireAuth:!1})}async findByPosition(e){let{longitude:t,latitude:r,country:s}=e;return await this.core.getJson("/v4/location-areas",{query:{longitude:t,latitude:r,country:s},requireAuth:!1})}search(e,t){return this.core.getJson("/v4/location-areas",{query:{q:e,country:t},requireAuth:!1})}constructor(...e){super(...e),this.findBestByPosition=async e=>{var t;let{longitude:r,latitude:s,country:i}=e;return null!=(t=(await this.findByPosition({longitude:r,latitude:s,country:i}))[0])?t:null}}}class f extends c{constructor(...e){super(...e),this.getCouponTransactions=()=>this.core.getJson("/v4/my/coupon-transactions",{requireAuth:!0})}}var A=r(92022);class q extends c{constructor(...e){super(...e),this.getAll=async()=>await this.core.getJson("/v4/my/products",{requireAuth:!0}),this.getAllPublished=async()=>await this.core.getJson("/v4/my/products?isPublished=true",{requireAuth:!0}),this.get=async e=>await this.core.getJson("/v4/my/products/".concat(e),{requireAuth:!0}),this.updateUnavailableDates=async(e,t)=>await this.core.postJson("/v4/my/products/".concat(e,"/unavailability-dates"),{json:{dates:t},requireAuth:!0}),this.create=async e=>{let t=await this.core.postJson("/v4/my/products",{json:e,requireAuth:!0});return(0,A.s)({eventName:"Item added",parameters:{categoryId:e.categoryId||""}}),t},this.update=async(e,t)=>await this.core.putJson("/v4/my/products/".concat(e),{json:t,requireAuth:!0}),this.partialUpdate=async(e,t)=>await this.core.patchJson("/v4/my/products/".concat(e),{json:t,requireAuth:!0}),this.delete=async e=>await this.core.deleteJson("/v4/my/products/".concat(e),{requireAuth:!0}),this.getPresignedImageUrl=async e=>await this.core.postJson("/v4/my/products/presigned-url",{json:e,requireAuth:!0}),this.validateVehicleInfo=async e=>await this.core.postJson("/v4/my/products/validate-vehicle-info",{json:{vehicleInfo:e},requireAuth:!0}),this.updateVehicleInfo=async e=>await this.core.patchJson("/v4/my/products/update-vehicle-info",{json:e,requireAuth:!0}),this.suggestCategory=async e=>await this.core.postJson("/v4/my/products/suggest-category",{json:e,requireAuth:!0})}}class _ extends c{constructor(...e){super(...e),this.upsert=e=>this.core.putJson("/v4/my/product-locations",{json:{location:e},requireAuth:!0}),this.delete=async e=>{await this.core.deleteJson("/v4/my/product-locations/".concat(e.id),{requireAuth:!0})}}}class J extends c{getAll(){return this.core.getJson("/v4/my/notifications",{requireAuth:!0})}async markAsConsumed(e){return await this.core.postJson("/v4/my/notifications/mark-read",{json:e,requireAuth:!0})}}class k extends c{create(e){if(!("message"in e)&&!("selectedDates"in e))throw Error("OrderAPI.create requires either message or selectedDates");if("selectedDates"in e){let{productListingId:t,selectedDates:r,message:s,quantity:i}=e,o={productId:t,rentalStartDate:r.from,rentalEndDate:r.to};return s&&(o.message=s),i&&i>1&&(o.quantity=i),this.core.postJson("/v4/my/orders",{json:o,requireAuth:!0})}let{productListingId:t,message:r}=e;return this.core.postJson("/v4/my/orders",{json:{productId:t,message:r},requireAuth:!0})}update(e,t,r){return this.validateOrderId(e),this.core.patchJson("/v4/my/orders/".concat(e),{json:t,query:r,requireAuth:!0})}getCalculatedNewPrice(e,t){this.validateOrderId(e);let{newOrderPrice:r}=t;return this.core.getJson("/v4/my/order-price-change-calculator/".concat(e),{query:{newOrderPrice:r},requireAuth:!0})}get(e,t){this.validateOrderId(e);let{timezone:r}=t;return this.core.getJson("/v4/my/orders/".concat(e),{query:{timezone:r},requireAuth:!0})}counts(){return this.core.getJson("/v4/my/orders/count",{requireAuth:!0})}list(e){let{role:t,filter:r,offset:s,limit:i,sort:o,searchTerm:n}=e;return this.core.getJson("/v4/my/orders",{query:{role:t,filter:r,offset:s,limit:i,sort:o,searchTerm:n},requireAuth:!0})}getUnavailableDates(e){return this.validateOrderId(e),this.core.getJson("/v4/my/orders/".concat(e,"/unavailable-dates"),{requireAuth:!0})}getInvoices(){return this.core.getJson("/v4/my/orders/paid-out",{requireAuth:!0})}getReceipts(){return this.core.getJson("/v4/my/receipts",{requireAuth:!0})}getLastOrderDeliveryToApprove(e,t){return this.validateOrderId(e),this.core.getJson("/v4/my/order-deliveries/".concat(e,"/to-approve/").concat(t),{requireAuth:!0})}bookFromRecommendation(e,t){return this.core.postJson("/v4/my/order-recommendations/".concat(e,"/book"),{json:t,requireAuth:!0})}extend(e,t){return this.validateOrderId(e),this.core.postJson("/v4/my/orders/".concat(e,"/extend"),{json:t,requireAuth:!0})}getExtendPreview(e,t){return this.validateOrderId(e),this.core.getJson("/v4/my/orders/".concat(e,"/extend/preview"),{query:t,requireAuth:!0})}validateOrderId(e){if(isNaN(e)||e<=0)throw Error("Invalid order ID: ".concat(e))}constructor(...e){super(...e),this.getPresignedImageUrl=async e=>await this.core.postJson("/v4/my/orders/presigned-url",{json:e,requireAuth:!0}),this.getOrderDeliveryPresignedUrl=async e=>await this.core.postJson("/v4/my/order-deliveries/presigned-url",{json:e,requireAuth:!0})}}class I extends c{payOrder(e){let{paymentMethodId:t,autoConfirm:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{autoConfirm:!0};return this.core.postJson("/v4/my/payments",{json:{orderId:e,paymentMethodId:t,autoConfirm:r},requireAuth:!0})}confirmOrder(e,t){return this.core.postJson("/v4/my/payments/confirm",{json:{orderId:e,paymentIntentId:t},requireAuth:!0})}getSavedCards(e){let{orderId:t}=e;return this.core.getJson("/v4/my/stored-cards?orderId=".concat(t),{requireAuth:!0})}getStripeCredentials(e){let{orderId:t}=e;return this.core.getJson("/v4/my/payments/stripe-credentials-for-order?orderId=".concat(t),{requireAuth:!0})}}class j extends c{constructor(...e){var t;super(...e),t=this,this.get=async e=>await this.core.getJson("/v4/product-listings/".concat(e),{requireAuth:!1}),this.find=async(e,t)=>{let{pageIndex:r=0,pageSize:s=24,country:i,location:o}=t;return await this.core.getJson("/v4/product-listings/search",{query:{...function(e){let t={};return"categoryId"in e&&(t.categoryIds=e.categoryId),e.selectedDates&&(t.selectedStartDate=e.selectedDates.from,t.selectedEndDate=e.selectedDates.to),"ownerId"in e&&(t.ownerId=e.ownerId),"vendorId"in e&&(t.vendorId=e.vendorId),e.position&&(t.latitude=e.position.latitude,t.longitude=e.position.longitude),"keywords"in e&&(t.keywords=e.keywords),"tag"in e&&(t.tag=e.tag),t}(e),pageSize:s,pageIndex:r,country:i},location:o,requireAuth:!1})},this.findFavorites=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pageIndex:r=0,pageSize:s=24}=e;return await t.core.getJson("/v4/product-listings/search",{query:{isFavorite:!0,pageSize:s,pageIndex:r},requireAuth:!0})},this.autocomplete=async(e,t,r)=>await this.core.getJson("/v4/product-listings/autocomplete",{query:{query:e,country:t,...r&&{categoryId:r}},avoidCorsPreflight:!0,requireAuth:!1}),this.setAsFavorite=async e=>{await this.core.postJson("/v4/my/product-listing-favorites",{json:{productListingId:e},requireAuth:!0})},this.removeAsFavorite=async e=>{await this.core.deleteJson("/v4/my/product-listing-favorites/".concat(e),{requireAuth:!0})},this.getFavorites=async()=>{let{productListingIds:e}=await this.core.getJson("/v4/my/product-listing-favorites",{requireAuth:!0});return e},this.getPrice=async e=>await this.core.getJson("/v4/product-listings/".concat(e.slug,"/price"),{query:{startDate:e.selectedDates.from,endDate:e.selectedDates.to,country:e.country,...e.quantity&&e.quantity>1?{quantity:e.quantity}:{}},requireAuth:!1}),this.getAvailableStock=async e=>await this.core.getJson("/v4/product-listings/".concat(e.slug,"/available-stock"),{query:{from:e.from,to:e.to},requireAuth:!1}),this.getRecentlyActiveItems=async()=>await this.core.getJson("/v4/recently-active-items",{requireAuth:!1})}}class P extends c{constructor(...e){super(...e),this.sync=e=>{let{deviceToken:t,deviceType:r,deviceId:s,permissionGranted:i}=e;return this.core.postJson("/v4/my/notification-tokens",{json:{deviceToken:t,deviceType:r,deviceId:s,permissionGranted:i},requireAuth:!0})},this.testPushNotification=()=>this.core.postJson("/v4/my/notification-tokens/test",{json:{},requireAuth:!0})}}class b extends c{constructor(...e){super(...e),this.getTop=async e=>{var t;let r=await this.core.getJson("/v4/product-reviews?rating=5&$limit=50",{query:{country:e},requireAuth:!1});return(null!=(t=null==r?void 0:r.data)?t:[]).filter(e=>null!==e.text).slice(0,20)},this.getForOwner=async e=>{let{ownerId:t,limit:r=100,country:s}=e;return await this.core.getJson("/v4/product-reviews",{query:{ownerId:t,$limit:r,country:s},requireAuth:!1})},this.getForCategory=async e=>
1{let{categorySlug:t,locationAreaSlug:r,limit:s=25,offset:i=0,country:o}=e;return await this.core.getJson("/v4/category-reviews/".concat(t),{query:{limit:s,offset:i,locationAreaSlug:r,country:o},requireAuth:!1})},this.replyToReview=e=>{let{reviewId:t,reply:r}=e;return this.core.putJson("/v4/my/reviews/".concat(t,"/reply"),{json:{reply:r},requireAuth:!0})},this.logActionClickedPublicReviewRequest=e=>{let{id:t,actionClicked:r}=e;return this.core.patchJson("/v4/my/public-review-requests/".concat(t,"/action-clicked"),{json:{actionClicked:r},requireAuth:!0})}}}class T extends c{async get(e){var t;let{timezone:r}=e,s=await this.core.getJson("/v4/my/snoozes",{query:{timezone:r},requireAuth:!0});return(null==s?void 0:s.length)&&null!=(t=s[0])?t:null}async remove(e){await this.core.deleteJson("/v4/my/snoozes/".concat(e),{requireAuth:!0})}create(e){let{hours:t,timezone:r}=e;return this.core.postJson("/v4/my/snoozes",{json:{hours:t},query:{timezone:r},requireAuth:!0})}}class E extends c{constructor(...e){super(...e),this.getTestimonials=async e=>{let t=await fetch("https://content2.hygglo.com/api/testimonials?filters[Country]=".concat(e,"&populate=Image"));return(await t.json()).data},this.getTerms=async e=>{let t=await fetch("https://content2.hygglo.com/api/terms?filters[Country]=".concat(e));return await t.json()},this.getPrivacyPolicy=async e=>{let t=await fetch("https://content2.hygglo.com/api/privacy-policies?filters[Country]=".concat(e));return await t.json()},this.getContactInfo=async e=>(await this.core.getJson("/v4/bootstrap",{query:{country:e},requireAuth:!1})).contactInfo}}class C extends c{constructor(...e){super(...e),this.getVendor=async e=>{let{slug:t}=e;return await this.core.getJson("/v4/vendor/".concat(t),{requireAuth:!1})},this.getPayouts=async()=>await this.core.getJson("/v4/my/payouts",{requireAuth:!0}),this.getFavorites=async()=>await this.core.getJson("/v4/my/user-favorites",{requireAuth:!0}),this.getFavoriteIds=async()=>(await this.getFavorites()).map(e=>e.id),this.setAsFavorite=async e=>{await this.core.postJson("/v4/my/user-favorites",{json:{favoriteUserId:e},requireAuth:!0})},this.removeAsFavorite=async e=>{await this.core.deleteJson("/v4/my/user-favorites/".concat(e),{requireAuth:!0})},this.validateDeletion=async()=>await this.core.postJson("/v4/my/user/delete/validate",{json:{},requireAuth:!0}),this.delete=async()=>{await this.core.deleteJson("/v4/my/user/delete",{requireAuth:!0})},this.initiateEmailVerification=async e=>{let{email:t,authToken:r}=e;return await this.core.postJson("/v4/my/email/initiate-verification",{json:{email:t,authToken:r},requireAuth:!r})},this.verifyEmail=async e=>{let{email:t,code:r,authToken:s}=e;return await this.core.postJson("/v4/my/email/verify",{json:{email:t,code:r,authToken:s},requireAuth:!s})},this.initiatePhoneVerification=async e=>{let{phoneNumber:t,reCaptchaToken:r,country:s,authToken:i}=e;return await this.core.postJson("/v4/my/phone/initiate-verification",{json:{phoneNumber:t,reCaptchaToken:r,country:s,authToken:i},requireAuth:!i})},this.verifyPhone=async e=>{let{phoneNumber:t,code:r,authToken:s}=e;return await this.core.postJson("/v4/my/phone/verify",{json:{phoneNumber:t,code:r,authToken:s},requireAuth:!s})}}}class D extends c{async isBlocked(e){let{userId:t}=e;return(await this.core.getJson("/v4/my/user-block/is-blocked",{query:{blockedUserId:t},requireAuth:!0})).isBlocked}async block(e){let{userId:t,reason:r}=e;await this.core.postJson("/v4/my/user-block/block",{json:{blockedUserId:t,reason:r},requireAuth:!0})}async unblock(e){let{userId:t}=e;await this.core.postJson("/v4/my/user-block/unblock",{json:{blockedUserId:t},requireAuth:!0})}}class R extends c{getRequirementsForOrder(e){return this.core.getJson("/v4/my/all-requirements/".concat(e),{requireAuth:!0})}createPersonaInquiry(e){return this.core.postJson("/v4/my/all-requirements/".concat(e,"/persona-inquiry"),{json:{},requireAuth:!0})}createDocument(e){return this.core.postJson("/v4/my/documents/create",{json:{document:e},requireAuth:!0})}createConfirmationDocument(e,t){return this.core.postJson("/v4/my/all-requirements/conf-docs/".concat(e,"/documents"),{json:{files:t},requireAuth:!0})}submitConfirmationDocument(e,t){return this.core.patchJson("/v4/my/all-requirements/conf-docs/".concat(e,"/submit"),{json:{message:t},requireAuth:!0})}getSignedUploadUrl(e){return this.core.postJson("/v4/my/all-requirements/conf-docs/file",{json:e,requireAuth:!0})}scheduleSecurityCall(e){let{securityCallId:t,userNotes:r,scheduledFor:s}=e;return this.core.patchJson("/v4/my/all-requirements/sec-call/".concat(t,"/schedule"),{json:{userNotes:r,scheduledFor:s},requireAuth:!0})}}var S=r(80966),U=r(95207);
1class x extends Error{constructor(e){super(e),this.name="AuthenticationError"}}class G extends Error{constructor(e){super(e),this.name="RefreshAccessTokenError"}}class O extends Error{constructor(e){super(e),this.name="FetchAccessTokenError"}}async function N(e){let{coreBaseUrl:t,refreshToken:r,sessionId:s,viewMarketCountry:i}=e,o=new URL("/api/token",t);o.searchParams.set("country",i);let c={grant_type:"refresh_token",refresh_token:r,client_id:n,client_secret:a};s&&(c.session_id=s);let u=new URLSearchParams(c).toString(),h=await fetch(o.href,{body:u,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!h.ok)throw new O("Failed to refresh access token with status ".concat(h.status));let l=await h.json();if("string"!=typeof l.access_token)throw new O("Invalid access token response");return l.access_token}var B=r(47065);class L{subscribe(e){this.listeners.push(e)}unsubscribe(e){this.listeners=this.listeners.filter(t=>t!==e)}trigger(e){for(let t of(this.deprecationData=e,this.listeners))t(e)}constructor(){this.deprecationData=null,this.listeners=[],this.getState=()=>this.deprecationData}}let F=(0,U.h)("hygglo:requests"),M=new L;var V=new WeakMap,W=new WeakMap,z=new WeakMap,Y=new WeakMap,H=new WeakMap,K=new WeakMap,Q=new WeakMap,X=new WeakMap,Z=new WeakMap,$=new WeakMap;class ee{get isLoggedIn(){return!!(0,s._)(this,Y).call(this)}setGetRefreshToken(e){(0,o._)(this,Y,e)}setGetLanguage(e){(0,o._)(this,H,e)}setGetViewMarketCountry(e){(0,o._)(this,K,e)}setGetClientInfo(e){(0,o._)(this,Q,e)}setGetLocation(e){(0,o._)(this,X,e)}setGetCoreBaseUrl(e){(0,o._)(this,Z,e)}setGetSessionId(e){(0,o._)(this,$,e)}getSessionId(){return(0,s._)(this,$).call(this)}clearAuth(){(0,S._)(this,z).value++,(0,o._)(this,V,void 0),this.accessTokenPromise=Promise.resolve(void 0)}primeAccessToken(e){(0,S._)(this,z).value++,(0,o._)(this,V,e),this.accessTokenPromise=Promise.resolve(e)}async ensureAuthenticated(){if(!this.isLoggedIn)throw new x("User not logged in");try{if(await this.accessTokenPromise,(0,s._)(this,V))return}catch(e){}await this.refreshAccessToken()}async initializeAccessToken(){let e=(0,s._)(this,z);try{let t=await (0,s._)(this,W).call(this);return(0,s._)(this,z)===e&&(0,o._)(this,V,t),t}catch(t){throw(0,s._)(this,z)===e&&(0,o._)(this,V,void 0),t}}async jsonRequest(e,t,r){try{return F(r.method,e),await this.fetchJsonWithErrorHandling(e,t,r)}catch(a){if(401!==a.status){var s,i,o,n;if((null==(i=a.fullResponse)||null==(s=i.error)?void 0:s.type)==="DeprecationError")return M.trigger(null==(n=a.fullResponse)||null==(o=n.error)?void 0:o.message);throw a}try{await this.refreshAccessToken()}catch(e){if(e instanceof Error)throw new G("Refresh token after 401 failed: ".concat(e.message));throw new G("Refresh token after 401 failed")}try{return await this.fetchJsonWithErrorHandling(e,t,r)}catch(e){if(e instanceof Error)throw new G("Request failed after token refresh: ".concat(e.message));throw new G("Request failed after token refresh")}}}fetchJsonWithErrorHandling(e,t,r){let s=this.baseUrl(e,t),i=this.fetchBaseInit({avoidCors:t.avoidCorsPreflight||!1,location:t.location}),o={...i,...r,headers:{...i.headers,...r.headers}};return(0,B.x6)(s.href,o)}baseUrl(e,t){var r;let i=new URL("/api".concat(e),(0,s._)(this,Z).call(this));return Object.entries({...this.getBaseQueryParams(),...null!=(r=null==t?void 0:t.query)?r:{}}).forEach(e=>{let[t,r]=e;void 0!==r&&i.searchParams.set(t,String(r))}),i}fetchBaseInit(e){let{avoidCors:t}=e,r={"Accept-Language":(0,s._)(this,H).call(this),Accept:"application/json"};t||(r["User-Client"]=(0,s._)(this,Q).call(this).versionString),!t&&this.isLoggedIn&&(0,s._)(this,V)&&(r.Authorization="Bearer ".concat((0,s._)(this,V)));let i=function(e){if(!e)return{};let{latitude:t,longitude:r}=e.position;return{"Geo-Position":"".concat(t,";").concat(r)}}(void 0!==e.location?e.location:(0,s._)(this,X).call(this));return!t&&"Geo-Position"in i&&(r["Geo-Position"]=i["Geo-Position"]),{headers:r,cache:"no-cache",credentials:"include"}}constructor(e){(0,i._)(this,V,{writable:!0,value:void 0}),(0,i._)(this,W,{writable:!0,value:void 0}),(0,i._)(this,z,{writable:!0,value:void 0}),(0,i._)(this,Y,{writable:!0,value:void 0}),(0,i._)(this,H,{writable:!0,value:void 0}),(0,i._)(this,K,{writable:!0,value:void 0}),(0,i._)(this,Q,{writable:!0,value:void 0}),(0,i._)(this,X,{writable:!0,value:void 0}),(0,i._)(this,Z,{writable:!0,value:void 0}),(0,i._)(this,$,{writable:!0,value:void 0}),(0,o._)(this,z,0),this.getJson=async(e,t)=>(t.requireAuth&&await this.ensureAuthenticated(),this.jsonRequest(e,t,{method:"GET"})),this.deleteJson=async(e,t)=>(t.requireAuth&&await this.ensureAuthenticated(),this.jsonRequest(e,t,{method:"DELETE"})),this.postJson=async(e,t)=>{t.requireAuth&&await this.ensureAuthenticated();let{json:r}=t;return this.jsonRequest(e,t,{body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json"}})},this.patchJson=async(e,t)=>{t.requireAuth&&await this.ensureAuthenticated();let{json:r}=t;return this.jsonRequest(e,t,{body:JSON.stringify(r),method:"PATCH",headers:{"Content-Type":"application/json"}})},this.putJson=async(e,t)=>{t.requireAuth&&await this.ensureAuthenticated();let{json:r}=t;return this.jsonRequest(e,t,{body:JSON.stringify(r),method:"PUT",headers:{"Content-Type":"application/json"}})},this.postForm=async(e,t)=>{t.requireAuth&&await this.ensureAuthenticated();let{form:r}=t,s=new URLSearchParams(r).toString();return this.jsonRequest(e,t,{body:s,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}})},this.getAccessToken=async()=>
1{if(this.isLoggedIn)try{return await this.accessTokenPromise,(0,s._)(this,V)}catch(e){return}},this.refreshAccessToken=async()=>{if(this.isLoggedIn){this.accessTokenPromise=this.initializeAccessToken();try{return await this.accessTokenPromise}catch(e){throw this.accessTokenPromise=Promise.resolve(void 0),e}}},this.getBaseQueryParams=()=>({country:(0,s._)(this,K).call(this)}),(0,o._)(this,Y,()=>e.refreshToken),(0,o._)(this,H,()=>e.language),(0,o._)(this,K,()=>e.viewMarketCountry),(0,o._)(this,Q,()=>e.clientInfo),(0,o._)(this,X,()=>e.location),(0,o._)(this,Z,()=>e.coreBaseUrl),(0,o._)(this,$,()=>e.sessionId),(0,o._)(this,W,function(e){let t,r;return()=>{let s=e.getRefreshToken();if(!s)return Promise.reject(new O("No refresh token available"));let i="".concat(s,"-").concat(e.getCoreBaseUrl(),"-").concat(e.getViewMarketCountry());if(t&&r===i)return t;let o=N({coreBaseUrl:e.getCoreBaseUrl(),refreshToken:s,sessionId:e.getSessionId(),viewMarketCountry:e.getViewMarketCountry()}).finally(()=>{t===o&&(t=void 0,r=void 0)});return t=o,r=i,o}}({getRefreshToken:()=>(0,s._)(this,Y).call(this),getCoreBaseUrl:()=>(0,s._)(this,Z).call(this),getViewMarketCountry:()=>(0,s._)(this,K).call(this),getSessionId:()=>(0,s._)(this,$).call(this)})),this.isLoggedIn?this.accessTokenPromise=this.initializeAccessToken():this.accessTokenPromise=Promise.resolve(void 0)}}var et=function(e){return e.BANKID_SE="BANKID_SE",e.BANKID_NO="BANKID_NO",e.MITID_DK="MITID_DK",e.FTN_FI="FTN_FI",e}({}),er=r(23843);let es=e=>ei({coreBaseUrl:e.coreBaseUrl,path:"current"});async function ei(e){let{coreBaseUrl:t,path:r,headers:s}=e,i=new URL("api/v4/locations/ip-lookup/",t);i.pathname="".concat(i.pathname).concat(r),i.searchParams.set("brand",er.Aj.HYGGLO);try{return await (0,B.x6)(i.href,{cache:"force-cache",headers:s,next:{revalidate:31536e3}})}catch(e){if(e instanceof B.hD&&404===e.status)return null;throw e}}var eo=new WeakMap;class en{get isLoggedIn(){return(0,s._)(this,eo).isLoggedIn}setGetRefreshToken(e){(0,s._)(this,eo).setGetRefreshToken(e)}setGetLanguage(e){(0,s._)(this,eo).setGetLanguage(e)}setGetViewMarketCountry(e){(0,s._)(this,eo).setGetViewMarketCountry(e)}setGetClientInfo(e){(0,s._)(this,eo).setGetClientInfo(e)}setGetLocation(e){(0,s._)(this,eo).setGetLocation(e)}setGetCoreBaseUrl(e){(0,s._)(this,eo).setGetCoreBaseUrl(e)}setGetSessionId(e){(0,s._)(this,eo).setGetSessionId(e)}clearAuth(){(0,s._)(this,eo).clearAuth()}primeAccessToken(e){(0,s._)(this,eo).primeAccessToken(e)}constructor(e){(0,i._)(this,eo,{writable:!0,value:void 0}),(0,o._)(this,eo,new ee(e)),this.account=new l((0,s._)(this,eo)),this.category=new v((0,s._)(this,eo)),this.censorship=new y((0,s._)(this,eo)),this.userToUserBlock=new D((0,s._)(this,eo)),this.eidVerification=new g((0,s._)(this,eo)),this.featureFlags=new p((0,s._)(this,eo)),this.location=new w((0,s._)(this,eo)),this.locationArea=new m((0,s._)(this,eo)),this.myCoupon=new f((0,s._)(this,eo)),this.myProduct=new q((0,s._)(this,eo)),this.myProductLocation=new _((0,s._)(this,eo)),this.notification=new J((0,s._)(this,eo)),this.order=new k((0,s._)(this,eo)),this.payment=new I((0,s._)(this,eo)),this.productListing=new j((0,s._)(this,eo)),this.pushNotifications=new P((0,s._)(this,eo)),this.review=new b((0,s._)(this,eo)),this.snooze=new T((0,s._)(this,eo)),this.staticContent=new E((0,s._)(this,eo)),this.user=new C((0,s._)(this,eo)),this.verification=new R((0,s._)(this,eo)),this.announcements=new d((0,s._)(this,eo)),this.getAccessToken=(0,s._)(this,eo).getAccessToken,this.refreshAccessToken=(0,s._)(this,eo).refreshAccessToken}}},92022:(e,t,r)=>{r.d(t,{s:()=>i});var s=r(83295);let i=e=>{try{if(!window||void 0===window.gtag)return void console.warn("Google Analytics not yet loaded");e.parameters?(0,s.sendGAEvent)("event",e.eventName,e.parameters):(0,s.sendGAEvent)("event",e.eventName)}catch(e){console.warn("Error tracking GA event:",e)}}},95207:(e,t,r)=>{r.d(t,{h:()=>a});var s=r(69558),i=r.n(s),o=r(77011);let n=!1;function a(e){if(!n){var t,r;let e=null!=(r=null!=(t=o.env.EXPO_PUBLIC_DEBUG)?t:o.env.NEXT_PUBLIC_DEBUG)?r:o.env.DEBUG;e&&(i().enable(e),n=!0)}return i()(e)}}}]);

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.