PageSourceSearch

https://consumer.homerun.com.sa/1.65.0-cafa43f6/_next/static/chunks/8927-82f3193b75117fdf.js

js homerun.com.sa collected 2026-10-09 03:39:05 UTC 7,674 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8927],{2747:(e,t,r)=>{r.d(t,{M:()=>a,w:()=>n});let n=e=>"providerArrivalConfirmed"===e,a=e=>!e||"object"!=typeof e||Array.isArray(e)?{}:Object.entries(e).reduce((e,t)=>{let[r,a]=t,o=Number(r);return Number.isInteger(o)&&o>0&&String(o)===r&&n(a)?{...e,[o]:a}:e},{})},2830:(e,t,r)=>{r.d(t,{i:()=>o});var n=r(26699),a=r(77766);let o=function(){let{onCopied:e,onError:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,a.useCallback)(r=>{navigator.clipboard.writeText(r).then(()=>{null==e||e()}).catch(e=>{(0,n.c)({error:e,message:"Failed to copy to clipboard",status:"warn"}),null==t||t(e)})},[e,t]);return"clipboard"in navigator?r:null}},13318:(e,t,r)=>{r.d(t,{q:()=>l});var n=r(60343),a=r(83482),o=r(36751),i=r(9555),c=r(2747);let s="consumerCheckInConfirmationStatuses",l=(0,i.tG)(s,{},{getItem:(0,n.flow)(()=>o.L.getItem(s),a.ak((0,n.constant)({})),c.M),removeItem:()=>o.L.removeItem(s),setItem:(e,t)=>o.L.setItem(s,t)})},26272:(e,t,r)=>{r.d(t,{M:()=>v});var n=r(49222),a=r(57647),o=r(43317),i=r(40066),c=r(14521),s=r(73222),l=r(21024),u=r(14221),d=r(42443);let m=e=>{let{disabled:t,kind:r,label:a,onPress:o}=e,{open:c}=(0,i.u)();return(0,n.jsx)(s.$,{disabled:t,kind:r,onPress:()=>{null==o||o(),c()},shape:"squared",size:"medium",children:a})},h=e=>{let{onPress:t}=e,{isPending:r}=(0,d._)(),a=(0,o.Bd)({id:"consumerCheckInConfirmation.myJobs.jobCard.cta.arrived"});return(0,n.jsx)(m,{disabled:r,kind:"primary",label:a,onPress:t})},C=e=>{let{trackingContext:t,...r}=e,{handleConfirmArrived:a,isPending:c}=(0,d._)(),{close:u}=(0,i.u)();return(0,n.jsx)(s.$,{...r,disabled:c,kind:"primary",onPress:()=>{a({onSuccess:u}),(0,l.z)({context:t,data:{itemName:"consumer-check-in-confirm-arrival"}})},children:(0,n.jsx)(o.wD,{id:"consumerCheckInConfirmation.arrivalConfirmationSheet.cta.confirm"})})},k=e=>{let{trackingContext:t,...r}=e,{close:a}=(0,i.u)();return(0,n.jsx)(s.$,{...r,kind:"secondary",onPress:()=>{a(),(0,l.z)({context:t,data:{itemName:"consumer-check-in-confirm-arrival-cancel"}})},children:(0,n.jsx)(o.wD,{id:"consumerCheckInConfirmation.arrivalConfirmationSheet.cta.cancel"})})},y=e=>{let{itemName:t,trackingContext:r}=e,a=(0,o.Bd)({id:"consumerCheckInConfirmation.arrivalConfirmationSheet.title"}),i=()=>{(0,l.z)({context:r,data:{itemName:t}})};return(0,n.jsx)(c.E,{layout:"column",MainAction:e=>(0,n.jsx)(C,{...e,trackingContext:r}),onOpen:()=>{(0,u.u)({context:r,data:{modalName:"consumer-check-in-confirm-arrival"}})},SecondaryAction:e=>(0,n.jsx)(k,{...e,trackingContext:r}),title:a,Trigger:()=>(0,n.jsx)(h,{onPress:i}),usePortal:!0})};var x=r(31261);let p=e=>{let{onPress:t}=e,{handleNotYet:r,isPending:a}=(0,d._)(),i=(0,o.Bd)({id:"consumerCheckInConfirmation.myJobs.jobCard.cta.notYet"});return(0,n.jsx)(m,{disabled:a,kind:"secondary",label:i,onPress:()=>{r(),t()}})},b=e=>{let{trackingContext:t,...r}=e,{close:a}=(0,i.u)(),{handleContactProvider:c}=(0,d._)();return(0,n.jsx)(s.$,{...r,kind:"primary",onPress:()=>{a(),c(),(0,l.z)({context:t,data:{itemName:"consumer-check-in-help-contact-pro"}})},children:(0,n.jsx)(o.wD,{id:"consumerCheckInConfirmation.notYetSheet.cta.contactProvider"})})},f=e=>{let{trackingContext:t,...r}=e,{close:a}=(0,i.u)(),{handleCallSupport:c}=(0,d._)(),u=(0,x.PB)();return(0,n.jsx)(s.$,{...r,kind:"secondary",onPress:()=>{a(),c(),(0,l.z)({context:t,data:{itemName:"consumer-check-in-help-call-support"}})},children:(0,n.jsx)(o.wD,{id:"consumerCheckInConfirmation.notYetSheet.cta.callSupport",values:{brand:u}})})},j=e=>{let{trackingContext:t,...r}=e,{close:a}=(0,i.u)(),{handleClose:c}=(0,d._)();return(0,n.jsx)(s.$,{...r,kind:"minimal-neutral",onPress:()=>{a(),null==c||c(),(0,l.z)({context:t,data:{itemName:"consumer-check-in-help-close"}})},children:(0,n.jsx)(o.wD,{id:"consumerCheckInConfirmation.notYetSheet.cta.close"})})},g=e=>{let{itemName:t,trackingContext:r}=e,a=(0,x.PB)(),i=(0,o.Bd)({id:"consumerCheckInConfirmation.notYetSheet.description",values:{brand:a}}),s=(0,o.Bd)({id:"consumerCheckInConfirmation.notYetSheet.title"}),d=()=>{(0,l.z)({context:r,data:{itemName:t}})};return(0,n.jsx)(c.E,{description:i,layout:"column",MainAction:e=>(0,n.jsx)(b,{...e,trackingContext:r}),onOpen:()=>
1{(0,u.u)({context:r,data:{modalName:"consumer-check-in-help"}})},SecondaryAction:e=>(0,n.jsx)(f,{...e,trackingContext:r}),TertiaryAction:e=>(0,n.jsx)(j,{...e,trackingContext:r}),title:s,Trigger:()=>(0,n.jsx)(p,{onPress:d}),usePortal:!0})},v=e=>{let{arrivedItemName:t,direction:r="row",notYetItemName:o,trackingContext:i}=e;return(0,n.jsxs)(a.s,{direction:r,gap:"row"===r||"row-reverse"===r?8:16,children:[(0,n.jsx)(a.s,{grow:1,children:(0,n.jsx)(g,{itemName:o,trackingContext:i})}),(0,n.jsx)(a.s,{grow:1,children:(0,n.jsx)(y,{itemName:t,trackingContext:i})})]})}},33337:(e,t,r)=>{r.d(t,{h:()=>l});var n=r(99277),a=r(26699),o=r(31869),i=r(11037),c=r(33519),s=r(21024);let l=e=>{let{close:t,job:{job_id:r,service_id:l}}=e,{country:u}=(0,o.B)(),d=(0,n.b)(u);return()=>{(0,c.P)({targetBlank:!0,url:d}).then(t).catch(e=>{(0,a.c)({error:e,message:"Failed to open Contact phone call",status:"warn"})});let e=(0,i.E)({jobId:r,serviceId:l});(0,s.z)({context:[e],data:{itemName:"contact-support-call"}})}}},42443:(e,t,r)=>{r.d(t,{_:()=>c,x:()=>i});var n=r(58460),a=r.n(n),o=r(77766);let i=(0,o.createContext)(null),c=()=>{let e=(0,o.use)(i);return a()(e,"ConfirmationActionContext is required"),e}},66080:(e,t,r)=>{r.d(t,{Z:()=>n});let n=e=>"TR"===e?"+908503332200":""},80273:(e,t,r)=>{r.d(t,{o:()=>I});var n=r(43317),a=r(60654),o=r(99321),i=r(99277),c=r(26699),s=r(31869),l=r(42692),u=r(33519),d=r(4516),m=r(77766),h=r(51329),C=r(13318),k=r(53557),y=r(16468),x=r(95782),p=r(25659),b=r(2365),f=r(60666),j=r(61459),g=r(55383),v=r(9489),w=r(83102);let I=e=>{let t,{jobId:r,openSupportSheet:I}=e,{isPending:S,mutate:P}=(()=>{let e=(0,w.$)(),t=(0,j.jE)(),r=(0,g.jE)(),n=(0,b.r)("book-now-reservation-tracking-tanstack-v5"),{queryKey:o}=x.t.getJobs(e),{queryKey:i}=f.t.getJobs(e);return(0,v.I)({mutationFn:t=>{let{variables:{jobId:r,status:n=a.y.ConsumerVerified}}=t;return p.z.updateAppointmentStatus({body:{job_id:r,status:n}},e)},onSuccess:async(c,s)=>{let{jobId:l,status:u=a.y.ConsumerVerified}=s;if(u!==a.y.ConsumerVerified)return;let{queryKey:d}=x.t.getJob(l,e),{queryKey:m}=x.t.getReservationTracking({jobId:l},e);await Promise.all([t.refetchQueries({queryKey:o,type:"all"}),t.refetchQueries({queryKey:d,type:"all"}),n?t.refetchQueries({queryKey:m,type:"all"}):r.refetchQueries({queryKey:m,type:"all"}),r.refetchQueries({queryKey:i,type:"all"})])}})})(),{addToast:N}=(0,l.Yf)(),{country:_}=(0,s.B)(),q=(0,y.E)({id:"errors.generic",type:"error"}),B=(t=(0,k.Xr)(C.q),(0,m.useCallback)(e=>{t(t=>({...t,[e]:"providerArrivalConfirmed"}))},[t])),{push:z}=(0,h.r)(),A=(0,i.b)(_),E=(0,n.Bd)({id:"consumerCheckInConfirmation.successToast.message"}),K=(0,m.useCallback)(e=>{P({jobId:r},{onError:()=>{q()},onSuccess:()=>{var t;B(r),null==e||null==(t=e.onSuccess)||t.call(e),N({message:E,type:"success"})}})},[B,q,N,r,E,P]),T=(0,m.useCallback)(()=>{P({jobId:r,status:a.y.ConsumerNotVerified})},[r,P]),Y=(0,m.useCallback)(()=>{o.y.web?I():(0,u.P)({targetBlank:!0,url:A}).catch(e=>{(0,c.c)({error:e,message:"Failed to open Contact phone call",status:"warn"})})},[I,A]),$=(0,m.useCallback)(()=>{z((0,d.y)("/my-jobs/bn/:jobId/chat").build({jobId:r}))},[r,z]);return(0,m.useMemo)(()=>({handleCallSupport:Y,handleConfirmArrived:K,handleContactProvider:$,handleNotYet:T,isPending:S}),[Y,K,$,T,S])}},99277:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(66080),a=r(52738),o=r(19984);let i=(0,a.B)({cacheSize:1})(e=>(0,o.YW)(e).with("TR",()=>"tel:".concat((0,n.Z)(e))).otherwise(()=>""))}}]);

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.