1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6de47893-3702-4b73-a63c-7f51894eea40",e._sentryDebugIdIdentifier="sentry-dbid-6de47893-3702-4b73-a63c-7f51894eea40")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18704,86847],{2516:(e,n,i)=>{"use strict";i.d(n,{I:()=>t});var l=i(50979);i(25963);let t=e=>{let{style:n={},src:i,...t}=e;return(0,l.jsx)("div",{style:{display:"block",width:37,height:37,background:"no-repeat center",backgroundSize:"contain",backgroundImage:"url(".concat(i,")"),...n},...t})}},2805:(e,n,i)=>{"use strict";i.d(n,{G:()=>z,y:()=>C});var l=i(86739),t=i(50979),d=i(46479),o=i.n(d),a=i(25963),s=i(22081),r=i.n(s),g=i(80178),u=i(73349),c=i(369),m=i(92954),x=i(71480),b=i.n(x),j=i(38977),p=i.n(j),I=i(53889),v=i(69329),y=i(31606),h=i(38625),M=i(61062),S=i(41146),N=i(68211),f=i.n(N),D=i(7189),L=i(48629);function T(){let e=(0,l._)(["\n mutation EditingJobSaveImagesDelete(\n $editingJobId: ID!\n $originalMediaIds: [EditingJobOriginalMediaIdInput]!\n ) {\n editingJobDeleteItemAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n originalMediaIds: $originalMediaIds\n }\n ) {\n success\n }\n }\n "]);return T=function(){return e},e}function J(){let e=(0,l._)(["\n query EditingJobImagesOnGalleryUpload(\n $jobId: ID!\n $cursor: String\n $first: Int\n ) {\n editingJob: editingJobById(id: $jobId) {\n id\n # status\n items(first: $first, cursor: $cursor) {\n cursor\n edges {\n id\n originalImage {\n fileName\n id\n imageRatio\n downloadUrl\n extraSmall {\n url\n }\n medium {\n url\n width\n }\n }\n }\n }\n }\n }\n "]);return J=function(){return e},e}function A(){let e=(0,l._)(["\n mutation EditingJobSaveImagesCreate(\n $editingJobId: ID!\n $originalMediaId: ID!\n ) {\n editingJobCreateItem(\n input: {\n editingJobId: $editingJobId\n originalMediaId: $originalMediaId\n }\n ) {\n item {\n id\n }\n }\n }\n "]);return A=function(){return e},e}function C(e){var n,l,d,s,r,g,u,c,m;let{image:x,onDelete:b,editingJobId:j}=e,p=function(e){let{src:n}
1=e,[i,l]=a.useState(!1),[t,d]=a.useState(!1),o=new Image;return o.onload=()=>{l(!0)},o.onerror=()=>d(!0),o.src=n,{loaded:i,error:t}}({src:null!=(m=null==x||null==(l=x.originalImage)||null==(n=l.extraSmall)?void 0:n.url)?m:f()}),[I,v]=(0,y.n_)((0,y.J1)(T()));return(null==x||null==(s=x.originalImage)||null==(d=s.extraSmall)?void 0:d.url)!=null?(0,t.jsxs)("div",{className:"jsx-5419d1705d61718a tile",children:[(0,t.jsx)("img",{src:null==x||null==(g=x.originalImage)||null==(r=g.extraSmall)?void 0:r.url,alt:"sample",loading:"lazy",style:{opacity:+(!0===p.loaded),transition:"opacity 1s",filter:!1===v.loading&&null==v.data||null!=v.error?"":"grayscale(100%)",height:"100%",width:"100%",objectFit:"cover",borderRadius:2,position:"absolute",backgroundColor:"transparent",top:0,left:0,padding:8},className:"jsx-5419d1705d61718a"}),(0,t.jsx)("div",{style:{padding:8,position:"absolute"},className:"jsx-5419d1705d61718a",children:(0,t.jsx)("div",{style:{backgroundColor:"rgba(193, 200, 212, 0.1)",width:"100%",height:"100%"},className:"jsx-5419d1705d61718a"})}),(0,t.jsx)("button",{style:{border:"none",background:"transparent",marginLeft:"70%",marginTop:2,width:20,height:20},disabled:v.loading,onClick:()=>{var e,n;return I({variables:{editingJobId:null!=j?j:"",originalMediaIds:[{id:null!=(n=null==x||null==(e=x.originalImage)?void 0:e.id)?n:""}]}}).then(()=>b())},className:"jsx-5419d1705d61718a",children:(0,t.jsx)("img",{src:i(57016),alt:"close",style:{opacity:+(!0===p.loaded),filter:"drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.65))"},className:"jsx-5419d1705d61718a"})}),(0,t.jsx)(o(),{id:"5419d1705d61718a",children:'.tile.jsx-5419d1705d61718a{flex-basis:calc(25%);flex-shrink:0;position:relative;box-sizing:border-box}.tile.jsx-5419d1705d61718a::before{content:"";display:block;padding-top:100%}.tile.jsx-5419d1705d61718a>*.jsx-5419d1705d61718a{position:absolute;top:0;left:0;height:100%;width:100%;padding:8px}'})]},null==x||null==(u=x.originalImage)?void 0:u.id):(0,t.jsxs)("div",{className:"jsx-5419d1705d61718a tile",children:[(0,t.jsx)(D.b,{iconSize:"55px",imageName:null==x?void 0:x.originalImage.fileName,truncateWidth:"90px",nameSize:10,bgColor:"transparent",zIndex:1}),(0,t.jsx)("div",{style:{padding:8,position:"absolute"},className:"jsx-5419d1705d61718a",children:(0,t.jsx)("div",{style:{backgroundColor:"#E8EDF5",width:"100%",height:"100%"},className:"jsx-5419d1705d61718a"})}),(0,t.jsx)("button",{style:{position:"absolute",border:"none",background:"transparent",marginLeft:"70%",marginTop:2,width:20,height:20,top:2,right:8,zIndex:2},disabled:v.loading,onClick:()=>{var e,n;return I({variables:{editingJobId:null!=j?j:"",originalMediaIds:[{id:null!=(n=null==x||null==(e=x.originalImage)?void 0:e.id)?n:""}]}}).then(()=>b())},className:"jsx-5419d1705d61718a",children:(0,t.jsx)("img",{src:i(57016),alt:"close",style:{opacity:+(!0===p.loaded),filter:"drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.65))"},className:"jsx-5419d1705d61718a"})}),(0,t.jsx)(o(),{id:"5419d1705d61718a",children:'.tile.jsx-5419d1705d61718a{flex-basis:calc(25%);flex-shrink:0;position:relative;box-sizing:border-box}.tile.jsx-5419d1705d61718a::before{content:"";display:block;padding-top:100%}.tile.jsx-5419d1705d61718a>*.jsx-5419d1705d61718a{position:absolute;top:0;left:0;height:100%;width:100%;padding:8px}'})]},null==x||null==(c=x.originalImage)?void 0:c.id)}let z=e=>{var n,l,d,s,x,j,N;let{editingJob:f,context:D,onDismiss:T}=e,z=(0,g.useRouter)(),w=(0,h.p1)({step:S.oM.image_uploader}),k=JSON.parse(z.query.modal||""),E=null!=(N=null==k||null==(l=k.modalParams)||null==(n=l.selectedBookingImages)?void 0:n.split(","))?N:null==(d=k.selectedBookingImagesFromModal)?void 0:d.split(","),P=(0,y.IT)((0,y.J1)(J()),{variables:{first:5e3,jobId:null==f?void 0:f.id},skip:(null==f?void 0:f.id)==null}),B=null==(j=P.data)||null==(x=j.editingJob)||null==(s=x.items)?void 0:s.edges,[Z,R]=(0,y.n_)((0,y.J1)(A())),{uploadsList:O,addFiles:Y}=(0,I.Su)({token:D.token,onUploadReady:e=>{let{fileName:n,mediaUid:i,remove:l,fileType:t}=e;return(0,v.n)("/api/v2/media/create-from-temp",{token:D.token,method:"POST",body:JSON.stringify({tempMediaUid:i,fileName:n,fileType:t})}).then(()=>{var e;return Z({variables:{editingJobId:null!=(e=null==f?void 0:f.id)?e:"",originalMediaId:i}}).then(()=>P.refetch())})}}),U=a.useMemo(()=>{let e=new Set(null==B?void 0:B.map(e=>e.originalImage.id));return O.filter(n=>null==n.mediaUid||!e.has(n.mediaUid))},[O,B]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.z2,{progress:w.progress,prev:w.onPrev,onDismiss:()=>T({step:S.oM.image_uploader,editingJob:f})}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{height:32}}),!0===P.loading&&null==P.data?(0,t.jsx)(M.c,{}):(null==f?void 0:f.thirdPartyEnabled)===!0||E?(0,t.jsx)(L.e,{editingJob:f,progressData:w}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},className:"jsx-d7065aea4d49f693",children:[(0,t.jsx)(m.vt,{title:"Upload your photos",marginBottom:16}),(0,t.jsx)("p",{style:{fontSize:14,color:"#454F5C",textAlign:"center"},className:"jsx-d7065aea4d49f693",children:(null==O?void 0:O.length)>0||null!=B&&(null==B?void 0:B.length)>0?(0,t.jsxs)("span",{className:"jsx-d7065aea4d49f693",children:[null==B?void 0:B.length," uploaded,"," ",null==U?void 0:U.length," uploading"," "]}):(0,t.jsx)("span",{className:"jsx-d7065aea4d49f693",children:"Upload all the photos you need to edit on this job"})}),(0,t.jsx)("div",{style:{height:16},className:"jsx-d7065aea4d49f693"}),(0,t.jsx)(r(),{style:{backgroundColor:"#F6F9FF",height:200,textAlign:"center",position:"relative",border:"1px solid #E8EDF5"},onDrop:e=>Y({acceptedFiles:e}),children:(0,t.jsx)("div",{className:"jsx-d7065aea4d49f693",children:(0,t.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"#71767E",fontWeight:"bold"},className:"jsx-d7065aea4d49f693",children:[(0,t.jsx)("div",{style:{marginBottom:8},className:"jsx-d7065aea4d49f693",children:(0,t.jsx)("img",{src:b(),alt:"info",className:"jsx-d7065aea4d49f693"})}),"Drag and drop your images here or"," ",(0,t.jsx)("span",{style:{textDecoration:"underline",cursor:"pointer"},className:"jsx-d7065aea4d49f693",children:"browse"})]})})})]}),(0,t.jsx)("div",{style:{height:16},className:"jsx-d7065aea4d49f693"}),((null==O?void 0:O.length)>0||null!=B&&(null==B?void 0:B.length)>0)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:m.Bx},className:"jsx-d7065aea4d49f693"}),(0,t.jsx)("div",{style:{paddingRight:16,paddingLeft:16},className:"jsx-d7065aea4d49f693",children:(0,t.jsxs)("div",{className:"jsx-d7065aea4d49f693 tile-wrapper",children:[(null!=B?B:[]).length>0&&(null==B?void 0:B.map(e=>(0,t.jsx)(C,{image:e,editingJobId:null==f?void 0:f.id,onDelete:()=>{var n;return null==(n=O.find(n=>n.mediaUid===e.originalImage.id))||n.remove(),P.refetch()}},e.id))),(null==U?void 0:U.length)>0&&U.map(e=>(0,t.jsxs)("div",{className:"jsx-d7065aea4d49f693 tile",children:[(0,t.jsx)("div",{className:"jsx-d7065aea4d49f693",children:(0,t.jsx)(I.NB,{file:e.file,alt:"preview",width:"100%",height:"100%",loading:"lazy",style:{filter:"grayscale(100%)",objectFit:"cover",borderRadius:2},optimizePerformance:!0})}
1),null!=e.sizeUploaded&&null!=e.fileSize&&(0,t.jsx)("div",{style:{position:"absolute",top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center"},className:"jsx-d7065aea4d49f693",children:(0,t.jsx)(I.ZP,{progress:e.sizeUploaded/e.fileSize})}),(0,t.jsx)(u.A,{promise:e.mediaCreationPromise,children:n=>{let{error:l}=n;return null!=l&&(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.8)"},className:"jsx-d7065aea4d49f693",children:[(0,t.jsx)("div",{className:"jsx-d7065aea4d49f693",children:(0,t.jsxs)("p",{style:{fontSize:"12px",textAlign:"center",color:"#454F5C"},className:"jsx-d7065aea4d49f693",children:[(0,t.jsx)("div",{className:"jsx-d7065aea4d49f693",children:(0,t.jsx)("img",{src:p(),alt:"upload failed",className:"jsx-d7065aea4d49f693"})}),"Failed upload,",(0,t.jsx)("button",{style:{display:"block",border:"none",background:"transparent",width:"100%",height:20,textDecoration:"underline",textAlign:"center",outline:"none",color:"#454F5C"},onClick:()=>{e.onRestart()},className:"jsx-d7065aea4d49f693",children:"Try again."})]})}),(0,t.jsx)("button",{style:{border:"none",background:"transparent",position:"absolute",right:"15px",top:"10px",width:20,height:20},onClick:()=>{var n;return null==(n=O.find(n=>n.mediaUid===e.mediaUid))||n.remove(),P.refetch()},className:"jsx-d7065aea4d49f693",children:(0,t.jsx)("img",{src:i(57016),alt:"close",className:"jsx-d7065aea4d49f693"})})]})}})]},e.fileName))]})})]}),(0,t.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:m.Bx},className:"jsx-d7065aea4d49f693"}),(0,t.jsx)("div",{style:{padding:16},className:"jsx-d7065aea4d49f693",children:(0,t.jsx)(m.$J,{size:"lg",fullWidth:!0,onClick:()=>w.onNext({extraQuery:{editingJob:f}}),disabled:(null!=B?B:[]).length<1||R.loading||(null==U?void 0:U.length)>0,children:"Continue"})}),(0,t.jsx)(o(),{id:"d7065aea4d49f693",children:'.tile-wrapper.jsx-d7065aea4d49f693{display:flex;flex-wrap:wrap;margin-left:-5px;margin-right:-5px;max-height:400px;overflow-y:scroll;padding-top:8px;padding-bottom:8px}.tile-wrapper.jsx-d7065aea4d49f693 .tile.jsx-d7065aea4d49f693{flex-basis:calc(25%);flex-shrink:0;position:relative;box-sizing:border-box}.tile-wrapper.jsx-d7065aea4d49f693 .tile.jsx-d7065aea4d49f693::before{content:"";display:block;padding-top:100%}.tile-wrapper.jsx-d7065aea4d49f693 .tile.jsx-d7065aea4d49f693>*.jsx-d7065aea4d49f693{position:absolute;top:0;left:0;height:100%;width:100%;padding:8px}'})]})]})]})}},7189:(e,n,i)=>{"use strict";i.d(n,{b:()=>s});var l=i(50979),t=i(46479),d=i.n(t);i(25963);var o=i(68211),a=i.n(o);let s=e=>{let{imageName:n,iconSize:i="50%",truncateWidth:t,nameSize:o=16,bgColor:s,zIndex:r}=e;return(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:null!=s?s:"#E8EDF5",width:"auto",height:"auto",position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:null!=r?r:0},className:d().dynamic([["7308b3efb0e30d6d",[t]]]),children:[(0,l.jsx)("img",{style:{height:i},src:a(),alt:"raw icon",className:d().dynamic([["7308b3efb0e30d6d",[t]]])}),(0,l.jsx)("div",{style:{height:10},className:d().dynamic([["7308b3efb0e30d6d",[t]]])}),null!=n?(0,l.jsx)("p",{style:{color:"#454F5C",maxWidth:"80%",textAlign:"center",fontSize:o,margin:0},className:d().dynamic([["7308b3efb0e30d6d",[t]]])+" "+((null!=t?"truncate":"")||""),children:n}):null,(0,l.jsx)(d(),{id:"7308b3efb0e30d6d",dynamic:[t],children:".truncate.__jsx-style-dynamic-selector{width:".concat(t,";white-space:nowrap;overflow:hidden;text-overflow:ellipsis}")})]})}},8028:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5IDYiPjxwYXRoIGZpbGw9IiMyMTQ2OEIiIGQ9Ik0wIDBoOXY2SDB6Ii8+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTAgMGg5djRIMHoiLz48cGF0aCBmaWxsPSIjQUUxQzI4IiBkPSJNMCAwaDl2MkgweiIvPjwvc3ZnPg=="},11398:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzIDIiPjxwYXRoIGZpbGw9IiNFQzE5MjAiIGQ9Ik0wIDBoM3YySDB6Ii8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgydjJIMHoiLz48cGF0aCBmaWxsPSIjMDUxNDQwIiBkPSJNMCAwaDF2MkgweiIvPjwvc3ZnPg=="},14244:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJmbGFnLWljb24tY3NzLXNnIiB2aWV3Qm94PSIwIDAgNj
1QwIDQ4MCI+CiAgPGRlZnM+CiAgICA8Y2xpcFBhdGggaWQ9ImEiPgogICAgICA8cGF0aCBmaWxsLW9wYWNpdHk9Ii43IiBkPSJNMCAwaDY0MHY0ODBIMHoiLz4KICAgIDwvY2xpcFBhdGg+CiAgPC9kZWZzPgogIDxnIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1wYXRoPSJ1cmwoI2EpIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0tMjAgMGg3MjB2NDgwSC0yMHoiLz4KICAgIDxwYXRoIGZpbGw9IiNkZjAwMDAiIGQ9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KPHBhdGggZD0iTTEyLjUgMjguMTY2TDI3LjUgMTMuMTY2IiBzdHJva2U9IiNFMTFGNTkiIHN0cm9rZS13aWR0aD0iMS43IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTM3LjUgMjAuNjY2QzM3LjUgMzAuMzMxIDI5LjY2NSAzOC4xNjYgMjAgMzguMTY2QzEwLjMzNSAzOC4xNjYgMi41IDMwLjMzMSAyLjUgMjAuNjY2QzIuNSAxMS4wMDEgMTAuMzM1IDMuMTY2MDIgMjAgMy4xNjYwMkMyNC41ODMzIDMuMTY2MDIgMjguNzU1MSA0LjkyOCAzMS44NzUgNy44MTE1NUMzNS4zMzQxIDExLjAwODYgMzcuNSAxNS41ODQ0IDM3LjUgMjAuNjY2WiIgc3Ryb2tlPSIjMTQxQjI0IiBzdHJva2Utd2lkdGg9IjEuNyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo="},18704:(e,n,i)=>{"use strict";i.r(n),i.d(n,{EditingJobModalInner:()=>nk});var l=i(50979),t=i(80178),d=i(49984),o=i(80598),a=i(30920),s=i(26414),r=i(25963),g=i(65889),u=i(92954),c=i(97985),m=i.n(c),x=i(86739),b=i(369),j=i(57978),p=i(38625),I=i(31606),v=i(42312),y=i(79254),h=i(41146);function M(){let e=(0,x._)(["\n query PartnerShoottypesOnEditingJobs($id: UUID!) {\n partnerById(uid: $id) {\n uid\n shootTypes {\n edges {\n displayName\n category\n }\n }\n defaultShoottype {\n category\n }\n }\n }\n "]);return M=function(){return e},e}function S(){let e=(0,x._)(["\n mutation EditingJobSaveImagesCreateFromBooking(\n $editingJobId: ID!\n $originalMediaId: ID!\n ) {\n editingJobCreateItem(\n input: {\n editingJobId: $editingJobId\n originalMediaId: $originalMediaId\n }\n ) {\n item {\n id\n }\n }\n }\n "]);return S=function(){return e},e}function N(){let e=(0,x._)(["\n query EditingJobByIdAsPartner($partnerId: UUID!, $editingJobId: ID!) {\n partner: partnerById(uid: $partnerId) {\n uid\n\n editingJob: editingJobById(id: $editingJobId) {\n id\n verticalType {\n category\n }\n internalId\n name\n }\n }\n }\n "]);return N=function(){return e},e}function f(){let e=(0,x._)(["\n mutation EditingJobCreateAsPartnerUser(\n $verticalType: String\n $partnerId: ID!\n $name: String\n $internalId: String\n $bookingId: String\n ) {\n editingJobCreateAsPartnerUser(\n input: {\n verticalType: $verticalType\n partnerId: $partnerId\n name: $name\n internalId: $internalId\n bookingId: $bookingId\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return f=function(){return e},e}function D(){let e=(0,x._)(["\n mutation EditingJobUpdateAsPartnerUser(\n $editingJobId: String!\n $verticalType: String\n $name: String\n $internalId: String\n ) {\n editingJobUpdateAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n verticalType: $verticalType\n name: $name\n internalId: $
1internalId\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return D=function(){return e},e}let L=e=>{var n,i,d,o,a,s,g,c,m,x,L,T;let{editingJob:J,context:A,onDismiss:C}=e,z=(0,t.useRouter)(),w=JSON.parse(z.query.modal||""),k=null!=(L=null==w||null==(i=w.modalParams)||null==(n=i.selectedBookingImages)?void 0:n.split(","))?L:null==(d=w.selectedBookingImagesFromModal)?void 0:d.split(","),E=z.query.jobId,P=(0,I.IT)((0,I.J1)(M()),{variables:{id:A.partner.uid},fetchPolicy:"cache-and-network"}),[B,Z]=(0,I.n_)((0,I.J1)(S())),R=null!=(T=null==J?void 0:J.thirdPartyEnabled)&&T,O=(0,r.useMemo)(()=>{var e,n,i;return(null==(i=P.data)||null==(n=i.partnerById)||null==(e=n.shootTypes)?void 0:e.edges)||[]},[P.data]),Y=null==(a=JSON.parse(z.query.modal||""))||null==(o=a.modalParams)?void 0:o.shootType,U=O.some(e=>e.category===Y)?Y:"other",G=null==(c=P.data)||null==(g=c.partnerById)||null==(s=g.defaultShoottype)?void 0:s.category,W=(0,r.useMemo)(()=>O.map(e=>({label:e.displayName,value:e.category})),[O]),[$,_]=r.useState(!1);r.useEffect(()=>{null!=R&&_(R)},[R]);let[H,Q]=(0,r.useState)(),[F,X]=(0,r.useState)(),[V,K]=(0,r.useState)(null),q=null==(x=(0,I.IT)((0,I.J1)(N()),{variables:{partnerId:A.partner.uid,editingJobId:null==J?void 0:J.id},skip:(null==J?void 0:J.id)==null}).data)||null==(m=x.partner)?void 0:m.editingJob,[ee,en]=(0,I.n_)((0,I.J1)(f())),[ei,el]=(0,I.n_)((0,I.J1)(D()));(0,r.useEffect)(()=>{let e=W&&(null==W?void 0:W.length)>0&&G?W.find(e=>{var n;return e.value===(null!=(n=null==q?void 0:q.verticalType.category)?n:G)}):null;null!=e&&K(e)},[W,G,q]),(0,r.useEffect)(()=>{if(null!=q){let e=W&&(null==W?void 0:W.length)>0&&G?W.find(e=>{var n;return e.value===(null!=(n=null==q?void 0:q.verticalType.category)?n:G)}):null;null!=e&&K(e),Q(q.name),X(q.internalId)}},[G,q,W]);let et=(0,p.p1)({step:h.oM.create_editing_job});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:et.progress,prev:et.onPrev,onDismiss:()=>C({step:h.oM.create_editing_job,editingJob:J})}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{height:32}}),(0,l.jsxs)("form",{action:"post",style:{display:"flex",flexDirection:"column",flex:1},onSubmit:e=>{e.preventDefault();let n={verticalType:Y?U:null==V?void 0:V.value,partnerId:A.partner.uid,name:H,internalId:F,bookingId:null!=E?E:void 0};return(null==J?void 0:J.id)!=null?ei({variables:{editingJobId:null==J?void 0:J.id,...n}}).then(e=>{let{data:n}=e;return(null==n?void 0:n.editingJobUpdateAsPartnerUser.editingJob.id)?et.onNext({extraQuery:{editingJob:{...J,thirdPartyEnabled:$,id:null==n?void 0:n.editingJobUpdateAsPartnerUser.editingJob.id}}}):null}):ee({variables:n}).then(e=>{let{data:n}=e;return(null==n?void 0:n.editingJobCreateAsPartnerUser.editingJob.id)!=null?null==k||k.forEach(async e=>(null==n?void 0:n.editingJobCreateAsPartnerUser.editingJob.id)!=null?await B({variables:{editingJobId:null==n?void 0:n.editingJobCreateAsPartnerUser.editingJob.id,originalMediaId:e}}):null):window.alert("No editing job id found"),(null==n?void 0:n.editingJobCreateAsPartnerUser.editingJob.id)?et.onNext({extraQuery:{editingJob:{...J,thirdPartyEnabled:$,id:null==n?void 0:n.editingJobCreateAsPartnerUser.editingJob.id}}}):null})},children:[(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,l.jsx)(u.vt,{title:"Create a new editing job"}),null==k&&(0,l.jsxs)("div",{style:{marginBottom:17},children:[(0,l.jsx)("label",{htmlFor:"verticalType",style:{fontSize:16,fontWeight:"bold",marginBottom:9,display:"block"},children:"Type"}),(0,l.jsx)(j.Ay,{label:"Type",name:"verticalType",placeholder:"Real Estate",labelLarge:!0,disabled:en.loading||P.loading,onChange:K,value:P.loading?{code:"loading",label:"Loading..."}:V,options:P.loading?[{code:"loading",label:"Loading..."}
1]:W,styles:(0,u.U$)({redBorder:!1})})]}),(0,l.jsx)(u.pd,{disabled:en.loading,label:"Job name",placeholder:"e.g. Office photos",labelLarge:!0,name:"name",onChange:e=>{let{target:{value:n}}=e;return Q(n)},value:null!=H?H:"",optional2:!0}),(0,l.jsx)(u.pd,{disabled:en.loading,label:"Job ID",placeholder:"e.g. Office 230121",labelLarge:!0,name:"internalId",onChange:e=>{let{target:{value:n}}=e;return X(n)},value:null!=F?F:"",optional2:!0}),!0===y.Ou&&(0,l.jsx)(v.w,{label:"I need someone else to upload the photos",checked:null!=$&&$,onChange:()=>_(e=>!e)}),(0,l.jsx)("div",{style:{height:8}})]}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginBottom:16,marginTop:7}}),(0,l.jsx)("div",{style:{paddingRight:16,paddingBottom:16,paddingLeft:16},children:(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,disabled:en.loading||el.loading||Z.loading,type:"submit",children:"Continue"})}),(0,l.jsx)("div",{style:{flex:1}})]})]})]})};var T=i(32071),J=i(99587),A=i(71842),C=i.n(A);let z=e=>{let{editingJob:n,onDismiss:i}=e,d=(0,t.useRouter)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.r,{onDismiss:()=>i({validateExit:!1})}),(0,l.jsxs)("div",{style:{paddingRight:16,paddingBottom:16,paddingLeft:16},children:[(0,l.jsx)(u.vt,{title:"Editing job created successfully"}),(0,l.jsx)("div",{style:{display:"flex",flex:1,justifyContent:"center",paddingTop:40,paddingBottom:40},children:(0,l.jsx)("img",{src:C(),alt:"Success"})})]}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginBottom:16}}),(0,l.jsxs)("div",{style:{paddingRight:16,paddingBottom:16,paddingLeft:16},children:[(0,l.jsx)(J.dE,{onClick:()=>{d.push((0,a.IO)({router:d,modal:{step:Object.values(h.oM)[0].routePath,modalName:h.MT}}),void 0,{shallow:!0})},children:"Create another job"}),(0,l.jsx)("div",{style:{marginTop:16}}),(null==n?void 0:n.id)!=null?(0,l.jsx)(u.z9,{href:"/enterprise/jobs/e/".concat(n.id,"?").concat(T.stringify({hideMobileAlert:!0})),children:(0,l.jsx)("span",{style:{fontSize:16},children:"Go to the gallery"})}):null]})]})};var w=i(2805),k=i(4988),E=i(38293),P=i(61062),B=i(48629);function Z(){let e=(0,x._)(["\n query EditingJobExtraNotesImageEnhancement($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n notes\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n notes\n }\n }\n }\n }\n }\n "]);return Z=function(){return e},e}function R(){let e=(0,x._)(["\n mutation EditingJobImageEnhancementSaveNotes(\n $editingJobId: ID!\n $notes: String\n $slug: String!\n ) {\n editingJobServiceSaveDetailsAsPartnerUser(\n input: { editingJobId: $editingJobId, notes: $notes, slug: $slug }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return R=function(){return e},e}let O=e=>{var n,i,t,d,o,a,s,g,c,m,x,j,v,y,M,S,N;let{editingJob:f,context:D,onDismiss:L}=e,T=(0,p.p1)({step:h.oM.image_enhancement}),J=(0,I.IT)((0,I.J1)(Z()),{variables:{jobId:null==f?void 0:f.id},skip:(null==f?void 0:f.id)==null,fetchPolicy:"network-only"}),A=(null==(t=J.data)||null==(i=t.editingJob)||null==(n=i.servicesSummary)?void 0:n.edges)==null||(null==(s=J.data)||null==(a=s.editingJob)||null==(o=a.servicesSummary)||null==(d=o.edges)?void 0:d.length)===0?null==J||null==(m=J.data)||null==(c=m.editingJob)||null==(g=c.thirdPartyServices)?void 0:g.edges:null==(v=J.data)||null==(j=v.editingJob)||null==(x=j.servicesSummary)?void 0:x.edges,C=null==A?void 0:A.find(e=>{var n,i;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.ImageEnhancement||(null==e||null==(i=e.editingJobService)?void 0:i.slug)===h.XZ.ImageEnhancementAuto}),z=null==C||null==(y=C.editingJobService)?void 0:y.tier,w=null==C||null==(M=C.details)?void 0:M.notes,[O,Y]=r.useState(w);r.useEffect(()=>{null!=w&&Y(w)},[w]);let[U,G]=(0,I.n_)((0,I.J1)(R()));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:T.progress,prev:T.onPrev,onDismiss:()=>L({step:h.oM.image_enhancement,editingJob:f})}),(null==(S=J.data)?void 0:S.editingJob.servicesSummary.edges)&&null==C||(null==f?void 0:f.usesPreset)===!0||"auto"===z?(0,l.jsx)(B.e,{editingJob:f,progressData:T}):!0===J.loading&&null==J.data?(0,l.jsx)(P.c,{}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{height:32}}),(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:"auto"===z?k.vt:k.Y$,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Image enhancement, color correction, cropping and resizing"}),(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),null!=O?(()=>{var e;U({variables:{editingJobId:null==f?void 0:f.id,notes:O,slug:null==C||null==(e=C.editingJobService)?void 0:e.slug}}).then(()=>T.onNext({extraQuery:{editingJob:f}}))})():T.onNext({extraQuery:{editingJob:f}})},children:[(0,l.jsx)("div",{style:{paddingRight:16,paddingLeft:16},children:(0,l.jsx)(E.T,{optional2:!0,height:166,placeholder:"e.g. Brightness or exposure, shadows and highlights, contrast, color balance",label:"Instructions on how you would like the images edited",labelLarge:!0,disabled:G.loading||J.loading,value:O||"",name:"enhancement_details",onChange:e=>{let{target:{value:n}}=e;return Y(n)}})}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginTop:7}}),(0,l.jsx)("div",{style:{padding:16},children:(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,disabled:G.loading||J.loading,children:(null!=(N=null==O?void 0:O.length)?N:0)>0?"Continue":"Skip"})})]})]})]})};var Y=i(79133),U=i.n(Y);function G(){let e=(0,x._)(["\n query EditingJobExtraNotes($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n notes\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n tier\n }\n }\n }\n }\n }\n "]);return G=function(){return e},e}function W(){let e=(0,x._)(["\n mutation EditingJobSaveNotes($editingJobId: ID!, $notes: String!) {\n editingJobSaveNotesAsPartnerUser(\n input: { editingJobId: $editingJobId, notes: $notes }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return W=function(){return e},e}let $=e=>{var n,i,t,d,o,a,s,g;let{editingJob:c,context:m,onDismiss:x}=e,j=(0,p.p1)({step:h.oM.extra_notes}),v=(0,I.IT)((0,I.J1)(G()),{variables:{jobId:null==c?void 0:c.id},skip:(null==c?void 0:c.id)==null}),y=null==(i=v.data)||null==(n=i.editingJob)?void 0:n.notes,[M,S]=r.useState(y);r.useEffect(()=>{null!=y&&S(y)},[y]);let[N,f]=(0,I.n_)((0,I.J1)(W())),D=null==(s=v.data)||null==(a=s.editingJob)||null==(o=a.servicesSummary)||null==(d=o.edges)||null==(t=d.map(e=>{var n;return null==e||null==(n=e.editingJobService)?void 0:n.tier}))?void 0:t.includes("auto");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:j.progress,prev:j.onPrev,onDismiss:()=>x({step:h.oM.extra_notes,editingJob:c})}),null==M&&!0===v.loading&&null==v.data?(0,l.jsx)(P.c,{}):(null==c?void 0:c.usesPreset)===!0||!0===D?(0,l.jsx)(B.e,{editingJob:c,progressData:j}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{height:32}}),(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:U(),alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Anything else we should know?",marginBottom:16}),(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),null!=M?N({variables:{editingJobId:null==c?void 0:c.id,notes:M}}).then(()=>j.onNext({extraQuery:{editingJob:c}})):j.onNext({extraQuery:{editingJob:c}})},children:[(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,l.jsx)("div",{style:{paddingRight:16,paddingLeft:16,paddingBottom:32,textAlign:"center",lineHeight:1},children:(0,l.jsx)("small",{children:"Please do not use this field for instructions out of the scope. If you need anything out of the scope, please contact your account executive."})}),(0,l.jsx)(E.T,{optional2:!0,height:166,label:"Additional instructions",labelLarge:!0,value:M||"",name:"enhancement_details",disabled:f.loading||v.loading,onChange:e=>{let{target:{value:n}}=e;return S(n)}})]}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginTop:7}}),(0,l.jsx)("div",{style:{padding:16},children:(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,disabled:f.loading||v.loading,children:(null!=(g=null==M?void 0:M.length)?g:0)>0?"Continue":"Skip"})})]})]})]})};
1var _=i(46479),H=i.n(_),Q=i(22081),F=i.n(Q),X=i(53889),V=i(69329),K=i(71480),q=i.n(K),ee=i(7189);function en(){let e=(0,x._)(["\n mutation EditingJobReferenceImagesDelete(\n $editingJobId: ID!\n $referenceMediaIds: [EditingJobReferenceMediaIdInput]!\n ) {\n editingJobDeleteReferenceMediaAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n referenceMediaIds: $referenceMediaIds\n }\n ) {\n success\n }\n }\n "]);return en=function(){return e},e}function ei(){let e=(0,x._)(["\n query EditingJobImagesOnReferenceUpload(\n $jobId: ID!\n $cursor: String\n $first: Int\n ) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n tier\n }\n }\n }\n referenceMedias(first: $first, cursor: $cursor) {\n cursor\n edges {\n id\n referenceImage {\n fileName\n id\n extraSmall {\n url\n }\n medium {\n url\n width\n }\n }\n }\n }\n }\n }\n "]);return ei=function(){return e},e}function el(){let e=(0,x._)(["\n mutation EditingJobSaveReferenceImagesCreate(\n $editingJobId: ID!\n $referenceMediaId: ID!\n ) {\n editingJobCreateReferenceMedia(\n input: {\n editingJobId: $editingJobId\n referenceMediaId: $referenceMediaId\n }\n ) {\n media {\n id\n }\n }\n }\n "]);return el=function(){return e},e}function et(e){var n,t,d,o,a,s,g,u,c;let{image:m,onDelete:x,editingJobId:b}=e,j=function(e){let{src:n}=e,[i,l]=r.useState(!1),[t,d]=r.useState(!1),o=new Image;return o.onload=()=>{l(!0)},o.onerror=()=>d(!0),o.src=n,{loaded:i,error:t}}({src:null!=(c=null==m||null==(t=m.referenceImage)||null==(n=t.extraSmall)?void 0:n.url)?c:""}),[p,v]=(0,I.n_)((0,I.J1)(en()));return(null==m||null==(o=m.referenceImage)||null==(d=o.extraSmall)?void 0:d.url)!=null?(0,l.jsxs)("div",{className:"jsx-5419d1705d61718a tile",children:[(0,l.jsx)("img",{src:null==m||null==(s=m.referenceImage)||null==(a=s.extraSmall)?void 0:a.url,alt:"sample",loading:"lazy",style:{opacity:+(!0===j.loaded),transition:"opacity 1s",filter:!1===v.loading&&null==v.data||null!=v.error?"":"grayscale(100%)",height:"100%",width:"100%",objectFit:"cover",borderRadius:2,position:"absolute",backgroundColor:"transparent",top:0,left:0,padding:8},className:"jsx-5419d1705d61718a"}),(0,l.jsx)("div",{style:{padding:8,position:"absolute"},className:"jsx-5419d1705d61718a",children:(0,l.jsx)("div",{style:{backgroundColor:"rgba(193, 200, 212, 0.1)",width:"100%",height:"100%"},className:"jsx-5419d1705d61718a"})}),(0,l.jsx)("button",{style:{border:"none",background:"transparent",marginLeft:85,marginTop:2,width:20,height:20},disabled:v.loading,onClick:()=>{var e,n;return p({variables:{editingJobId:null!=b?b:"",referenceMediaIds:[{id:null!=(n=null==m||null==(e=m.referenceImage)?void 0:e.id)?n:""}]}}).then(()=>x())},className:"jsx-5419d1705d61718a",children:(0,l.jsx)("img",{src:i(57016),alt:"close",style:{opacity:+(!0===j.loaded),filter:"drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.65))"},className:"jsx-5419d1705d61718a"})}),(0,l.jsx)(H(),{id:"5419d1705d61718a",children:'.tile.jsx-5419d1705d61718a{flex-basis:calc(25%);flex-shrink:0;position:relative;box-sizing:border-box}.tile.jsx-5419d1705d61718a::before{content:"";display:block;padding-top:100%}.tile.jsx-5419d1705d61718a>*.jsx-5419d1705d61718a{position:absolute;top:0;left:0;height:100%;width:100%;padding:8px}'})]},null==m||null==(g=m.referenceImage)?void 0:g.id):(0,l.jsxs)("div",{className:"jsx-5419d1705d61718a tile",children:[(0,l.jsx)(ee.b,{iconSize:"55px",imageName:null==m?void 0:m.referenceImage.fileName,truncateWidth:"90px",nameSize:10,bgColor:"transparent"}),(0,l.jsx)("div",{style:{padding:8,position:"absolute"},className:"jsx-5419d1705d61718a",children:(0,l.jsx)("div",{style:{backgroundColor:"#E8EDF5",width:"100%",height:"100%"},className:"jsx-5419d1705d61718a"})}),(0,l.jsx)("button",{style:{border:"none",background:"transparent",marginLeft:85,marginTop:2,width:20,height:20},disabled:v.loading,onClick:()=>{var e,n;return p({variables:{editingJobId:null!=b?b:"",referenceMediaIds:[{id:null!=(n=null==m||null==(e=m.referenceImage)?void 0:e.id)?n:""}]}}).then(()=>x())},className:"jsx-5419d1705d61718a",children:(0,l.jsx)("img",{src:i(57016),alt:"close",style:{opacity:+(!0===j.loaded),filter:"drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.65))"},className:"jsx-5419d1705d61718a"})}),(0,l.jsx)(H(),{id:"5419d1705d61718a",children:'.tile.jsx-5419d1705d61718a{flex-basis:calc(25%);flex-shrink:0;position:relative;box-sizing:border-box}.tile.jsx-5419d1705d61718a::before{content:"";display:block;padding-top:100%}.tile.jsx-5419d1705d61718a>*.jsx-5419d1705d61718a{position:absolute;top:0;left:0;height:100%;width:100%;padding:8px}'})]},null==m||null==(u=m.referenceImage)?void 0:u.id)}let ed=e=>{var n,i,t,d,o,a,s,g;let{editingJob:c,context:m,onDismiss:x}=e,j=(0,p.p1)({step:h.oM.reference_images}),v=(0,I.IT)((0,I.J1)(ei()),{variables:{first:5e3,jobId:null==c?void 0:c.id},skip:(null==c?void 0:c.id)==null}),y=null==(o=v.data)||null==(d=o.editingJob)||null==(t=d.servicesSummary)||null==(i=t.edges)||null==(n=i.map(e=>{var n;return null==e||null==(n=e.editingJobService)?void 0:n.tier}))?void 0:n.includes("auto"),M=null==(g=v.data)||null==(s=g.editingJob)||null==(a=s.referenceMedias)?void 0:a.edges,[S,N]=(0,I.n_)((0,I.J1)(el())),{uploadsList:f,addFiles:D}=(0,X.Su)({token:m.token,onUploadReady:e=>{let{fileName:n,mediaUid:i,remove:l}=e;return(0,V.n)("/api/v2/media/create-from-temp",{token:m.token,method:"POST",body:JSON.stringify({tempMediaUid:i,fileName:n})}).then(()=>{var e;return S({variables:{editingJobId:null!=(e=null==c?void 0:c.id)?e:"",referenceMediaId:i}}).then(()=>v.refetch())})}}),L=r.useMemo(()=>{let e=new Set(null==M?void 0:M.map(e=>e.referenceImage.id));return f.filter(n=>null==n.mediaUid||!e.has(n.mediaUid))},[f,M]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:j.progress,prev:j.onPrev,onDismiss:()=>x({step:h.oM.image_uploader,editingJob:c})}),(null==c?void 0:c.usesPreset)===!0||!0===y?(0,l.jsx)(B.e,{editingJob:c,progressData:j}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{height:32},className:"jsx-a5c73d9474e4090f"}),(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},className:"jsx-a5c73d9474e4090f",children:[(0,l.jsx)(u.vt,{title:"Add reference images",marginBottom:16}),(0,l.jsx)("p",{style:{fontSize:14,color:"#454F5C",textAlign:"center"},className:"jsx-a5c73d9474e4090f",children:(null==f?void 0:f.length)>0||null!=M&&(null==M?void 0:M.length)>0?(0,l.jsxs)("span",{className:"jsx-a5c73d9474e4090f",children:[null==M?void 0:M.length," uploaded, ",null==L?void 0:L.length," ","uploading"," "]}):(0,l.jsx)("span",{className:"jsx-a5c73d9474e4090f",children:"Share samples of what you are looking for"})}),(0,l.jsx)("div",{style:{height:16},className:"jsx-a5c73d9474e4090f"}),(0,l.jsx)(F(),{style:{backgroundColor:"#F6F9FF",height:200,textAlign:"center",position:"relative",border:"1px solid #E8EDF5"},onDrop:e=>D({acceptedFiles:e}),accept:"image/jpeg",children:(0,l.jsx)("div",{className:"jsx-a5c73d9474e4090f",children:(0,l.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"#71767E",fontWeight:"bold"},className:"jsx-a5c73d9474e4090f",children:[(0,l.jsx)("div",{style:{marginBottom:8},className:"jsx-a5c73d9474e4090f",children:(0,l.jsx)("img",{src:q(),alt:"info",className:"jsx-a5c73d9474e4090f"})}),"Drag and drop your images here or"," ",(0,l.jsx)("span",{style:{textDecoration:"underline",cursor:"pointer"},className:"jsx-a5c73d9474e4090f",children:"browse"})]})})})]}),(0,l.jsx)("div",{style:{height:16},className:"jsx-a5c73d9474e4090f"}),((null==f?void 0:f.length)>0||null!=M&&(null==M?void 0:M.length)>0)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx},className:"jsx-a5c73d9474e4090f"}),(0,l.jsx)("div",{style:{paddingRight:16,paddingLeft:16},className:"jsx-a5c73d9474e4090f",children:(0,l.jsxs)("div",{className:"jsx-a5c73d9474e4090f tile-wrapper",children:[null!=M&&(null==M?void 0:M.length)>0&&M.map(e=>(0,l.jsx)(et,{image:e,editingJobId:null==c?void 0:c.id,onDelete:()=>{var n;return null==(n=f.find(n=>n.mediaUid===e.referenceImage.id))||n.remove(),v.refetch()}},e.id)),(null==L?void 0:L.length)>0&&L.map(e=>(0,l.jsxs)("div",{className:"jsx-a5c73d9474e4090f tile",children:[(0,l.jsx)("div",{style:{borderRadius:2},className:"jsx-a5c73d9474e4090f",children:(0,l.jsx)(X.NB,{file:e.file,alt:"preview",width:"100%",height:"100%",loading:"lazy",style:{filter:"grayscale(100%)",objectFit:"cover",borderRadius:2},optimizePerformance:!0})}
1),null!=e.sizeUploaded&&null!=e.fileSize&&(0,l.jsx)("div",{style:{position:"absolute",top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center"},className:"jsx-a5c73d9474e4090f",children:(0,l.jsx)(X.ZP,{progress:e.sizeUploaded/e.fileSize})})]},e.fileName))]})})]}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx},className:"jsx-a5c73d9474e4090f"}),(0,l.jsx)("div",{style:{padding:16},className:"jsx-a5c73d9474e4090f",children:(0,l.jsx)(u.$J,{disabled:N.loading||(null==L?void 0:L.length)>0,size:"lg",fullWidth:!0,onClick:()=>j.onNext({extraQuery:{editingJob:c}}),children:(null!=M?M:[]).length>0?"Continue":"Skip"})}),(0,l.jsx)(H(),{id:"a5c73d9474e4090f",children:'.tile-wrapper.jsx-a5c73d9474e4090f{display:flex;flex-wrap:wrap;margin-left:-5px;margin-right:-5px;max-height:400px;overflow-y:scroll;padding-top:8px;padding-bottom:8px}.tile-wrapper.jsx-a5c73d9474e4090f .tile.jsx-a5c73d9474e4090f{flex-basis:calc(25%);flex-shrink:0;position:relative;box-sizing:border-box}.tile-wrapper.jsx-a5c73d9474e4090f .tile.jsx-a5c73d9474e4090f::before{content:"";display:block;padding-top:100%}.tile-wrapper.jsx-a5c73d9474e4090f .tile.jsx-a5c73d9474e4090f>*.jsx-a5c73d9474e4090f{position:absolute;top:0;left:0;height:100%;width:100%;padding:8px}'})]})]})};var eo=i(30113),ea=i(95831),es=i.n(ea),er=i(60960),eg=i.n(er);function eu(){let e=(0,x._)(["\n query EditingJobsPresetsOrCustom($id: UUID!) {\n partnerById(uid: $id) {\n uid\n editingJobPresets {\n edges {\n id\n }\n }\n }\n }\n "]);return eu=function(){return e},e}let ec=e=>{var n,i,t;let{editingJob:d,context:o,onDismiss:a}=e,s=(0,p.p1)({step:h.oM.preset_or_custom}),r=(0,I.IT)((0,I.J1)(eu()),{variables:{id:o.partner.uid},fetchPolicy:"network-only"}),g=null==(t=r.data)||null==(i=t.partnerById)||null==(n=i.editingJobPresets)?void 0:n.edges;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:s.progress,prev:s.onPrev,onDismiss:()=>a({step:h.oM.preset_or_custom,editingJob:d})}),(0,l.jsx)("div",{style:{height:32}}),null==g&&!0===r.loading?(0,l.jsx)(P.c,{}):null!==g&&(null==g?void 0:g.length)===0||(null==d?void 0:d.thirdPartyEnabled)===!0?(0,l.jsx)(B.e,{editingJob:d,progressData:s}):(null==g?void 0:g.length)!=null&&g.length>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.vt,{title:"Do you need to use a preset?",marginBottom:16}),(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,l.jsx)(eo.q,{onClick:()=>s.onNext({extraQuery:{editingJob:{...d,usesPreset:!0}}}),label:"Yes, use a saved preset",iconAlt:"preset",icon:es()}),(0,l.jsx)(eo.q,{onClick:()=>s.onNext({extraQuery:{editingJob:{...d,usesPreset:!1}}}),label:"No, create a custom job",iconAlt:"custom",icon:eg()}),(0,l.jsx)("div",{style:{height:16}})]})]}):null]})};var em=i(51660),ex=i(51696),eb=i(26494),ej=i(76005);function ep(){let e=(0,x._)(["\n query EditingJobsPresetsSelection($id: UUID!) {\n partnerById(uid: $id) {\n uid\n editingJobPresets {\n edges {\n id\n name\n description\n services {\n edges {\n id\n details {\n notes\n backgroundRemovalType\n backgroundRemovalColor\n upscalingType\n upscalingCustomValue\n croppingRatio\n croppingWidth\n croppingHeight\n croppingLongestEdge\n virtualStagingStyle\n }\n editingJobService {\n id\n slug\n displayName\n }\n }\n }\n }\n }\n }\n }\n "]);return ep=function(){return e},e}function eI(){let e=(0,x._)(["\n mutation EditingJobSetPresetAsPartnerUser(\n $presetId: ID!\n $editingJobId: ID!\n ) {\n editingJobSetPresetAsPartnerUser(\n input: { presetId: $presetId, editingJobId: $editingJobId }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return eI=function(){return e},e}let ev=e=>{var n,i,t;let{editingJob:d,context:o,onDismiss:a}=e,s=(0,p.p1)({step:h.oM.preset_selection}),r=(0,I.IT)((0,I.J1)(ep()),{variables:{id:o.partner.uid},fetchPolicy:"network-only"}),[g,c]=(0,I.n_)((0,I.J1)(eI())),m=null==(t=r.data)||null==(i=t.partnerById)||null==(n=i.editingJobPresets)?void 0:n.edges;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:s.progress,prev:s.onPrev,onDismiss:()=>a({step:h.oM.preset_selection,editingJob:d})}),(null==d?void 0:d.usesPreset)===!1||(null==m?void 0:m.length)===0||(null==d?void 0:d.thirdPartyEnabled)===!0?(0,l.jsx)(B.e,{editingJob:d,progressData:s}):null==m&&!0===r.loading?(0,l.jsx)(P.c,{}):(null==m?void 0:m.length)!=null&&m.length>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{height:32}}),(0,l.jsx)("div",{children:null==d?void 0:d.usesPreset}),(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:es(),alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Which preset do you want to use?",marginBottom:16}),null==m?void 0:m.map(e=>{var n,i;return(0,l.jsx)(em.y,{height:"100%",disabled:c.loading,onClick:()=>g({variables:{presetId:e.id,editingJobId:null==d?void 0:d.id}}).then(e=>{let{data:n}=e;return(null==n?void 0:n.editingJobSetPresetAsPartnerUser.editingJob.id)?s.onNext({extraQuery:{editingJob:d}}):null}),children:(0,l.jsxs)("div",{style:{paddingTop:24,paddingBottom:24,paddingLeft:32,paddingRight:32},children:[(0,l.jsx)("div",{style:{fontSize:18},children:e.name}),(0,l.jsx)("div",{style:{color:"#71767E",fontSize:14,fontWeight:"lighter"},children:null==e?void 0:e.description}),(0,l.jsx)("div",{children:null==e||null==(i=e.services)||null==(n=i.edges)?void 0:n.map(e=>{var n,i,t,d;return(0,l.jsx)(eb.m,{label:"".concat(null==e||null==(n=e.editingJobService)?void 0:n.displayName,":\n ").concat((null==e?void 0:e.details)!=null&&(0,ej.O)(null==e?void 0:e.details)),centered:!0,children:(0,l.jsx)("img",{width:16,alt:null==e||null==(i=e.editingJobService)?void 0:i.slug,style:{marginRight:8},src:ex.$R[null==e||null==(t=e.editingJobService)?void 0:t.slug].icon},null==e||null==(d=e.editingJobService)?void 0:d.slug)},null==e?void 0:e.id)})})]})},e.id)}),(0,l.jsx)("div",{style:{height:24}})]})]}):null]})};var ey=i(12236),eh=i(92614),eM=i.n(eh),eS=i(17314),eN=i.n(eS);let ef=e=>
1{let{editingJob:n,context:i,onDismiss:t}=e,d=(0,p.p1)({step:h.oM.save_preset});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:d.progress,prev:d.onPrev,onDismiss:()=>t({step:h.oM.save_preset,editingJob:n})}),(null==n?void 0:n.usesPreset)===!0?(0,l.jsx)(B.e,{editingJob:n,progressData:d}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{height:32}}),(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:es(),alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Do you want to save this job as a preset?",marginBottom:16}),(0,l.jsx)(ey.q,{height:95,fontWeight:"bold",onClick:()=>d.onNext({extraQuery:{editingJob:{...n,savePreset:!0}}}),label:"Yes, save as preset",iconAlt:"yes",icon:eM()}),(0,l.jsx)(ey.q,{height:95,fontWeight:"bold",label:"No, this is a one time job",onClick:()=>d.onNext({extraQuery:{editingJob:{...n,savePreset:!1}}}),iconAlt:"no",icon:eN()}),(0,l.jsx)("div",{style:{height:24}})]})]})]})};function eD(){let e=(0,x._)(["\n mutation EditingJobCreatePresetAsPartnerUser(\n $editingJobId: ID!\n $name: String!\n $description: String\n ) {\n editingJobCreatePresetAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n name: $name\n description: $description\n }\n ) {\n editingJobPreset {\n id\n }\n }\n }\n "]);return eD=function(){return e},e}function eL(){let e=(0,x._)(["\n query EditingJobPresetSummary($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n notes\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n displayName\n price\n }\n details {\n notes\n backgroundRemovalType\n backgroundRemovalColor\n upscalingType\n upscalingCustomValue\n croppingRatio\n croppingWidth\n croppingHeight\n croppingLongestEdge\n virtualStagingStyle\n }\n quantity\n totalPrice\n }\n }\n }\n }\n "]);return eL=function(){return e},e}let eT=e=>{let{label:n,description:i,icon:t,iconAlt:d,total:o,tooltip:a}=e;return(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"row",marginTop:"auto",marginBottom:8},children:[(0,l.jsx)("img",{src:t,alt:d,style:{width:18,height:18,marginRight:12,marginLeft:2,marginTop:6}}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{fontSize:14,marginTop:3},children:n}),null!=i&&(0,l.jsx)("div",{style:{fontSize:12,color:"#71767E"},children:i})]}),null!=o&&(0,l.jsx)("div",{style:{fontSize:14,marginTop:3,marginLeft:"auto"},children:o})]})},eJ=e=>{var n,i,t,d,o,a;let{editingJob:s,context:g,onDismiss:c}=e,m=(0,p.p1)({step:h.oM.preset_summary}),[x,j]=(0,r.useState)(),[v,y]=(0,r.useState)(),[M,S]=(0,I.n_)((0,I.J1)(eD())),N=(0,I.IT)((0,I.J1)(eL()),{variables:{jobId:null==s?void 0:s.id},skip:(null==s?void 0:s.id)==null});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:m.progress,prev:m.onPrev,onDismiss:()=>c({step:h.oM.save_preset,editingJob:s})}),(null==s?void 0:s.usesPreset)===!0||(null==s?void 0:s.savePreset)===!1?(0,l.jsx)(B.e,{editingJob:s,progressData:m}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{height:32}}),(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:es(),alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Save this list of editing services as a preset",marginBottom:16}),(0,l.jsxs)("form",{action:"post",onSubmit:e=>(e.preventDefault(),M({variables:{editingJobId:null==s?void 0:s.id,name:x,description:v}}).then(e=>{var n,i;let{data:l}=e;return(null==l||null==(i=l.editingJobCreatePresetAsPartnerUser)||null==(n=i.editingJobPreset)?void 0:n.id)?m.onNext({extraQuery:{editingJob:s}}):null})),children:[(0,l.jsx)(u.pd,{label:"Preset name",placeholder:"e.g. Basic edits",labelLarge:!0,name:"name",onChange:e=>{let{target:{value:n}}=e;return j(n)},value:x}),(0,l.jsx)(u.pd,{label:"Preset description",placeholder:"e.g. Edits for basic jobs",labelLarge:!0,name:"description",onChange:e=>{let{target:{value:n}}=e;return y(n)},value:v,optional2:!0}),(0,l.jsxs)("div",{style:{border:"1px solid #E8EDF5",paddingLeft:16,paddingRight:16,paddingBottom:8,borderRadius:2,marginBottom:8},children:[(0,l.jsx)("h4",{style:{color:"#141B24",fontSize:16,fontWeight:"bold",marginTop:20},children:"Editing Services"}),null==(d=N.data)||null==(t=d.editingJob)||null==(i=t.servicesSummary)||null==(n=i.edges)?void 0:n.map(e=>{var n,i,t,d;return(0,l.jsx)(eT,{icon:(null==e||null==(n=e.editingJobService)?void 0:n.slug)!=null&&ex.$R[null==e||null==(i=e.editingJobService)?void 0:i.slug].icon,iconAlt:null==e||null==(t=e.editingJobService)?void 0:t.slug,label:null==e||null==(d=e.editingJobService)?void 0:d.displayName,description:(null==e?void 0:e.details)!=null?(0,ej.O)(null==e?void 0:e.details):""},e.id)}),(0,l.jsx)(eT,{icon:U(),iconAlt:"notes",description:null==(a=N.data)||null==(o=a.editingJob)?void 0:o.notes,label:"Additional instructions"})]}),(0,l.jsx)("div",{style:{paddingTop:16,paddingBottom:15},children:(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,disabled:S.loading||null==x,type:"submit",children:"Save as preset"})})]})]})]})]})};var eA=i(86847);function eC(){let e=(0,x._)(["\n query EditingJobThirdPartyContactInfo($jobId: ID!, $cursor: String) {\n editingJob: editingJobById(id: $jobId) {\n id\n items(cursor: $cursor) {\n cursor\n total\n edges {\n id\n originalImage {\n id\n }\n }\n }\n thirdPartyPrimaryContact {\n id\n firstname\n surname\n email\n mobilephone\n companyName\n }\n }\n }\n "]);return eC=function(){return e},e}function ez(){let e=(0,x._)(["\n mutation EditingJobSaveImagesDelete2213123(\n $editingJobId: ID!\n $originalMediaIds: [EditingJobOriginalMediaIdInput]!\n ) {\n editingJobDeleteItemAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n originalMediaIds: $originalMediaIds\n }\n ) {\n success\n }\n }\n "]);return ez=function(){return e},e}function ew(){let e=(0,x._)(["\n mutation EditingJobSaveThirdPartyContact(\n $editingJobId: ID!\n $firstname: String!\n $surname: String\n $email: String!\n $mobilephone: String\n $companyName: String\n ) {\n editingJobCreateThirdPartyContactAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n firstname: $firstname\n surname: $surname\n email: $email\n mobilephone: $mobilephone\n companyName: $companyName\n }\n ) {\n editingJobThirdPartyContact {\n id\n }\n }\n }\n "]);return ew=function(){return e},e}function ek(){let e=(0,x._)(["\n mutation EditingJobUpdateThirdPartyContact(\n $id: ID!\n $editingJobId: ID!\n $firstname: String!\n $surname: String\n $email: String!\n $mobilephone: String\n $companyName: String\n ) {\n editingJobUpdateThirdPartyContactAsPartnerUser(\n input: {\n id: $id\n editingJobId: $editingJobId\n firstname: $firstname\n surname: $surname\n email: $email\n mobilephone: $mobilephone\n companyName: $companyName\n }\n ) {\n editingJobThirdPartyContact {\n id\n }\n }\n }\n "]);return ek=function(){return e},e}let eE=e=>{var n,i,t,d,o,a,s,g,c;let{editingJob:m,context:x,onDismiss:j}=e,v=(0,p.p1)({step:h.oM.third_party}),[y,M]=r.useState(x.partner.region.name||"US"),[S,N]=r.useState(null),[f,D]=r.useState(null),[L,T]=r.useState(null),[J,A]=r.useState(null),[C,z]=r.useState(null),w=(0,I.IT)((0,I.J1)(eC()),{variables:{jobId:null==m?void 0:m.id},skip:(null==m?void 0:m.id)==null}),k=null==w||null==(t=w.data)||null==(i=t.editingJob)||null==(n=i.items)?void 0:n.total,E=null!=(c=null==w||null==(a=w.data)||null==(o=a.editingJob)||null==(d=o.items)?void 0:d.edges.map(e=>({id:e.originalImage.id})))?c:[],P=null==w||null==(g=w.data)||null==(s=g.editingJob)?void 0:s.thirdPartyPrimaryContact,Z=null==P?void 0:P.id;r.useEffect(()=>{var e,n,i,l;null!=P&&(D(P.firstname),T(null!=(e=P.surname)?e:null),A(null!=(n=P.email)?n:null),N(null!=(i=P.mobilephone)?i:null),z(null!=(l=P.companyName)?l:null))},[P]);let[R,O]=(0,I.n_)((0,I.J1)(ez())),[Y,U]=(0,I.n_)((0,I.J1)(ew())),[G,W]=(0,I.n_)((0,I.J1)(ek()));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:v.progress,prev:v.onPrev,onDismiss:()=>j({step:h.oM.third_party,editingJob:m})}),(0,l.jsx)("div",{style:{height:32}}),(null==m?void 0:m.thirdPartyEnabled)===!1?(0,l.jsx)(B.e,{editingJob:m,progressData:v}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.vt,{title:"Uploader details",marginBottom:16}),(0,l.jsx)("p",{style:{fontSize:14,color:"#454F5C",textAlign:"center",paddingLeft:24,paddingRight:24},children:(0,l.jsx)("span",{children:"The uploader is the person who has the photos and will upload them to Snappr."})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{height:16}}),(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,l.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:16},children:[(0,l.jsx)("div",{children:(0,l.jsx)(u.pd,{label:"First name",placeholder:"e.g. Mary",labelLarge:!0,name:"firstName",value:f||"",onChange:e=>{let{target:{value:n}}=e;return D(""===n?null:n)}})}),(0,l.jsx)("div",{children:(0,l.jsx)(u.pd,{label:"Last name",optional2:!0,placeholder:"e.g. Citizen",labelLarge:!0,name:"lastName",value:L||"",onChange:e=>{let{target:{value:n}}=e;return T(""===n?null:n)}})})]}),(0,l.jsx)(u.pd,{label:"Email",placeholder:"e.g. [email protected]",labelLarge:!0,name:"email",value:J||"",onChange:e=>{let{target:{value:n}}=e;return A(""===n?null:n)}}),(0,l.jsx)(eA.L,{errorsOnTop:!0,country:y,value:S||"",onChange:e=>{let{target:{value:n}}=e;N(""===n?null:n)},setCountry:M,label:"Phone",placeholder:"e.g. 555 555 5555",labelLarge:!0,name:"phone",optional2:!0}),(0,l.jsx)(u.pd,{label:"Company name",placeholder:"e.g. Acme Inc.",labelLarge:!0,name:"company",optional2:!0,value:C||"",onChange:e=>{let{target:{value:n}}=e;return z(""===n?null:n)}})]}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginBottom:16,marginTop:7}}),(0,l.jsx)("div",{style:{paddingRight:16,paddingBottom:16,paddingLeft:16},children:(0,l.jsx)(u.$J,{disabled:null==f||null==J||O.loading||U.loading||W.loading,fullWidth:!0,onClick:()=>{var e,n,i;let l=(null!=k?k:0)>0?R({variables:{editingJobId:null!=(e=null==m?void 0:m.id)?e:"",originalMediaIds:E}}):null,t=null!=Z?G({variables:{id:null!=Z?Z:"",editingJobId:null!=(n=null==m?void 0:m.id)?n:"",firstname:null!=f?f:"",surname:null!=L?L:"",email:null!=J?J:"",mobilephone:null!=S?S:"",companyName:null!=C?C:""}}):Y({variables:{editingJobId:null!=(i=null==m?void 0:m.id)?i:"",firstname:null!=f?f:"",surname:null!=L?L:"",email:null!=J?J:"",mobilephone:null!=S?S:"",companyName:null!=C?C:""}});return null!=f&&null!=J?Promise.all([l,t].filter(e=>null!=e)).then(()=>v.onNext({extraQuery:{editingJob:{...m}}})):null},size:"lg",type:"submit",children:"Continue"})})]})]})]})};var eP=i(42016);function eB(){let e=(0,x._)(["\n query EditingJobThirdPartyContactRestrictions($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n thirdPartyPrimaryContact {\n id\n restrictionData {\n minNumberOfImages\n maxNumberOfImages\n }\n }\n }\n }\n "]);return eB=function(){return e},e}function eZ(){let e=(0,x._)(["\n mutation EditingJobUpdateThirdPartyContactRestrictionData(\n $id: ID!\n $editingJobId: ID!\n $minNumberOfImages: Int\n $maxNumberOfImages: Int\n ) {\n editingJobUpdateThirdPartyContactAsPartnerUser(\n input: {\n id: $id\n editingJobId: $editingJobId\n minNumberOfImages: $minNumberOfImages\n maxNumberOfImages: $maxNumberOfImages\n }\n ) {\n editingJobThirdPartyContact {\n id\n }\n }\n }\n "]);return eZ=function(){return e},e}let eR=e=>{var n,i,t,d,o,a;let{editingJob:s,context:g,onDismiss:c}=e,m=(0,p.p1)({step:h.oM.max_min}),[x,j]=r.useState(null),[v,y]=r.useState(null),M=(0,I.IT)((0,I.J1)(eB()),{variables:{jobId:null==s?void 0:s.id},skip:(null==s?void 0:s.id)==null}),S=null==M||null==(t=M.data)||null==(i=t.editingJob)||null==(n=i.thirdPartyPrimaryContact)?void 0:n.id,N=null==M||null==(a=M.data)||null==(o=a.editingJob)||null==(d=o.thirdPartyPrimaryContact)?void 0:d.restrictionData;r.useEffect(()=>{var e,n,i,l;null!=N&&(j(null!=(i=null==N||null==(e=N.maxNumberOfImages)?void 0:e.toString())?i:null),y(null!=(l=null==N||null==(n=N.minNumberOfImages)?void 0:n.toString())?l:null))},[N]);let[f,D]=(0,I.n_)((0,I.J1)(eZ()));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:m.progress,prev:m.onPrev,onDismiss:()=>c({step:h.oM.max_min,editingJob:s})}),(0,l.jsx)("div",{style:{height:32}}),(null==s?void 0:s.thirdPartyEnabled)===!1?(0,l.jsx)(B.e,{editingJob:s,progressData:m}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.vt,{title:"Uploader details",marginBottom:16}),(0,l.jsx)("p",{style:{fontSize:14,color:"#454F5C",textAlign:"center",paddingLeft:24,paddingRight:24},children:(0,l.jsx)("span",{children:"The uploader is the person who has the photos and will upload them to Snappr."})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{height:16}}),(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,l.jsx)(eP.g,{optional2:!0,labelLarge:!0,value:null!=v?v:"",onChange:e=>{let{target:{value:n}}=e;return y(""===n?null:n)},name:"minimum",suffix:"Images",label:"Minimum number of images"}),(0,l.jsx)(eP.g,{optional2:!0,labelLarge:!0,value:null!=x?x:"",onCh
1ange:e=>{let{target:{value:n}}=e;return j(""===n?null:n)},name:"maximum",suffix:"Images",label:"Maximum number of images"})]}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginBottom:16,marginTop:7}}),(0,l.jsx)("div",{style:{paddingRight:16,paddingBottom:16,paddingLeft:16},children:(0,l.jsx)(u.$J,{disabled:D.loading,fullWidth:!0,onClick:()=>{var e;return f({variables:{id:null!=S?S:"",editingJobId:null!=(e=null==s?void 0:s.id)?e:"",minNumberOfImages:null!=v?+v:null,maxNumberOfImages:null!=x?+x:null}}).then(()=>m.onNext({extraQuery:{editingJob:{...s}}}))},size:"lg",type:"submit",children:null==x&&null==v?"Skip":"Continue"})})]})]})]})};function eO(){let e=(0,x._)(["\n query EditingJobThirdPartyContactDetailsScreen($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n thirdPartyPrimaryContact {\n id\n details\n }\n }\n }\n "]);return eO=function(){return e},e}function eY(){let e=(0,x._)(["\n mutation EditingJobUpdateThirdPartyContactDetails(\n $id: ID!\n $editingJobId: ID!\n $details: String\n ) {\n editingJobUpdateThirdPartyContactAsPartnerUser(\n input: { id: $id, editingJobId: $editingJobId, details: $details }\n ) {\n editingJobThirdPartyContact {\n id\n }\n }\n }\n "]);return eY=function(){return e},e}let eU=e=>{var n,i;let{editingJob:t,context:d,onDismiss:o}=e,a=(0,p.p1)({step:h.oM.third_party_notes}),[s,g]=r.useState(null),c=(0,I.IT)((0,I.J1)(eO()),{variables:{jobId:null==t?void 0:t.id},skip:(null==t?void 0:t.id)==null}),m=null==c||null==(i=c.data)||null==(n=i.editingJob)?void 0:n.thirdPartyPrimaryContact,x=null==m?void 0:m.details,j=null==m?void 0:m.id;r.useEffect(()=>{null!=x&&g(x)},[x]);let[v,y]=(0,I.n_)((0,I.J1)(eY()));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:a.progress,prev:a.onPrev,onDismiss:()=>o({step:h.oM.third_party_notes,editingJob:t})}),(0,l.jsx)("div",{style:{height:32}}),(null==t?void 0:t.thirdPartyEnabled)===!1?(0,l.jsx)(B.e,{editingJob:t,progressData:a}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{paddingLeft:24,paddingRight:24},children:(0,l.jsx)(u.vt,{title:"Anything else the uploader should know?",marginBottom:16})}),(0,l.jsx)("p",{style:{fontSize:14,color:"#454F5C",textAlign:"center",paddingLeft:24,paddingRight:24},children:(0,l.jsx)("span",{children:"This custom message will be visible to the uploader."})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{padding:16},children:(0,l.jsx)(E.T,{optional2:!0,height:166,label:"Additional instructions",labelLarge:!0,name:"enhancement_details",value:s||"",onChange:e=>{let{target:{value:n}}=e;return g(""===n?null:n)}})}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginBottom:16,marginTop:7}}),(0,l.jsx)("div",{style:{paddingRight:16,paddingBottom:16,paddingLeft:16},children:(0,l.jsx)(u.$J,{fullWidth:!0,disabled:y.loading,onClick:()=>{var e;return v({variables:{id:null!=j?j:"",editingJobId:null!=(e=null==t?void 0:t.id)?e:"",details:null!=s?s:""}}).then(e=>a.onNext({extraQuery:{editingJob:{...t}}}))},size:"lg",type:"submit",children:null==s?"Skip":"Continue"})})]})]})]})};
1function eG(){let e=(0,x._)(["\n query EditingJobBackgroundBlur($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n }\n }\n "]);return eG=function(){return e},e}function eW(){let e=(0,x._)(["\n mutation EditingJobBackgroundBlurTypeSelection(\n $editingJobId: ID!\n $bgBlurNotes: String!\n $slug: String!\n ) {\n editingJobServiceSaveDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n bgBlurNotes: $bgBlurNotes\n slug: $slug\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return eW=function(){return e},e}let e$=e=>{var n,i,t,d,o,a;let{editingJob:s,context:r,onDismiss:g}=e,c=(0,p.p1)({step:h.oM.background_blur}),m=(0,I.IT)((0,I.J1)(eG()),{variables:{jobId:null==s?void 0:s.id},skip:(null==s?void 0:s.id)==null,fetchPolicy:"network-only"}),x=null==m||null==(t=m.data)||null==(i=t.editingJob)||null==(n=i.thirdPartyServices)?void 0:n.edges;(null==x||(null==x?void 0:x.length)===0)&&(x=null==(a=m.data)||null==(o=a.editingJob)||null==(d=o.servicesSummary)?void 0:d.edges);let j=null==x?void 0:x.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.Backgroun
1dBlur}),[v,y]=(0,I.n_)((0,I.J1)(eW())),M=null!=m.data&&null==j||(null==s?void 0:s.usesPreset)===!0,S=[{label:h.zF.Subtle,icon:k.tM},{label:h.zF.Medium,icon:k.p1},{label:h.zF.Extreme,icon:k.OO}];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:c.progress,prev:c.onPrev,onDismiss:()=>g({step:h.oM.background_blur,editingJob:s})}),(0,l.jsx)("div",{style:{height:32}}),m.loading&&null==m.data||(null==s?void 0:s.id)==null?(0,l.jsx)(P.c,{}):M?(0,l.jsx)(B.e,{editingJob:s,progressData:c}):(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:k.fZ,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Background blur",marginBottom:16}),(0,l.jsx)("p",{style:{fontSize:"14px",fontWeight:400,lineHeight:"19.6px",textAlign:"center",marginBottom:0},children:"Blur intensity"}),(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",flex:1,padding:"16px"},children:S.map(e=>(0,l.jsx)(ey.q,{height:128,iconSize:80,onClick:()=>(e=>{var n;v({variables:{editingJobId:null==s?void 0:s.id,bgBlurNotes:e,slug:null==j||null==(n=j.editingJobService)?void 0:n.slug}}).then(()=>c.onNext({extraQuery:{editingJob:s}}))})(e.label),disabled:y.loading,label:"".concat(null==e?void 0:e.label[0].toUpperCase()).concat(null==e?void 0:e.label.slice(1)," "),iconAlt:e.label,icon:e.icon},e.label))})]})]})};var e_=i(2516);function eH(){let e=(0,x._)(["\n query EditingJobSpotRemovalScreenQuery(\n $jobId: ID!\n $cursor: String\n $first: Int\n ) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n items(first: $first, cursor: $cursor) {\n cursor\n edges {\n id\n services {\n edges {\n id\n details {\n spotRemovalNotes\n }\n editingJobService {\n id\n tier\n slug\n }\n }\n }\n originalImage {\n id\n fileName\n medium {\n url\n }\n }\n }\n }\n }\n }\n "]);return eH=function(){return e},e}function eQ(){let e=(0,x._)(["\n mutation EditingJobSpotRemovalSaveNotes(\n $editingJobId: ID!\n $slug: String!\n $mediaUid: String!\n $spotRemovalNotes: String\n $applyAll: Boolean\n ) {\n editingJobSaveIndividualMediaDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n slug: $slug\n mediaUid: $mediaUid\n spotRemovalNotes: $spotRemovalNotes\n applyAll: $applyAll\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return eQ=function(){return e},e}let eF=e=>{var n,i,t,d,o,a,s,g,c,m,x,j,v,y,M,S,N,f;let{editingJob:D,context:L,onDismiss:T}=e,J=(0,p.p1)({step:h.oM.spot_removal}),A=(0,I.IT)((0,I.J1)(eH()),{variables:{first:5e3,jobId:null==D?void 0:D.id},skip:(null==D?void 0:D.id)==null}),[C,z]=r.useState(),[w,Z]=r.useState(),R=(null==(t=A.data)||null==(i=t.editingJob)||null==(n=i.servicesSummary)?void 0:n.edges)==null||(null==(s=A.data)||null==(a=s.editingJob)||null==(o=a.servicesSummary)||null==(d=o.edges)?void 0:d.length)===0?null==A||null==(m=A.data)||null==(c=m.editingJob)||null==(g=c.thirdPartyServices)?void 0:g.edges:null==(v=A.data)||null==(j=v.editingJob)||null==(x=j.servicesSummary)?void 0:x.edges,O=null==R?void 0:R.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.SpotRemoval}),Y=null==(S=A.data)||null==(M=S.editingJob)||null==(y=M.items)?void 0:y.edges,U=r.useMemo(()=>null!=Y?Y:[],[Y]),G=r.useMemo(()=>U.map(e=>{var n,i,l;let t=e.originalImage.id,d=null==e||null==(i=e.services)||null==(n=i.edges)?void 0:n.find(e=>e.editingJobService.slug===h.XZ.SpotRemoval);return{uid:t,details:null==d||null==(l=d.details)?void 0:l.spotRemovalNotes}}),[U]),[W,$]=r.useState(0),_=r.useMemo(()=>null!=U?U[null!=W?W:0]:null,[W,U]);r.useEffect(()=>{var e;null!=_&&null!=G&&z(null==(e=G.find(e=>(null==e?void 0:e.uid)===(null==_?void 0:_.originalImage.id)))?void 0:e.details)},[_,G]),r.useEffect(()=>{null!=w&&Z(w)},[w]);let[H,Q]=(0,I.n_)((0,I.J1)(eQ())),F=null!=A.data&&null==O||(null==D?void 0:D.usesPreset)===!0||(null==D?void 0:D.thirdPartyEnabled)===!0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:J.progress,prev:J.onPrev,onDismiss:()=>
1T({step:h.oM.spotRemoval,editingJob:D})}),null==C&&!0===A.loading&&null==A.data?(0,l.jsx)(P.c,{}):F?(0,l.jsx)(B.e,{editingJob:D,progressData:J}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{height:32}}),(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:k.VW,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Spot removal",marginBottom:16}),(0,l.jsx)("p",{style:{textAlign:"center",fontSize:14,color:"#454F5C",marginBottom:40,paddingLeft:16,paddingRight:16},children:"Describe the spot you want to remove. Please note the spot removal service is only intended for subtle and small photo imperfections. If you need to remove objects, please go back to the menu and select object removal."}),(0,l.jsxs)("form",{onSubmit:e=>{var n;e.preventDefault(),H({variables:{editingJobId:null==D?void 0:D.id,slug:h.XZ.SpotRemoval,spotRemovalNotes:null!=C?C:"",mediaUid:null==_||null==(n=_.originalImage)?void 0:n.id,applyAll:w}}).then(async()=>{await A.refetch(),W>=U.length-1||!0===w?J.onNext({extraQuery:{editingJob:D}}):W>=U.length-1||$(e=>e+1)})},children:[(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,l.jsxs)("div",{style:{position:"relative",marginBottom:"16px",height:326},children:[(null==_||null==(N=_.originalImage.medium)?void 0:N.url)!=null?(0,l.jsx)("img",{style:{height:"100%",width:"100%",objectFit:"cover"},src:null==_||null==(f=_.originalImage.medium)?void 0:f.url,alt:""}):(0,l.jsx)(ee.b,{iconSize:"120px",imageName:null==_?void 0:_.originalImage.fileName}),(0,l.jsxs)("div",{style:{position:"absolute",top:0,right:0,margin:"16px",display:"flex"},children:[(0,l.jsx)("button",{style:{width:"24px",height:"24px",borderRadius:"16px",background:"#141B24",border:"none",marginRight:"8px"},onClick:e=>{e.preventDefault(),W<=0||$(e=>e-1)},children:(0,l.jsx)(e_.I,{style:{width:"100%",height:"16px"},src:k.pO})}),(0,l.jsxs)("span",{style:{width:"60px",height:"24px",background:"#141B24",borderRadius:"30px",color:"white",fontWeight:"bold",fontSize:"14px",lineHeight:"100%",padding:"5px 10px",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:[W+1," / ",U.length]})]})]}),(0,l.jsx)(E.T,{height:80,label:"Description",labelLarge:!0,value:C||"",name:"enhancement_details",placeholder:"e.g. Red eye removal",disabled:Q.loading||A.loading,onChange:e=>{let{target:{value:n}}=e;return z(n)}}),(0,l.jsx)(u.J0,{id:"applyAll",fontSize:16,label:" Apply to all remaining photos",disabled:Q.loading||A.loading,checked:!0===w,onChange:e=>Z(e.target.checked)})]}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginTop:7}}),(0,l.jsx)("div",{style:{padding:16},children:(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,disabled:Q.loading||A.loading,children:"Save and continue"})})]})]})]})};var eX=i(68687);
1function eV(){let e=(0,x._)(["\n query EditingJobBackgroundRemovalColorPicker($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n backgroundRemovalType\n backgroundRemovalColor\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n backgroundRemovalType\n backgroundRemovalColor\n }\n }\n }\n }\n }\n "]);return eV=function(){return e},e}function eK(){let e=(0,x._)(["\n mutation EditingJobBackgrountRemovalColorSelection(\n $editingJobId: ID!\n $backgroundRemovalColor: String\n $slug: String!\n ) {\n editingJobServiceSaveDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n backgroundRemovalColor: $backgroundRemovalColor\n slug: $slug\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return eK=function(){return e},e}
1function eq(){let e=(0,x._)(["\n query EditingJobBackgroundRemoval($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n backgroundRemovalType\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n backgroundRemovalType\n }\n }\n }\n }\n }\n "]);return eq=function(){return e},e}function e0(){let e=(0,x._)(["\n mutation EditingJobBackgrountRemovalTypeSelection(\n $editingJobId: ID!\n $backgroundRemovalType: String\n $slug: String!\n ) {\n editingJobServiceSaveDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n backgroundRemovalType: $backgroundRemovalType\n slug: $slug\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return e0=function(){return e},e}let e1=e=>{var n,i,t,d,o,a,s,g,c;let{editingJob:m,context:x,onDismiss:j}=e,v=(0,p.p1)({step:h.oM.background_removal_color_picker}),y=(0,I.IT)((0,I.J1)(eV()),{variables:{jobId:null==m?void 0:m.id},skip:(null==m?void 0:m.id)==null,fetchPolicy:"network-only"}),M=null==y||null==(t=y.data)||null==(i=t.editingJob)||null==(n=i.thirdPartyServices)?void 0:n.edges;(null==M||(null==M?void 0:M.length)===0)&&(M=null==(c=y.data)||null==(g=c.editingJob)||null==(s=g.servicesSummary)?void 0:s.edges);let S=null==M?void 0:M.find(e=>{var n,i;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.Backgroun
1dRemoval||(null==e||null==(i=e.editingJobService)?void 0:i.slug)===h.XZ.BackgroundRemovalAuto}),N=null==S||null==(d=S.editingJobService)?void 0:d.tier,f=null==S||null==(o=S.details)?void 0:o.backgroundRemovalType,D=null==S||null==(a=S.details)?void 0:a.backgroundRemovalColor,[L,T]=(0,r.useState)(D);(0,r.useEffect)(()=>{null!=D&&T(D)},[D]);let[J,A]=(0,I.n_)((0,I.J1)(eK())),C=null!=y.data&&null==S||f===h.yI.BlackBackground||f===h.yI.WhiteBackground||(null==m?void 0:m.usesPreset)===!0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:v.progress,prev:v.onPrev,onDismiss:()=>j({step:h.oM.background_removal_color_picker,editingJob:m})}),(0,l.jsx)("div",{style:{height:32},className:"jsx-1af02139389118b4"}),y.loading&&null==y.data||(null==m?void 0:m.id)==null?(0,l.jsx)(P.c,{}):C?(0,l.jsx)(B.e,{editingJob:m,progressData:v}):(0,l.jsxs)("div",{className:"jsx-1af02139389118b4",children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},className:"jsx-1af02139389118b4",children:(0,l.jsx)("img",{src:"auto"===N?k.M2:k.Yl,alt:"",className:"jsx-1af02139389118b4"})}),(0,l.jsx)(u.vt,{title:f===h.yI.CustomColorBackground?"Custom color":"On what background are you going to place the photos?",marginBottom:16}),(0,l.jsx)("p",{style:{fontSize:"14px",fontWeight:400,lineHeight:"19.6px",textAlign:"center",marginBottom:0,padding:"0 16px 0"},className:"jsx-1af02139389118b4",children:f===h.yI.CustomColorBackground?"Select your custom color with the color picker or the hex code below":"For us to properly mask this image, we need you to let us know over what\n color are you going to place your photos. We will deliver the photo with\n a transparent background but this information will help us do a better\n job at it."}),(0,l.jsxs)("form",{style:{display:"flex",flexDirection:"column",flex:1},onSubmit:e=>{if(e.preventDefault(),null!=S){var n;return J({variables:{editingJobId:null==m?void 0:m.id,backgroundRemovalColor:L,slug:null==S||null==(n=S.editingJobService)?void 0:n.slug}}).then(()=>v.onNext({extraQuery:{editingJob:m}}))}return v.onNext({extraQuery:{editingJob:m}})},className:"jsx-1af02139389118b4",children:[(0,l.jsx)("div",{style:{width:"100%",display:"flex",justifyContent:"center",padding:16},className:"jsx-1af02139389118b4",children:(0,l.jsx)(eX.xk,{className:"bg-removal-picker",disableAlpha:!0,color:L||"",onChangeComplete:e=>T(null==e?void 0:e.hex)})}),(0,l.jsx)("div",{style:{paddingRight:16,paddingBottom:16,paddingLeft:16},className:"jsx-1af02139389118b4",children:(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,disabled:null==L||A.loading,type:"submit",children:"Continue"})}),(0,l.jsx)("div",{style:{flex:1},className:"jsx-1af02139389118b4"})]})]}),(0,l.jsx)(H(),{id:"1af02139389118b4",children:'.bg-removal-picker{width:100%!important;box-shadow:none!important}.bg-removal-picker label,.bg-removal-picker input{font-family:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:#212529}'})]})},e4=e=>{var n,i,t,d,o,a,s;let{editingJob:r,context:g,onDismiss:c}=e,m=(0,p.p1)({step:h.oM.background_removal}),x=(0,I.IT)((0,I.J1)(eq()),{variables:{jobId:null==r?void 0:r.id},skip:(null==r?void 0:r.id)==null,fetchPolicy:"network-only"}),j=null==x||null==(t=x.data)||null==(i=t.editingJob)||null==(n=i.thirdPartyServices)?void 0:n.edges;(null==j||(null==j?void 0:j.length)===0)&&(j=null==(s=x.data)||null==(a=s.editingJob)||null==(o=a.servicesSummary)?void 0:o.edges);let v=null==j?void 0:j.find(e=>{var n,i;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.Backgroun
1dRemoval||(null==e||null==(i=e.editingJobService)?void 0:i.slug)===h.XZ.BackgroundRemovalAuto}),y=null==v||null==(d=v.editingJobService)?void 0:d.tier,[M]=(0,I.n_)((0,I.J1)(e0())),S=e=>{var n;M({variables:{editingJobId:null==r?void 0:r.id,backgroundRemovalType:e,slug:null==v||null==(n=v.editingJobService)?void 0:n.slug}}).then(()=>m.onNext({extraQuery:{editingJob:r}}))},N=null!=x.data&&null==v||(null==r?void 0:r.usesPreset)===!0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:m.progress,prev:m.onPrev,onDismiss:()=>c({step:h.oM.background_removal,editingJob:r})}),(0,l.jsx)("div",{style:{height:32}}),x.loading&&null==x.data||(null==r?void 0:r.id)==null?(0,l.jsx)(P.c,{}):N?(0,l.jsx)(B.e,{editingJob:r,progressData:m}):(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:"auto"===y?k.M2:k.Yl,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Background removal",marginBottom:16}),(0,l.jsx)("p",{style:{fontSize:"14px",fontWeight:400,lineHeight:"19.6px",textAlign:"center",marginBottom:0},children:"Choose a new background"}),(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",flex:1,padding:"16px"},children:[(0,l.jsx)(ey.q,{height:128,iconSize:80,onClick:()=>S(h.yI.WhiteBackground),disabled:!1,label:"White background",secondaryLabel:"Mask the object and place it on white",iconAlt:"credits-report-type",icon:k.p6}),(0,l.jsx)(ey.q,{height:128,iconSize:80,onClick:()=>S(h.yI.TransparentBackground),disabled:!1,label:"Transparent background",secondaryLabel:"Export the file with a transparent background",iconAlt:"Transparent background",icon:k.W1}),(0,l.jsx)(ey.q,{height:128,iconSize:80,onClick:()=>S(h.yI.BlackBackground),disabled:!1,label:"Black background",secondaryLabel:"Mask the object and place it on black",iconAlt:"Black background",icon:k.x7}),(0,l.jsx)(ey.q,{height:128,iconSize:80,onClick:()=>S(h.yI.CustomColorBackground),disabled:!1,label:"Custom color",secondaryLabel:"Enter the HEX code of a custom color",iconAlt:"Custom color",icon:k.xL})]})]})]})};function e2(){let e=(0,x._)(["\n query EditingJobUpscalingCustomScale($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n upscalingType\n upscalingCustomValue\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n upscalingType\n upscalingCustomValue\n }\n }\n }\n }\n }\n "]);return e2=function(){return e},e}function e5(){let e=(0,x._)(["\n mutation EditingJobUpscalingTypeSelectionAsPartner(\n $editingJobId: ID!\n $upscalingCustomValue: String\n $slug: String!\n ) {\n editingJobServiceSaveDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n upscalingCustomValue: $upscalingCustomValue\n slug: $slug\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return e5=function(){return e},e}function e3(){let e=(0,x._)(["\n query EditingJobResizingDetails($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n upscalingType\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n upscalingType\n }\n }\n }\n }\n }\n "]);return e3=function(){return e},e}function e9(){let e=(0,x._)(["\n mutation EditingJobUpscalingSaveDetails(\n $editingJobId: ID!\n $upscalingType: String\n $slug: String!\n ) {\n editingJobServiceSaveDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n upscalingType: $upscalingType\n slug: $slug\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return e9=function(){return e},e}let e6=e=>{var n,i,t,d,o,a,s,g,c,m;let{editingJob:x,context:j,onDismiss:v}=e,y=(0,p.p1)({step:h.oM.upscaling_custom_scale_form}),M=(0,I.IT)((0,I.J1)(e2()),{variables:{jobId:null==x?void 0:x.id},skip:(null==x?void 0:x.id)==null,fetchPolicy:"network-only"}),S=null==M||null==(t=M.data)||null==(i=t.editingJob)||null==(n=i.thirdPartyServices)?void 0:n.edges;(null==S||(null==S?void 0:S.length)===0)&&(S=null==(m=M.data)||null==(c=m.editingJob)||null==(g=c.servicesSummary)?void 0:g.edges);let N=null==S?void 0:S.find(e=>{var n,i;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.Upscaling||(null==e||null==(i=e.editingJobService)?void 0:i.slug)===h.XZ.UpscalingAuto}),f=null==N||null==(d=N.editingJobService)?void 0:d.tier,D=null==N||null==(o=N.details)?void 0:o.upscalingType,L=null==N||null==(a=N.details)?void 0:a.upscalingCustomValue,[T,J]=(0,r.useState)(null);(0,r.useEffect)(()=>{null!=D&&J(L)},[L,D]);let[A,C]=(0,I.n_)((0,I.J1)(e5()));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:y.progress,prev:y.onPrev,onDismiss:()=>
1v({step:h.oM.upscaling_custom_scale_form,editingJob:x})}),(0,l.jsx)("div",{style:{height:32},className:"jsx-f5546c1ff80a18d7"}),M.loading&&null==M.data||(null==x?void 0:x.id)==null?(0,l.jsx)(P.c,{}):(null==(s=M.data)?void 0:s.editingJob.servicesSummary.edges)&&null==N||D!==h.NG.CustomSize||(null==x?void 0:x.usesPreset)===!0?(0,l.jsx)(B.e,{editingJob:x,progressData:y}):(0,l.jsxs)("div",{className:"jsx-f5546c1ff80a18d7",children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},className:"jsx-f5546c1ff80a18d7",children:(0,l.jsx)("img",{src:"auto"===f?k.rU:k.U1,alt:"icon",className:"jsx-f5546c1ff80a18d7"})}),(0,l.jsx)(u.vt,{title:"Upscaling",marginBottom:16}),(0,l.jsx)("p",{style:{fontSize:"14px",fontWeight:400,lineHeight:"19.6px",textAlign:"center",marginBottom:0,padding:"0 16px 0"},className:"jsx-f5546c1ff80a18d7",children:"Enter your upscaling specifications"}),(0,l.jsxs)("form",{style:{display:"flex",flexDirection:"column",flex:1},onSubmit:e=>{var n;e.preventDefault(),A({variables:{editingJobId:null==x?void 0:x.id,upscalingCustomValue:T,slug:null==N||null==(n=N.editingJobService)?void 0:n.slug}}).then(()=>y.onNext({extraQuery:{editingJob:x}}))},className:"jsx-f5546c1ff80a18d7",children:[(0,l.jsx)("div",{style:{width:"100%",padding:16},className:"jsx-f5546c1ff80a18d7",children:(0,l.jsx)(eP.g,{disabled:C.loading,placeholder:"e.g. 4",labelLarge:!0,name:"scale_multiplier",suffix:"Times",label:"Enter the scale multiplier",value:T||"",onChange:e=>{let{target:{value:n}}=e;return J(()=>""===n?null:n)}})}),(0,l.jsx)("div",{style:{paddingRight:16,paddingBottom:16,paddingLeft:16},className:"jsx-f5546c1ff80a18d7",children:(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,disabled:null==T||C.loading,type:"submit",children:"Continue"})}),(0,l.jsx)("div",{style:{flex:1},className:"jsx-f5546c1ff80a18d7"})]})]}),(0,l.jsx)(H(),{id:"f5546c1ff80a18d7",children:".bg-removal-picker{width:100%!important}"})]})},e8=e=>{var n,i,t,d,o,a,s,r;let{editingJob:g,context:c,onDismiss:m}=e,x=(0,p.p1)({step:h.oM.upscaling}),j=(0,I.IT)((0,I.J1)(e3()),{variables:{jobId:null==g?void 0:g.id},skip:(null==g?void 0:g.id)==null,fetchPolicy:"network-only"}),v=null==j||null==(t=j.data)||null==(i=t.editingJob)||null==(n=i.thirdPartyServices)?void 0:n.edges;(null==v||(null==v?void 0:v.length)===0)&&(v=null==(r=j.data)||null==(s=r.editingJob)||null==(a=s.servicesSummary)?void 0:a.edges);let y=null==v?void 0:v.find(e=>{var n,i;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.Upscaling||(null==e||null==(i=e.editingJobService)?void 0:i.slug)===h.XZ.UpscalingAuto}),M=null==y||null==(d=y.editingJobService)?void 0:d.tier,[S,N]=(0,I.n_)((0,I.J1)(e9())),f=e=>{var n;S({variables:{editingJobId:null==g?void 0:g.id,upscalingType:e,slug:null==y||null==(n=y.editingJobService)?void 0:n.slug}}).then(()=>x.onNext({extraQuery:{editingJob:g}}))};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:x.progress,prev:x.onPrev,onDismiss:()=>m({step:h.oM.upscaling,editingJob:g})}),(0,l.jsx)("div",{style:{height:32}}),j.loading&&null==j.data||(null==g?void 0:g.id)==null?(0,l.jsx)(P.c,{}):(null==(o=j.data)?void 0:o.editingJob.servicesSummary.edges)&&null==y||(null==g?void 0:g.usesPreset)===!0?(0,l.jsx)(B.e,{editingJob:g,progressData:x}):(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:"auto"===M?k.rU:k.U1,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Upscaling",marginBottom:16}),(0,l.jsx)("p",{style:{fontSize:"14px",fontWeight:400,lineHeight:"19.6px",textAlign:"center",marginBottom:0},children:"Select your upscaling specifications"}),(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",flex:1,padding:"16px"},children:[(0,l.jsx)(ey.q,{height:94,onClick:()=>f(h.NG.TwiceSize),disabled:N.loading,label:"Twice the size",iconAlt:"Twice the size",icon:k.ZW}),(0,l.jsx)(ey.q,{height:94,onClick:()=>f(h.NG.ThreeTimesSize),disabled:N.loading||"auto"===M,label:"Three times the size",iconAlt:"Three times the size",icon:k.D5}),(0,l.jsx)(ey.q,{height:94,onClick:()=>f(h.NG.CustomSize),disabled:N.loading||"auto"===M,label:"Custom scale",iconAlt:"Custom scale",icon:k.yc})]})]})]})};var e7=i(11565),ne=i(61396);function nn(){let e=(0,x._)(["\n query EditingJobUpscalingDetails2($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n bgExtensionRatio\n bgExtensionHeight\n bgExtensionWidth\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n bgExtensionRatio\n bgExtensionHeight\n bgExtensionWidth\n }\n }\n }\n }\n }\n "]);return nn=function(){return e},e}function ni(){let e=(0,x._)(["\n mutation EditingJobCroppingSetBgExtensionDimensionsAsPartner(\n $editingJobId: ID!\n $bgExtensionHeight: Int\n $bgExtensionWidth: Int\n $slug: String!\n ) {\n editingJobServiceSaveDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n bgExtensionHeight: $bgExtensionHeight\n bgExtensionWidth: $bgExtensionWidth\n slug: $slug\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return ni=function(){return e},e}function nl(){let e=(0,x._)(["\n query EditingJobBgRemovalRatio($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n bgExtensionRatio\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n bgExtensionRatio\n }\n }\n }\n }\n }\n "]);return nl=function(){return e},e}function nt(){let e=(0,x._)(["\n mutation EditingJobBgRemovalRatioAsPartner(\n $editingJobId: ID!\n $bgExtensionRatio: String\n $slug: String!\n ) {\n editingJobServiceSaveDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n bgExtensionRatio: $bgExtensionRatio\n slug: $slug\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return nt=function(){return e},e}
1function nd(){let e=(0,x._)(["\n query EditingJobBgRemovalNotes($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n bgExtensionNotes\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n bgExtensionNotes\n }\n }\n }\n }\n }\n "]);return nd=function(){return e},e}function no(){let e=(0,x._)(["\n mutation EditingJobCroppingSetBgExtensionNotesAsPartner(\n $editingJobId: ID!\n $bgExtensionNotes: String\n $slug: String!\n ) {\n editingJobServiceSaveDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n bgExtensionNotes: $bgExtensionNotes\n slug: $slug\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return no=function(){return e},e}function na(){let e=(0,x._)(["\n query EditingJobBgRemovalGallery(\n $jobId: ID!\n $cursor: String\n $first: Int\n ) {\n editingJob: editingJobById(id: $jobId) {\n id\n items(first: $first, cursor: $cursor) {\n cursor\n edges {\n id\n originalImage {\n id\n fileName\n imageRatio\n downloadUrl\n extraSmall {\n url\n }\n }\n }\n }\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n bgExtensionRatio\n bgExtensionHeight\n bgExtensionWidth\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n tier\n }\n details {\n bgExtensionRatio\n bgExtensionHeight\n bgExtensionWidth\n }\n }\n }\n }\n }\n "]);return na=function(){return e},e}let ns=e=>{var n,i,t,d,o,a,s,g;let{editingJob:c,context:m,onDismiss:x}=e,j=(0,p.p1)({step:h.oM.background_extension_dimension}),[v,y]=(0,r.useState)(),[M,S]=(0,r.useState)(),N=(0,I.IT)((0,I.J1)(nn()),{variables:{jobId:null==c?void 0:c.id},skip:(null==c?void 0:c.id)==null,fetchPolicy:"network-only"}),f=null==N||null==(t=N.data)||null==(i=t.editingJob)||null==(n=i.thirdPartyServices)?void 0:n.edges;(null==f||(null==f?void 0:f.length)===0)&&(f=null==(g=N.data)||null==(s=g.editingJob)||null==(a=s.servicesSummary)?void 0:a.edges);let D=null==f?void 0:f.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.Backgroun
1dExtension});(0,r.useEffect)(()=>{var e,n,i,l;null!=D&&(y(null==D||null==(n=D.details)||null==(e=n.bgExtensionWidth)?void 0:e.toString()),S(null==D||null==(l=D.details)||null==(i=l.bgExtensionHeight)?void 0:i.toString()))},[D]);let[L,T]=(0,I.n_)((0,I.J1)(ni()));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:j.progress,prev:j.onPrev,onDismiss:()=>x({step:h.oM.background_extension_dimension,editingJob:c})}),(0,l.jsx)("div",{style:{height:32}}),N.loading&&null==N.data||(null==c?void 0:c.id)==null?(0,l.jsx)(P.c,{}):(null==(d=N.data)?void 0:d.editingJob.servicesSummary.edges)&&(null==D||(null==D||null==(o=D.details)?void 0:o.bgExtensionRatio)!=="custom")||(null==c?void 0:c.usesPreset)===!0?(0,l.jsx)(B.e,{editingJob:c,progressData:j}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:k.Pr,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Background extension",marginBottom:16}),(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),(()=>{var e;L({variables:{editingJobId:null==c?void 0:c.id,bgExtensionHeight:parseInt(null!=M?M:"0",10),bgExtensionWidth:parseInt(null!=v?v:"0",10),slug:null==D||null==(e=D.editingJobService)?void 0:e.slug}}).then(()=>j.onNext({extraQuery:{editingJob:c}}))})()},children:[(0,l.jsx)("p",{style:{fontSize:"14px",fontWeight:400,lineHeight:"19.6px",textAlign:"center",marginBottom:0},children:"Enter your background extension specifications"}),(0,l.jsx)("div",{children:(0,l.jsxs)("div",{style:{paddingLeft:16,paddingRight:16,paddingTop:16,display:"grid",gridTemplateColumns:"1fr 10px 1fr",gap:16},children:[(0,l.jsx)("div",{children:(0,l.jsx)(eP.g,{label:"Width",labelLarge:!0,name:"width",type:"number",value:null!=v?v:"",onChange:e=>{let{target:{value:n}}=e;y(()=>""===n?null:n)}})}),(0,l.jsx)("div",{style:{marginTop:30,fontSize:30,color:"#C1C8D4"},children:":"}),(0,l.jsx)("div",{children:(0,l.jsx)(eP.g,{label:"Height",labelLarge:!0,name:"height",value:null!=M?M:"",type:"number",onChange:e=>{let{target:{value:n}}=e;S(()=>""===n?null:n)}})})]})}),(0,l.jsx)("div",{style:{padding:16},children:(0,l.jsx)(u.$J,{size:"lg",type:"submit",disabled:null==v||null==M||T.loading,children:"Continue"})})]})]})]})},nr=e=>{var n,i,t,d,o,a,s;let{editingJob:r,context:g,onDismiss:c}=e,m=(0,p.p1)({step:h.oM.background_extension_ratio}),x=(0,I.IT)((0,I.J1)(nl()),{variables:{jobId:null==r?void 0:r.id},skip:(null==r?void 0:r.id)==null,fetchPolicy:"network-only"}),j=null==x||null==(t=x.data)||null==(i=t.editingJob)||null==(n=i.thirdPartyServices)?void 0:n.edges;(null==j||(null==j?void 0:j.length)===0)&&(j=null==(s=x.data)||null==(a=s.editingJob)||null==(o=a.servicesSummary)?void 0:o.edges);let v=null==j?void 0:j.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.Backgroun
1dExtension}),[y,M]=(0,I.n_)((0,I.J1)(nt())),S=e=>{var n;y({variables:{editingJobId:null==r?void 0:r.id,bgExtensionRatio:e,slug:null==v||null==(n=v.editingJobService)?void 0:n.slug}}).then(()=>m.onNext({extraQuery:{editingJob:r}}))};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:m.progress,prev:m.onPrev,onDismiss:()=>c({step:h.oM.background_extension_ratio,editingJob:r})}),(0,l.jsx)("div",{style:{height:32}}),x.loading&&null==x.data||(null==r?void 0:r.id)==null?(0,l.jsx)(P.c,{}):(null==(d=x.data)?void 0:d.editingJob.servicesSummary.edges)&&null==v||(null==r?void 0:r.usesPreset)===!0?(0,l.jsx)(B.e,{editingJob:r,progressData:m}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:k.Pr,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Background extension",marginBottom:16}),(0,l.jsx)("p",{style:{fontSize:"14px",fontWeight:400,lineHeight:"19.6px",textAlign:"center",marginBottom:0},children:"Choose the aspect ratio"}),(0,l.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",padding:16,gap:16},children:[(0,l.jsx)(ey.q,{height:94,onClick:()=>S(e7.Wp.ThreeTwo),disabled:M.loading,label:"3:2",secondaryLabel:"",iconAlt:"3:2",icon:k.Ki}),(0,l.jsx)(ey.q,{height:94,onClick:()=>S(e7.Wp.TwoThree),disabled:M.loading,label:"2:3",secondaryLabel:"",iconAlt:"2:3",icon:k.i}),(0,l.jsx)(ey.q,{height:94,onClick:()=>S(e7.Wp.FourThree),disabled:M.loading,label:"4:3",secondaryLabel:"",iconAlt:"4:3",icon:k.AB}),(0,l.jsx)(ey.q,{height:94,onClick:()=>S(e7.Wp.ThreeFour),disabled:M.loading,label:"3:4",secondaryLabel:"",iconAlt:"3:4",icon:k.am}),(0,l.jsx)(ey.q,{height:94,onClick:()=>S(e7.Wp.SevenFive),disabled:M.loading,label:"7:5",secondaryLabel:"",iconAlt:"7:5",icon:k.YB}),(0,l.jsx)(ey.q,{height:94,onClick:()=>S(e7.Wp.FiveSeven),disabled:M.loading,label:"5:7",secondaryLabel:"",iconAlt:"5:7",icon:k.Vz}),(0,l.jsx)(ey.q,{height:94,onClick:()=>S(e7.Wp.SixNine),disabled:M.loading,label:"16:9",secondaryLabel:"",iconAlt:"16:9",icon:k.TP}),(0,l.jsx)(ey.q,{height:94,onClick:()=>S(e7.Wp.NineSix),disabled:M.loading,label:"9:16",secondaryLabel:"",iconAlt:"9:16",icon:k.$H}),(0,l.jsx)(ey.q,{height:94,onClick:()=>S(e7.Wp.OneOne),disabled:M.loading,label:"1:1",secondaryLabel:"",iconAlt:"1:1",icon:k.Cv}),(0,l.jsx)(ey.q,{height:94,onClick:()=>S(e7.Wp.Custom),disabled:M.loading,label:"Custom ratio",secondaryLabel:"",iconAlt:"Custom ratio",icon:k.vW})]})]})]})},ng=e=>{var n,i,t,d,o,a,s;let{editingJob:g,context:c,onDismiss:m}=e,x=(0,p.p1)({step:h.oM.background_extension_notes}),[j,v]=(0,r.useState)(),y=(0,I.IT)((0,I.J1)(nd()),{variables:{jobId:null==g?void 0:g.id},skip:(null==g?void 0:g.id)==null,fetchPolicy:"network-only"}),M=null==y||null==(t=y.data)||null==(i=t.editingJob)||null==(n=i.thirdPartyServices)?void 0:n.edges;(null==M||(null==M?void 0:M.length)===0)&&(M=null==(s=y.data)||null==(a=s.editingJob)||null==(o=a.servicesSummary)?void 0:o.edges);let S=null==M?void 0:M.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.Backgroun
1dExtension});(0,r.useEffect)(()=>{var e;null!=S&&v(null==S||null==(e=S.details)?void 0:e.bgExtensionNotes)},[S]);let[N,f]=(0,I.n_)((0,I.J1)(no()));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:x.progress,prev:x.onPrev,onDismiss:()=>m({step:h.oM.background_extension_notes,editingJob:g})}),(0,l.jsx)("div",{style:{height:32}}),y.loading&&null==y.data||(null==g?void 0:g.id)==null?(0,l.jsx)(P.c,{}):(null==(d=y.data)?void 0:d.editingJob.servicesSummary.edges)&&null==S||(null==g?void 0:g.usesPreset)===!0?(0,l.jsx)(B.e,{editingJob:g,progressData:x}):(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:k.Pr,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Background extension",marginBottom:16}),(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),null!=j?(()=>{var e;N({variables:{editingJobId:null==g?void 0:g.id,bgExtensionNotes:j,slug:null==S||null==(e=S.editingJobService)?void 0:e.slug}}).then(()=>x.onNext({extraQuery:{editingJob:g}}))})():x.onNext({extraQuery:{editingJob:g}})},children:[(0,l.jsx)("div",{style:{padding:16},children:(0,l.jsx)(E.T,{optional2:!0,height:166,label:"Any extra details",labelLarge:!0,value:j||"",name:"background_extension",disabled:f.loading||y.loading,onChange:e=>{let{target:{value:n}}=e;return v(n)}})}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginTop:7}}),(0,l.jsx)("div",{style:{padding:16},children:(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,disabled:f.loading,children:"Continue"})})]})]})]})},nu=e=>{var n,i,t,d;let{image:o,containerWidth:a,containerHeight:s}=e,[g,u]=r.useState(!1),[c,m]=r.useState(!1),x=r.useCallback(e=>{if(null!=e){let n=null==e?void 0:e.getBoundingClientRect().width;s-(null==e?void 0:e.getBoundingClientRect().height)>a-n?m(!0):u(!0)}},[s,a]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:H().dynamic([["fe59be0f28a99b62",[s,s/2-3,s/2-3,s/2]]])+" tile",children:[(0,l.jsx)("div",{className:H().dynamic([["fe59be0f28a99b62",[s,s/2-3,s/2-3,s/2]]])+" arrow up"}),(0,l.jsx)("div",{className:H().dynamic([["fe59be0f28a99b62",[s,s/2-3,s/2-3,s/2]]])+" arrow down"}),(0,l.jsx)("div",{className:H().dynamic([["fe59be0f28a99b62",[s,s/2-3,s/2-3,s/2]]])+" arrow left"}),(0,l.jsx)("div",{className:H().dynamic([["fe59be0f28a99b62",[s,s/2-3,s/2-3,s/2]]])+" arrow right"}),(0,l.jsx)("div",{className:H().dynamic([["fe59be0f28a99b62",[s,s/2-3,s/2-3,s/2]]])+" horizontal"}),(0,l.jsx)("div",{className:H().dynamic([["fe59be0f28a99b62",[s,s/2-3,s/2-3,s/2]]])+" vertical"}),(null==o||null==(i=o.originalImage)||null==(n=i.extraSmall)?void 0:n.url)!=null?(0,l.jsx)("img",{src:null==o||null==(d=o.originalImage)||null==(t=d.extraSmall)?void 0:t.url,alt:"sample",loading:"lazy",ref:x,style:{maxHeight:"100%",maxWidth:"100%",width:c?"100%":"auto",height:g?"100%":"auto",position:"absolute",top:0,bottom:0,left:0,right:0,margin:"auto",objectFit:"contain"},className:H().dynamic([["fe59be0f28a99b62",[s,s/2-3,s/2-3,s/2]]])}):(0,l.jsx)(ee.b,{iconSize:"40px",imageName:null==o?void 0:o.originalImage.fileName,truncateWidth:"100px",nameSize:10})]}),(0,l.jsx)(H(),{id:"fe59be0f28a99b62",dynamic:[s,s/2-3,s/2-3,s/2],children:".tile.__jsx-style-dynamic-selector{background-color:#f6f9ff;height:".concat(s,"px;border:1px dashed#c1c8d4;position:relative;border-radius:2px}.arrow.__jsx-style-dynamic-selector{border:solid#c1c8d4;border-width:0 1px 1px 0;position:absolute;padding:3px;width:3px}.right.__jsx-style-dynamic-selector{transform:rotate(-45deg);-webkit-transform:rotate(-45deg);right:0;top:").concat(s/2-3,"px}.left.__jsx-style-dynamic-selector{transform:rotate(135deg);-webkit-transform:rotate(135deg);left:0;top:").concat(s/2-3,"px}.up.__jsx-style-dynamic-selector{transform:rotate(-135deg);-webkit-transform:rotate(-135deg);left:0;right:0;margin-left:auto;margin-right:auto;top:1px}.down.__jsx-style-dynamic-selector{transform:rotate(45deg);-webkit-transform:rotate(45deg);left:0;right:0;bottom:1px;margin-left:auto;margin-right:auto}.horizontal.__jsx-style-dynamic-selector{position:absolute;margin-top:").concat(s/2,"px;border-bottom:1px dashed#c1c8d4;width:100%}.vertical.__jsx-style-dynamic-selector{position:absolute;margin-left:50%;border-left:1px dashed#c1c8d4;height:100%}")})]})},nc=e=>{var n,i,t,d,o,a,s,r,g,c,m,x,j,v,y,M,S;let{editingJob:N,context:f,onDismiss:D}=e,L=(0,p.p1)({step:h.oM.background_extension_gallery}),T=(0,I.IT)((0,I.J1)(na()),{variables:{jobId:null==N?void 0:N.id,first:5e3},skip:(null==N?void 0:N.id)==null,fetchPolicy:"network-only"}),J=null==T||null==(t=T.data)||null==(i=t.editingJob)||null==(n=i.thirdPartyServices)?void 0:n.edges;(null==J||(null==J?void 0:J.length)===0)&&(J=null==(j=T.data)||null==(x=j.editingJob)||null==(m
1=x.servicesSummary)?void 0:m.edges);let A=null==J?void 0:J.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.BackgroundExtension}),C=null==(a=T.data)||null==(o=a.editingJob)||null==(d=o.items)?void 0:d.edges,z=null==A||null==(s=A.details)?void 0:s.bgExtensionRatio,w="custom"!==z?157*parseInt(null!=(v=null==z?void 0:z.split(":")[1])?v:"1",10)/parseInt(null!=(y=null==z?void 0:z.split(":")[0])?y:"1",10):157*(null!=(M=null==A||null==(r=A.details)?void 0:r.bgExtensionHeight)?M:1)/(null!=(S=null==A||null==(g=A.details)?void 0:g.bgExtensionWidth)?S:1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:L.progress,prev:L.onPrev,onDismiss:()=>D({step:h.oM.background_extension_gallery,editingJob:N})}),(0,l.jsx)("div",{style:{height:32}}),T.loading&&null==T.data||(null==N?void 0:N.id)==null?(0,l.jsx)(P.c,{}):(null==(c=T.data)?void 0:c.editingJob.servicesSummary.edges)&&null==A||(null==N?void 0:N.usesPreset)===!0||(null==N?void 0:N.thirdPartyEnabled)===!0?(0,l.jsx)(B.e,{editingJob:N,progressData:L}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},className:"jsx-2e10b482f4cf92c7",children:(0,l.jsx)("img",{src:k.Pr,alt:"icon",className:"jsx-2e10b482f4cf92c7"})}),(0,l.jsx)(u.vt,{title:"Background extension",marginBottom:16}),(0,l.jsx)("div",{style:{padding:16},className:"jsx-2e10b482f4cf92c7 tile-wrapper",children:(null!=C?C:[]).length>0&&(null==C?void 0:C.map(e=>{var n;return(0,l.jsx)(nu,{image:e,containerHeight:w,containerWidth:157},null==e||null==(n=e.originalImage)?void 0:n.id)}))}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginTop:7},className:"jsx-2e10b482f4cf92c7"}),(0,l.jsx)("div",{style:{padding:16},className:"jsx-2e10b482f4cf92c7",children:(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,onClick:()=>L.onNext({extraQuery:{editingJob:N}}),children:"Continue"})}),(0,l.jsx)(H(),{id:"2e10b482f4cf92c7",children:".tile-wrapper.jsx-2e10b482f4cf92c7{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;max-height:400px;overflow-y:scroll}"})]})]})};function nm(){let e=(0,x._)(["\n query BookingWithImagesForEditing(\n $id: UUID!\n $jobId: UUID!\n $cursor: String\n $first: Int\n ) {\n partner: partnerById(uid: $id) {\n uid\n jobById(uid: $jobId) {\n images(first: $first, cursor: $cursor) {\n cursor\n edges {\n uid\n favorite\n imageRatio\n downloadUrl\n medium {\n url\n width\n }\n large {\n url\n width\n }\n }\n }\n }\n }\n }\n "]);return nm=function(){return e},e}let nx=e=>{var n,i,d,o,a,s,g,c,m;let{editingJob:x,context:j,onDismiss:v}=e,y=(0,t.useRouter)(),M=y.query.jobId,S=null==(i=JSON.parse(y.query.modal||""))||null==(n=i.modalParams)?void 0:n.isFromCompletedBooking,N=null==(o=JSON.parse(y.query.modal||""))||null==(d=o.modalParams)?void 0:d.selectedBookingImages,f=null==(s=JSON.parse(y.query.modal||""))||null==(a=s.selectedBookingImagesFromModal)?void 0:a.split(","),[D,L]=r.useState(null!=f?f:[]),[T,J]=r.useState(!1),A=(0,I.IT)((0,I.J1)(nm()),{variables:{id:j.partner.uid,first:200,jobId:M},fetchPolicy:"cache-and-network"}),C=null==(g=A.data)?void 0:g.partner,z=null==C||null==(m=C.jobById)||null==(c=m.images)?void 0:c.edges,w=(0,p.p1)({step:h.oM.pick_booking_images}),k=e=>{let n=D.indexOf(e);if(-1!==n){let e=[...D];e.splice(n,1),L([...e]),J(!1)}else{let n=[...D,e];L(n),n.length===(null==z?void 0:z.length)&&J(!0)}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:w.progress,prev:w.onPrev,onDismiss:()=>v({step:h.oM.pick_booking_images,editingJob:x})}),(0,l.jsx)("form",{onSubmit:e=>{e.preventDefault(),w.onNext({extraQuery:{selectedBookingImagesFromModal:(null==D?void 0:D.length)>0?D.join(","):""}})},children:A.loading?(0,l.jsx)(P.c,{}):null==S||null!=N?(0,l.jsx)(B.e,{editingJob:x,progressData:w}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{style:{textAlign:"center",padding:"32px 0 24px"},className:"jsx-3467458e7ec14d0d",children:"Select the photos to be edited"}),(0,l.jsx)("div",{style:{display:"grid",gridTemplate:"110px / 110px 110px 110px 110px",gridGap:"16px",maxHeight:"500px",overflowY:"auto",padding:"0 16px 16px 16px"},className:"jsx-3467458e7ec14d0d",children:null==z?void 0:z.map((e,n)=>{var i;return(0,l.jsxs)("div",{style:{position:"relative"},className:"jsx-3467458e7ec14d0d",children:[(0,l.jsx)("img",{src:null==(i=e.medium)?void 0:i.url,alt:"add",style:{width:110,height:110,borderRadius:2,objectFit:"cover"},className:"jsx-3467458e7ec14d0d"}),(0,l.jsx)("div",{style:{width:"100%",height:"100%",position:"absolute",bottom:0,backgroundColor:"transparent",borderRadius:2,cursor:"pointer",border:D.some(n=>
1e.uid===n)?"4px solid #2FB67D":"none"},onClick:()=>k(e.uid),className:"jsx-3467458e7ec14d0d"}),(0,l.jsx)("input",{type:"checkbox",checked:D.some(n=>e.uid===n),onClick:e=>e.stopPropagation(),onChange:()=>k(e.uid),className:"jsx-3467458e7ec14d0d image-checkbox"})]},"image-".concat(n,"-").concat(e.uid))})}),(0,l.jsxs)("div",{style:{padding:16},className:"jsx-3467458e7ec14d0d",children:[(0,l.jsx)(u.K_,{type:"button",size:"lg",onClick:()=>{L(T?[]:(null==z?void 0:z.map(e=>e.uid))||[]),J(!T)},children:T?"Select none":"Select all"}),(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,disabled:A.loading||!D.length,type:"submit",children:"Continue"})]}),(0,l.jsx)(H(),{id:"3467458e7ec14d0d",children:'.image-checkbox.jsx-3467458e7ec14d0d{cursor:pointer;width:18px;height:18px;appearance:none;background-color:#fafafa;box-shadow:0 1px 2px rgba(0,0,0,.05),inset 0px -15px 10px -12px rgba(0,0,0,.05);padding:9px;border:1px solid#c1c8d4;display:inline-block;position:absolute;top:6px;right:6px}.image-checkbox.jsx-3467458e7ec14d0d:active,.image-checkbox.jsx-3467458e7ec14d0d:active:checked{box-shadow:0 1px 2px rgba(0,0,0,.05),inset 0 1px 3px rgba(0,0,0,.1)}.image-checkbox.jsx-3467458e7ec14d0d:checked{border:1px solid#adb8c0;box-shadow:0 1px 2px rgba(0,0,0,.05),inset 0px -15px 10px -12px rgba(0,0,0,.05),inset 15px 10px -12px rgba(255,255,255,.1);color:#99a1a7}.image-checkbox.jsx-3467458e7ec14d0d:checked:after{content:"â";position:absolute;top:-3px;color:#2fb67d;font-size:16px;left:2px}'})]})})]})};function nb(){let e=(0,x._)(["\n query EditingJobObjectRemovalNotesScreenQuery(\n $jobId: ID!\n $cursor: String\n $first: Int\n ) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n items(first: $first, cursor: $cursor) {\n cursor\n edges {\n id\n services {\n edges {\n id\n details {\n objectRemovalNotes\n }\n editingJobService {\n id\n tier\n slug\n }\n }\n }\n originalImage {\n id\n fileName\n medium {\n url\n }\n }\n }\n }\n }\n }\n "]);return nb=function(){return e},e}function nj(){let e=(0,x._)(["\n mutation EditingJobObjectRemovalSaveNotes(\n $editingJobId: ID!\n $slug: String!\n $mediaUid: String!\n $objectRemovalNotes: String\n $applyAll: Boolean\n ) {\n editingJobSaveIndividualMediaDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n slug: $slug\n mediaUid: $mediaUid\n objectRemovalNotes: $objectRemovalNotes\n applyAll: $applyAll\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return nj=function(){return e},e}let np=e=>{var n,i,t,d,o,a,s,g,c,m,x,j,v,y,M,S,N,f;let{editingJob:D,context:L,onDismiss:T}=e,J=(0,p.p1)({step:h.oM.object_removal_notes}),A=(0,I.IT)((0,I.J1)(nb()),{variables:{first:5e3,jobId:null==D?void 0:D.id},skip:(null==D?void 0:D.id)==null}),[C,z]=r.useState(),[w,Z]=r.useState(),R=(null==(t=A.data)||null==(i=t.editingJob)||null==(n=i.servicesSummary)?void 0:n.edges)==null||(null==(s=A.data)||null==(a=s.editingJob)||null==(o=a.servicesSummary)||null==(d=o.edges)?void 0:d.length)===0?null==A||null==(m=A.data)||null==(c=m.editingJob)||null==(g=c.thirdPartyServices)?void 0:g.edges:null==(v=A.data)||null==(j=v.editingJob)||null==(x=j.servicesSummary)?void 0:x.edges,O=null==R?void 0:R.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.ObjectRemoval}),Y=null==(S=A.data)||null==(M=S.editingJob)||null==(y=M.items)?void 0:y.edges,U=r.useMemo(()=>null!=Y?Y:[],[Y]),G=r.useMemo(()=>U.map(e=>{var n,i,l;let t=e.originalImage.id,d=null==e||null==(i=e.services)||null==(n=i.edges)?void 0:n.find(e=>e.editingJobService.slug===h.XZ.ObjectRemoval);return{uid:t,details:null==d||null==(l=d.details)?void 0:l.objectRemovalNotes}}),[U]),[W,$]=r.useState(0),_=r.useMemo(()=>null!=U?U[null!=W?W:0]:null,[W,U]);r.useEffect(()=>{var e;null!=_&&null!=G&&z(null==(e=G.find(e=>(null==e?void 0:e.uid)===(null==_?void 0:_.originalImage.id)))?void 0:e.details)},[_,G]),r.useEffect(()=>{null!=w&&Z(w)},[w]);let[H,Q]=(0,I.n_)((0,I.J1)(nj())),F=null!=A.data&&null==O||(null==D?void 0:D.usesPreset)===!0||(null==D?void 0:D.thirdPartyEnabled)===!0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:J.progress,prev:J.onPrev,onDismiss:()=>
1T({step:h.oM.object_removal_notes,editingJob:D})}),null==C&&!0===A.loading&&null==A.data?(0,l.jsx)(P.c,{}):F?(0,l.jsx)(B.e,{editingJob:D,progressData:J}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{height:32}}),(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:k.Y5,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Object removal",marginBottom:16}),(0,l.jsx)("p",{style:{textAlign:"center",fontSize:14,color:"#454F5C",marginBottom:40},children:"Describe the object you want to remove"}),(0,l.jsxs)("form",{onSubmit:e=>{var n;e.preventDefault(),H({variables:{editingJobId:null==D?void 0:D.id,slug:h.XZ.ObjectRemoval,objectRemovalNotes:null!=C?C:"",mediaUid:null==_||null==(n=_.originalImage)?void 0:n.id,applyAll:w}}).then(async()=>{await A.refetch(),W>=U.length-1||!0===w?J.onNext({extraQuery:{editingJob:D}}):W>=U.length-1||$(e=>e+1)})},children:[(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,l.jsxs)("div",{style:{position:"relative",marginBottom:"16px",height:326},children:[(null==_||null==(N=_.originalImage.medium)?void 0:N.url)!=null?(0,l.jsx)("img",{style:{height:"100%",width:"100%",objectFit:"cover"},src:null==_||null==(f=_.originalImage.medium)?void 0:f.url,alt:""}):(0,l.jsx)(ee.b,{iconSize:"120px",imageName:null==_?void 0:_.originalImage.fileName}),(0,l.jsxs)("div",{style:{position:"absolute",top:0,right:0,margin:"16px",display:"flex"},children:[(0,l.jsx)("button",{style:{width:"24px",height:"24px",borderRadius:"16px",background:"#141B24",border:"none",marginRight:"8px"},onClick:e=>{e.preventDefault(),W<=0||$(e=>e-1)},children:(0,l.jsx)(e_.I,{style:{width:"100%",height:"16px"},src:k.pO})}),(0,l.jsxs)("span",{style:{width:"60px",height:"24px",background:"#141B24",borderRadius:"30px",color:"white",fontWeight:"bold",fontSize:"14px",lineHeight:"100%",padding:"5px 10px",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:[W+1," / ",U.length]})]})]}),(0,l.jsx)(E.T,{height:80,label:"Object and position",labelLarge:!0,value:C||"",name:"enhancement_details",placeholder:"e.g. Reflection on the bottom right of the photo.",disabled:Q.loading||A.loading,onChange:e=>{let{target:{value:n}}=e;return z(n)}}),(0,l.jsx)(u.J0,{id:"applyAll",fontSize:16,label:" Apply to all remaining photos",disabled:Q.loading||A.loading,checked:!0===w,onChange:e=>Z(e.target.checked)})]}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginTop:7}}),(0,l.jsx)("div",{style:{padding:16},children:(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,disabled:Q.loading||A.loading,children:"Save and continue"})})]})]})]})};function nI(){let e=(0,x._)(["\n query EditingJobFaceRetouchingScreenQuery(\n $jobId: ID!\n $cursor: String\n $first: Int\n ) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n items(first: $first, cursor: $cursor) {\n cursor\n edges {\n id\n services {\n edges {\n id\n details {\n faceRetouchingNotes\n }\n editingJobService {\n id\n tier\n slug\n }\n }\n }\n originalImage {\n id\n fileName\n medium {\n url\n }\n }\n }\n }\n }\n }\n "]);return nI=function(){return e},e}function nv(){let e=(0,x._)(["\n mutation EditingJobSaveFaceRetouchingNotes(\n $editingJobId: ID!\n $slug: String!\n $mediaUid: String!\n $faceRetouchingNotes: String\n $applyAll: Boolean\n ) {\n editingJobSaveIndividualMediaDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n slug: $slug\n mediaUid: $mediaUid\n faceRetouchingNotes: $faceRetouchingNotes\n applyAll: $applyAll\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return nv=function(){return e},e}let ny=e=>{var n,i,t,d,o,a,s,g,c,m,x,j,v,y,M,S,N,f;let{editingJob:D,context:L,onDismiss:T}=e,J=(0,p.p1)({step:h.oM.face_retouching}),A=(0,I.IT)((0,I.J1)(nI()),{variables:{first:5e3,jobId:null==D?void 0:D.id},skip:(null==D?void 0:D.id)==null}),[C,z]=r.useState(),[w,Z]=r.useState(),R=(null==(t=A.data)||null==(i=t.editingJob)||null==(n=i.servicesSummary)?void 0:n.edges)==null||(null==(s=A.data)||null==(a=s.editingJob)||null==(o=a.servicesSummary)||null==(d=o.edges)?void 0:d.length)===0?null==A||null==(m
1=A.data)||null==(c=m.editingJob)||null==(g=c.thirdPartyServices)?void 0:g.edges:null==(v=A.data)||null==(j=v.editingJob)||null==(x=j.servicesSummary)?void 0:x.edges,O=null==R?void 0:R.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.FaceRetouching}),Y=null==(S=A.data)||null==(M=S.editingJob)||null==(y=M.items)?void 0:y.edges,U=r.useMemo(()=>null!=Y?Y:[],[Y]),G=r.useMemo(()=>U.map(e=>{var n,i,l;let t=e.originalImage.id,d=null==e||null==(i=e.services)||null==(n=i.edges)?void 0:n.find(e=>e.editingJobService.slug===h.XZ.FaceRetouching);return{uid:t,details:null==d||null==(l=d.details)?void 0:l.faceRetouchingNotes}}),[U]),[W,$]=r.useState(0),_=r.useMemo(()=>null!=U?U[null!=W?W:0]:null,[W,U]);r.useEffect(()=>{var e;null!=_&&null!=G&&z(null==(e=G.find(e=>(null==e?void 0:e.uid)===(null==_?void 0:_.originalImage.id)))?void 0:e.details)},[_,G]),r.useEffect(()=>{null!=w&&Z(w)},[w]);let[H,Q]=(0,I.n_)((0,I.J1)(nv())),F=null!=A.data&&null==O||(null==D?void 0:D.usesPreset)===!0||(null==D?void 0:D.thirdPartyEnabled)===!0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:J.progress,prev:J.onPrev,onDismiss:()=>T({step:h.oM.faceRetouching,editingJob:D})}),null==C&&!0===A.loading&&null==A.data?(0,l.jsx)(P.c,{}):F?(0,l.jsx)(B.e,{editingJob:D,progressData:J}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{height:32}}),(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:k.WK,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Face retouching",marginBottom:16}),(0,l.jsx)("p",{style:{textAlign:"center",fontSize:14,color:"#454F5C",marginBottom:40},children:"Describe the retouching you would like done"}),(0,l.jsxs)("form",{onSubmit:e=>{var n;e.preventDefault(),H({variables:{editingJobId:null==D?void 0:D.id,slug:h.XZ.FaceRetouching,faceRetouchingNotes:null!=C?C:"",mediaUid:null==_||null==(n=_.originalImage)?void 0:n.id,applyAll:w}}).then(async()=>{await A.refetch(),W>=U.length-1||!0===w?J.onNext({extraQuery:{editingJob:D}}):W>=U.length-1||$(e=>e+1)})},children:[(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,l.jsxs)("div",{style:{position:"relative",marginBottom:"16px",height:326},children:[(null==_||null==(N=_.originalImage.medium)?void 0:N.url)!=null?(0,l.jsx)("img",{style:{height:"100%",width:"100%",objectFit:"cover"},src:null==_||null==(f=_.originalImage.medium)?void 0:f.url,alt:""}):(0,l.jsx)(ee.b,{iconSize:"120px",imageName:null==_?void 0:_.originalImage.fileName}),(0,l.jsxs)("div",{style:{position:"absolute",top:0,right:0,margin:"16px",display:"flex"},children:[(0,l.jsx)("button",{style:{width:"24px",height:"24px",borderRadius:"16px",background:"#141B24",border:"none",marginRight:"8px"},onClick:e=>{e.preventDefault(),W<=0||$(e=>e-1)},children:(0,l.jsx)(e_.I,{style:{width:"100%",height:"16px"},src:k.pO})}),(0,l.jsxs)("span",{style:{width:"60px",height:"24px",background:"#141B24",borderRadius:"30px",color:"white",fontWeight:"bold",fontSize:"14px",lineHeight:"100%",padding:"5px 10px",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:[W+1," / ",U.length]})]})]}),(0,l.jsx)(E.T,{height:80,label:"Description",labelLarge:!0,value:C||"",name:"enhancement_details",placeholder:"e.g. Red eye removal",disabled:Q.loading||A.loading,onChange:e=>{let{target:{value:n}}=e;return z(n)}}),(0,l.jsx)(u.J0,{id:"applyAll",fontSize:16,label:" Apply to all remaining photos",disabled:Q.loading||A.loading,checked:!0===w,onChange:e=>Z(e.target.checked)})]}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginTop:7}}),(0,l.jsx)("div",{style:{padding:16},children:(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,disabled:Q.loading||A.loading,children:"Save and continue"})})]})]})]})};function nh(){let e=(0,x._)(["\n query EditingJobSkyReplacement($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n }\n }\n "]);return nh=function(){return e},e}function nM(){let e=(0,x._)(["\n mutation EditingJobSkyReplacementTypeSelection(\n $editingJobId: ID!\n $skyReplacementNotes: String!\n $slug: String!\n ) {\n editingJobServiceSaveDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n skyReplacementNotes: $skyReplacementNotes\n slug: $slug\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return nM=function(){return e},e}let nS=e=>{var n,i,t,d,o,a;let{editingJob:s,context:r,onDismiss:g}=e,c=(0,p.p1)({step:h.oM.sky_replacement}),m=(0,I.IT)((0,I.J1)(nh()),{variables:{jobId:null==s?void 0:s.id},skip:(null==s?void 0:s.id)==null,fetchPolicy:"network-only"}),x=null==m||null==(t=m.data)||null==(i=t.editingJob)||null==(n=i.thirdPartyServices)?void 0:n.edges;(null==x||(null==x?void 0:x.length)===0)&&(x=null==(a=m.data)||null==(o=a.editingJob)||null==(d=o.servicesSummary)?void 0:d.edges);let j=null==x?void 0:x.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.SkyReplacement}),[v,y]=(0,I.n_)((0,I.J1)(nM())),M=null!=m.data&&null==j||(null==s?void 0:s.usesPreset)===!0,S=[{label:h.a2[h.$_.Clear],value:h.$_.Clear,icon:k.FX},{label:h.a2[h.$_.Cloudy],value:h.$_.Cloudy,icon:k.eX},{label:h.a2[h.$_.Dramatic],value:h.$_.Dramatic,icon:k.Bd},{label:h.a2[h.$_.Sunset],value:h.$_.Sunset,icon:k.AX},{label:h.a2[h.$_.Starry],value:h.$_.Starry,icon:k.ZV}];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:c.progress,prev:c.onPrev,onDismiss:()=>g({step:h.oM.virtual_staging_style,editingJob:s})}),(0,l.jsx)("div",{style:{height:32}}),m.loading&&null==m.data||(null==s?void 0:s.id)==null?(0,l.jsx)(P.c,{}):M?(0,l.jsx)(B.e,{editingJob:s,progressData:c}):(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:k._w,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Sky replacement",marginBottom:16}),(0,l.jsx)("p",{style:{fontSize:"14px",fontWeight:400,lineHeight:"19.6px",textAlign:"center",marginBottom:0},children:"What type of sky do you need?"}),(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",flex:1,padding:"16px"},children:S.map(e=>(0,l.jsx)(ey.q,{height:128,iconSize:80,onClick:()=>(e=>{var n;v({variables:{editingJobId:null==s?void 0:s.id,skyReplacementNotes:e,slug:null==j||null==(n=j.editingJobService)?void 0:n.slug}}).then(()=>c.onNext({extraQuery:{editingJob:s}}))})(e.value),disabled:y.loading,label:"".concat(null==e?void 0:e.label[0].toUpperCase()).concat(null==e?void 0:e.label.slice(1)," "),iconAlt:e.label,icon:e.icon},e.label))})]})]})};function nN(){let e=(0,x._)(["\n query EditingJobDropShadow($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n }\n }\n "]);return nN=function(){return e},e}function nf(){let e=(0,x._)(["\n mutation EditingJobDropShadowSelection(\n $editingJobId: ID!\n $dropShadowNotes: String!\n $slug: String!\n ) {\n editingJobServiceSaveDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n dropShadowNotes: $dropShadowNotes\n slug: $slug\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return nf=function(){return e},e}let nD=e=>{var n,i,t,d,o,a;let{editingJob:s,context:r,onDismiss:g}=e,c=(0,p.p1)({step:h.oM.drop_shadow}),m=(0,I.IT)((0,I.J1)(nN()),{variables:{jobId:null==s?void 0:s.id},skip:(null==s?void 0:s.id)==null,fetchPolicy:"network-only"}),x=null==m||null==(t=m.data)||null==(i=t.editingJob)||null==(n=i.thirdPartyServices)?void 0:n.edges;(null==x||(null==x?void 0:x.length)===0)&&(x=null==(a=m.data)||null==(o=a.editingJob)||null==(d=o.servicesSummary)?void 0:d.edges);let j=null==x?void 0:x.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.DropShadow}),[v,y]=(0,I.n_)((0,I.J1)(nf())),M=null!=m.data&&null==j||(null==s?void 0:s.usesPreset)===!0,S=[{label:h.FQ.Light,icon:k.w2},{label:h.FQ.Medium,icon:k.pC},{label:h.FQ.Heavy,icon:k.jD}];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:c.progress,prev:c.onPrev,onDismiss:()=>g({step:h.oM.drop_shadow,editingJob:s})}),(0,l.jsx)("div",{style:{height:32}}),m.loading&&null==m.data||(null==s?void 0:s.id)==null?(0,l.jsx)(P.c,{}):M?(0,l.jsx)(B.e,{editingJob:s,progressData:c}):(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:k.c_,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Drop shadow",marginBottom:16}),(0,l.jsx)("p",{style:{fontSize:"14px",fontWeight:400,lineHeight:"19.6px",textAlign:"center",marginBottom:0},children:"Drop shadow intensity"}),(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",flex:1,padding:"16px"},children:S.map(e=>(0,l.jsx)(ey.q,{height:128,iconSize:80,onClick:()=>(e=>{var n;v({variables:{editingJobId:null==s?void 0:s.id,dropShadowNotes:e,slug:null==j||null==(n=j.editingJobService)?void 0:n.slug}}).then(()=>c.onNext({extraQuery:{editingJob:s}}))})(e.label),disabled:y.loading,label:"".concat(null==e?void 0:e.label[0].toUpperCase()).concat(null==e?void 0:e.label.slice(1)," "),iconAlt:e.label,icon:e.icon},e.label))})]})]})};function nL(){let e=(0,x._)(["\n query EditingJobProductRetouchingQuery(\n $jobId: ID!\n $cursor: String\n $first: Int\n ) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n items(first: $first, cursor: $cursor) {\n cursor\n edges {\n id\n services {\n edges {\n id\n details {\n productRetouchingNotes\n }\n editingJobService {\n id\n tier\n slug\n }\n }\n }\n originalImage {\n id\n fileName\n medium {\n url\n }\n }\n }\n }\n }\n }\n "]);return nL=function(){return e},e}function nT(){let e=(0,x._)(["\n mutation EditingJobProductRetouchSaveNotes(\n $editingJobId: ID!\n $slug: String!\n $mediaUid: String!\n $productRetouchingNotes: String\n $applyAll: Boolean\n ) {\n editingJobSaveIndividualMediaDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n slug: $slug\n mediaUid: $mediaUid\n productRetouchingNotes: $productRetouchingNotes\n applyAll: $applyAll\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return nT=function(){return e},e}let nJ=e=>{var n,i,t,d,o,a,s,g,c,m,x,j,v,y,M,S,N,f;let{editingJob:D,context:L,onDismiss:T}=e,J=(0,p.p1)({step:h.oM.product_retouching}),A=(0,I.IT)((0,I.J1)(nL()),{variables:{first:5e3,jobId:null==D?void 0:D.id},skip:(null==D?void 0:D.id)==null}),[C,z]=r.useState(),[w,Z]=r.useState(),R=(null==(t=A.data)||null==(i=t.editingJob)||null==(n=i.servicesSummary)?void 0:n.edges)==null||(null==(s=A.data)||null==(a=s.editingJob)||null==(o=a.servicesSummary)||null==(d=o.edges)?void 0:d.length)===0?null==A||null==(m
1=A.data)||null==(c=m.editingJob)||null==(g=c.thirdPartyServices)?void 0:g.edges:null==(v=A.data)||null==(j=v.editingJob)||null==(x=j.servicesSummary)?void 0:x.edges,O=null==R?void 0:R.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.ProductRetouching}),Y=null==(S=A.data)||null==(M=S.editingJob)||null==(y=M.items)?void 0:y.edges,U=r.useMemo(()=>null!=Y?Y:[],[Y]),G=r.useMemo(()=>U.map(e=>{var n,i,l;let t=e.originalImage.id,d=null==e||null==(i=e.services)||null==(n=i.edges)?void 0:n.find(e=>e.editingJobService.slug===h.XZ.ProductRetouching);return{uid:t,details:null==d||null==(l=d.details)?void 0:l.productRetouchingNotes}}),[U]),[W,$]=r.useState(0),_=r.useMemo(()=>null!=U?U[null!=W?W:0]:null,[W,U]);r.useEffect(()=>{var e;null!=_&&null!=G&&z(null==(e=G.find(e=>(null==e?void 0:e.uid)===(null==_?void 0:_.originalImage.id)))?void 0:e.details)},[_,G]),r.useEffect(()=>{null!=w&&Z(w)},[w]);let[H,Q]=(0,I.n_)((0,I.J1)(nT())),F=null!=A.data&&null==O||(null==D?void 0:D.usesPreset)===!0||(null==D?void 0:D.thirdPartyEnabled)===!0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:J.progress,prev:J.onPrev,onDismiss:()=>T({step:h.oM.product_retouching,editingJob:D})}),null==C&&!0===A.loading&&null==A.data?(0,l.jsx)(P.c,{}):F?(0,l.jsx)(B.e,{editingJob:D,progressData:J}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{height:32}}),(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:k.a5,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Product retouching",marginBottom:16}),(0,l.jsx)("p",{style:{textAlign:"center",fontSize:14,color:"#454F5C",marginBottom:40,paddingLeft:16,paddingRight:16},children:"Instructions on how you would like the product retouched"}),(0,l.jsxs)("form",{onSubmit:e=>{var n;e.preventDefault(),H({variables:{editingJobId:null==D?void 0:D.id,slug:h.XZ.ProductRetouching,productRetouchingNotes:null!=C?C:"",mediaUid:null==_||null==(n=_.originalImage)?void 0:n.id,applyAll:w}}).then(async()=>{await A.refetch(),W>=U.length-1||!0===w?J.onNext({extraQuery:{editingJob:D}}):W>=U.length-1||$(e=>e+1)})},children:[(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,l.jsxs)("div",{style:{position:"relative",marginBottom:"16px",height:326},children:[(null==_||null==(N=_.originalImage.medium)?void 0:N.url)!=null?(0,l.jsx)("img",{style:{height:"100%",width:"100%",objectFit:"cover"},src:null==_||null==(f=_.originalImage.medium)?void 0:f.url,alt:""}):(0,l.jsx)(ee.b,{iconSize:"120px",imageName:null==_?void 0:_.originalImage.fileName}),(0,l.jsxs)("div",{style:{position:"absolute",top:0,right:0,margin:"16px",display:"flex"},children:[(0,l.jsx)("button",{style:{width:"24px",height:"24px",borderRadius:"16px",background:"#141B24",border:"none",marginRight:"8px"},onClick:e=>{e.preventDefault(),W<=0||$(e=>e-1)},children:(0,l.jsx)(e_.I,{style:{width:"100%",height:"16px"},src:k.pO})}),(0,l.jsxs)("span",{style:{width:"60px",height:"24px",background:"#141B24",borderRadius:"30px",color:"white",fontWeight:"bold",fontSize:"14px",lineHeight:"100%",padding:"5px 10px",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:[W+1," / ",U.length]})]})]}),(0,l.jsx)(E.T,{height:80,label:"Description",labelLarge:!0,value:C||"",name:"enhancement_details",placeholder:"e.g. Red eye removal",disabled:Q.loading||A.loading,onChange:e=>{let{target:{value:n}}=e;return z(n)}}),(0,l.jsx)(u.J0,{id:"applyAll",fontSize:16,label:" Apply to all remaining photos",disabled:Q.loading||A.loading,checked:!0===w,onChange:e=>Z(e.target.checked)})]}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginTop:7}}),(0,l.jsx)("div",{style:{padding:16},children:(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,disabled:Q.loading||A.loading,children:"Save and continue"})})]})]})]})};function nA(){let e=(0,x._)(["\n query EditingJobBrandRemovalScreenQuery(\n $jobId: ID!\n $cursor: String\n $first: Int\n ) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n items(first: $first, cursor: $cursor) {\n cursor\n edges {\n id\n services {\n edges {\n id\n details {\n brandRemovalNotes\n }\n editingJobService {\n id\n tier\n slug\n }\n }\n }\n originalImage {\n id\n fileName\n medium {\n url\n }\n }\n }\n }\n }\n }\n "]);return nA=function(){return e},e}function nC(){let e=(0,x._)(["\n mutation EditingJobBrandRemovalSaveNotes(\n $editingJobId: ID!\n $slug: String!\n $mediaUid: String!\n $brandRemovalNotes: String\n $applyAll: Boolean\n ) {\n editingJobSaveIndividualMediaDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n slug: $slug\n mediaUid: $mediaUid\n brandRemovalNotes: $brandRemovalNotes\n applyAll: $applyAll\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return nC=function(){return e},e}let nz=e=>{var n,i,t,d,o,a,s,g,c,m,x,j,v,y,M,S,N,f;let{editingJob:D,context:L,onDismiss:T}=e,J=(0,p.p1)({step:h.oM.brand_removal}),A=(0,I.IT)((0,I.J1)(nA()),{variables:{first:5e3,jobId:null==D?void 0:D.id},skip:(null==D?void 0:D.id)==null}),[C,z]=r.useState(),[w,Z]=r.useState(),R=(null==(t=A.data)||null==(i=t.editingJob)||null==(n=i.servicesSummary)?void 0:n.edges)==null||(null==(s=A.data)||null==(a=s.editingJob)||null==(o=a.servicesSummary)||null==(d=o.edges)?void 0:d.length)===0?null==A||null==(m
1=A.data)||null==(c=m.editingJob)||null==(g=c.thirdPartyServices)?void 0:g.edges:null==(v=A.data)||null==(j=v.editingJob)||null==(x=j.servicesSummary)?void 0:x.edges,O=null==R?void 0:R.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===h.XZ.BrandRemoval}),Y=null==(S=A.data)||null==(M=S.editingJob)||null==(y=M.items)?void 0:y.edges,U=r.useMemo(()=>null!=Y?Y:[],[Y]),G=r.useMemo(()=>U.map(e=>{var n,i,l;let t=e.originalImage.id,d=null==e||null==(i=e.services)||null==(n=i.edges)?void 0:n.find(e=>e.editingJobService.slug===h.XZ.BrandRemoval);return{uid:t,details:null==d||null==(l=d.details)?void 0:l.brandRemovalNotes}}),[U]),[W,$]=r.useState(0),_=r.useMemo(()=>null!=U?U[null!=W?W:0]:null,[W,U]);r.useEffect(()=>{var e;null!=_&&null!=G&&z(null==(e=G.find(e=>(null==e?void 0:e.uid)===(null==_?void 0:_.originalImage.id)))?void 0:e.details)},[_,G]),r.useEffect(()=>{null!=w&&Z(w)},[w]);let[H,Q]=(0,I.n_)((0,I.J1)(nC())),F=null!=A.data&&null==O||(null==D?void 0:D.usesPreset)===!0||(null==D?void 0:D.thirdPartyEnabled)===!0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.z2,{progress:J.progress,prev:J.onPrev,onDismiss:()=>T({step:h.oM.brand_removal,editingJob:D})}),null==C&&!0===A.loading&&null==A.data?(0,l.jsx)(P.c,{}):F?(0,l.jsx)(B.e,{editingJob:D,progressData:J}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{height:32}}),(0,l.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,l.jsx)("img",{src:k.aE,alt:"icon"})}),(0,l.jsx)(u.vt,{title:"Brand removal",marginBottom:16}),(0,l.jsx)("p",{style:{textAlign:"center",fontSize:14,color:"#454F5C",marginBottom:40,paddingLeft:16,paddingRight:16},children:"Describe the brand you want to remove."}),(0,l.jsxs)("form",{onSubmit:e=>{var n;e.preventDefault(),H({variables:{editingJobId:null==D?void 0:D.id,slug:h.XZ.BrandRemoval,brandRemovalNotes:null!=C?C:"",mediaUid:null==_||null==(n=_.originalImage)?void 0:n.id,applyAll:w}}).then(async()=>{await A.refetch(),W>=U.length-1||!0===w?J.onNext({extraQuery:{editingJob:D}}):W>=U.length-1||$(e=>e+1)})},children:[(0,l.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,l.jsxs)("div",{style:{position:"relative",marginBottom:"16px",height:326},children:[(null==_||null==(N=_.originalImage.medium)?void 0:N.url)!=null?(0,l.jsx)("img",{style:{height:"100%",width:"100%",objectFit:"cover"},src:null==_||null==(f=_.originalImage.medium)?void 0:f.url,alt:""}):(0,l.jsx)(ee.b,{iconSize:"120px",imageName:null==_?void 0:_.originalImage.fileName}),(0,l.jsxs)("div",{style:{position:"absolute",top:0,right:0,margin:"16px",display:"flex"},children:[(0,l.jsx)("button",{style:{width:"24px",height:"24px",borderRadius:"16px",background:"#141B24",border:"none",marginRight:"8px"},onClick:e=>{e.preventDefault(),W<=0||$(e=>e-1)},children:(0,l.jsx)(e_.I,{style:{width:"100%",height:"16px"},src:k.pO})}),(0,l.jsxs)("span",{style:{width:"60px",height:"24px",background:"#141B24",borderRadius:"30px",color:"white",fontWeight:"bold",fontSize:"14px",lineHeight:"100%",padding:"5px 10px",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:[W+1," / ",U.length]})]})]}),(0,l.jsx)(E.T,{height:80,label:"Description",labelLarge:!0,value:C||"",name:"enhancement_details",placeholder:"e.g. Remove all the logos.",disabled:Q.loading||A.loading,onChange:e=>{let{target:{value:n}}=e;return z(n)}}),(0,l.jsx)(u.J0,{id:"applyAll",fontSize:16,label:" Apply to all remaining photos",disabled:Q.loading||A.loading,checked:!0===w,onChange:e=>Z(e.target.checked)})]}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginTop:7}}),(0,l.jsx)("div",{style:{padding:16},children:(0,l.jsx)(u.$J,{size:"lg",fullWidth:!0,disabled:Q.loading||A.loading,children:"Save and continue"})})]})]})]})},nw=e=>{let{onDismiss:n,returnStep:i,editingJob:o}=e,s=(0,t.useRouter)(),r=(0,d.parse)(s.asPath,!0);return(0,l.jsxs)("div",{style:{backgroundColor:"white",borderRadius:3},children:[(0,l.jsx)(g.r,{onDismiss:()=>n({validateExit:!1})}),(0,l.jsxs)("div",{style:{paddingRight:16,paddingBottom:16,paddingLeft:16},children:[(0,l.jsx)(u.vt,{title:"Are you sure you want to exit?"}),(0,l.jsx)("div",{style:{display:"flex",flex:1,justifyContent:"center",paddingTop:40,paddingBottom:40},children:(0,l.jsx)("img",{src:m(),alt:"exit"})})]}),(0,l.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:u.Bx,marginBottom:16}}),(0,l.jsxs)("div",{style:{paddingRight:16,paddingBottom:16,paddingLeft:16,display:"flex",justifyContent:"space-between"},children:[(0,l.jsx)("div",{style:{flex:1},children:(0,l.jsx)(u.K_,{type:"button",color:"#E11F59",borderColor:"#E11F59",onClick:()=>n({validateExit:!1}
1),marginTop:0,marginBottom:0,size:"lg",children:"Yes, cancel editing job"})}),(0,l.jsx)("div",{style:{width:16}}),(0,l.jsx)("div",{style:{flex:1},children:(0,l.jsx)(u.$J,{type:"button",size:"lg",fullWidth:!0,onClick:()=>{let e=null==r.query.modal||"{}"===r.query.modal||"string"!=typeof r.query.modal?null:JSON.parse(r.query.modal),n=null==e?void 0:e.previousRoute;s.replace((0,a.IO)({router:s,modal:{step:null==i?void 0:i.routePath,modalName:h.MT,editingJob:o,previousRoute:n}}),void 0,{shallow:!0})},children:"No, continue"})})]})]})};function nk(e){let{context:n,modalParams:i,onDismiss:t}=e,{step:d,editingJob:a,return_step:r,returnPathOnDismiss:g}=i,u=(0,o.iq)({STEPS:h.oM}).flat(),c=e=>{var n;return t({...e,returnPathOnDismiss:null!=(n=e.returnPathOnDismiss)?n:g})};return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(s._T,{justifyContent:"flex-start","aria-label":"new-editing-job-flow",style:{zIndex:5,padding:0,margin:0,width:520,display:"flex",flexDirection:"column",marginTop:91,marginBottom:91},onDismiss:()=>c({validateExit:d!==h.oM.exit.routePath,editingJob:a,step:null!=d?u.find(e=>e.routePath===d):void 0}),children:(0,l.jsx)("div",{style:{backgroundColor:"white",borderRadius:3},children:(e=>{let{step:n,editingJob:i,context:t,onDismiss:d,return_step:o}=e;switch(n){case h.oM.create_editing_job:return(0,l.jsx)(L,{onDismiss:d,context:t,editingJob:i});case h.oM.services_selection_screen:return(0,l.jsx)(ex.RS,{onDismiss:d,context:t,editingJob:i});case h.oM.image_uploader:return(0,l.jsx)(w.G,{onDismiss:d,context:t,editingJob:i});case h.oM.third_party:return(0,l.jsx)(eE,{onDismiss:d,context:t,editingJob:i});case h.oM.max_min:return(0,l.jsx)(eR,{onDismiss:d,context:t,editingJob:i});case h.oM.third_party_notes:return(0,l.jsx)(eU,{onDismiss:d,context:t,editingJob:i});case h.oM.background_blur:return(0,l.jsx)(e$,{onDismiss:d,context:t,editingJob:i});case h.oM.sky_replacement:return(0,l.jsx)(nS,{onDismiss:d,context:t,editingJob:i});case h.oM.drop_shadow:return(0,l.jsx)(nD,{onDismiss:d,context:t,editingJob:i});case h.oM.product_retouching:return(0,l.jsx)(nJ,{onDismiss:d,context:t,editingJob:i});case h.oM.spot_removal:return(0,l.jsx)(eF,{onDismiss:d,context:t,editingJob:i});case h.oM.brand_removal:return(0,l.jsx)(nz,{onDismiss:d,context:t,editingJob:i});case h.oM.preset_or_custom:return(0,l.jsx)(ec,{onDismiss:d,context:t,editingJob:i});case h.oM.preset_selection:return(0,l.jsx)(ev,{onDismiss:d,context:t,editingJob:i});case h.oM.image_enhancement:return(0,l.jsx)(O,{onDismiss:d,context:t,editingJob:i});case h.oM.background_removal:return(0,l.jsx)(e4,{onDismiss:d,context:t,editingJob:i});case h.oM.background_removal_color_picker:return(0,l.jsx)(e1,{onDismiss:d,context:t,editingJob:i});case h.oM.upscaling:return(0,l.jsx)(e8,{onDismiss:d,context:t,editingJob:i});case h.oM.upscaling_custom_scale_form:return(0,l.jsx)(e6,{onDismiss:d,context:t,editingJob:i});case h.oM.cropping_ratio:return(0,l.jsx)(e7.CA,{onDismiss:d,context:t,editingJob:i});case h.oM.cropping_dimensions:return(0,l.jsx)(e7.k2,{onDismiss:d,context:t,editingJob:i});case h.oM.virtual_staging_room:return(0,l.jsx)(ne._t,{onDismiss:d,context:t,editingJob:i});case h.oM.object_removal_notes:return(0,l.jsx)(np,{onDismiss:d,context:t,editingJob:i});case h.oM.face_retouching:return(0,l.jsx)(ny,{onDismiss:d,context:t,editingJob:i});case h.oM.virtual_staging_style:return(0,l.jsx)(ne.fR,{onDismiss:d,context:t,editingJob:i});case h.oM.virtual_staging_examples:return(0,l.jsx)(ne.w_,{onDismiss:d,context:t,editingJob:i});case h.oM.extra_notes:return(0,l.jsx)($,{onDismiss:d,context:t,editingJob:i});case h.oM.reference_images:return(0,l.jsx)(ed,{onDismiss:d,context:t,editingJob:i});case h.oM.save_preset:return(0,l.jsx)(ef,{onDismiss:d,context:t,editingJob:i});case h.oM.background_extension_ratio:return(0,l.jsx)(nr,{onDismiss:d,context:t,editingJob:i});case h.oM.background_extension_dimension:return(0,l.jsx)(ns,{onDismiss:d,context:t,editingJob:i});case h.oM.background_extension_gallery:return(0,l.jsx)(nc,{onDismiss:d,context:t,editingJob:i});case h.oM.background_extension_notes:return(0,l.jsx)(ng,{onDismiss:d,context:t,editingJob:i});case h.oM.preset_summary:return(0,l.jsx)(eJ,{onDismiss:d,context:t,editingJob:i});case h.oM.summary:return(0,l.jsx)(ej.B,{onDismiss:d,context:t,editingJob:i});case h.oM.success_screen:return(0,l.jsx)(z,{onDismiss:d,editingJob:i});case h.oM.exit:return(0,l.jsx)(nw,{editingJob:i,onDismiss:d,returnStep:o});case h.oM.pick_booking_images:return(0,l.jsx)(nx,{editingJob:i,context:t,onDismiss:d});default:return"error"}})({step:null!=d?u.find(e=>e.routePath===d):void 0,editingJob:a,context:n,onDismiss:c,return_step:null!=r?u.find(e=>e.routePath===r):void 0})})})})}},22359:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAwIiBoZWlnaHQ9IjYwMCIgdmlld0JveD0iMCAwIDUgMyI+Cgk8cmVjdCBpZD0iYmxhY2tfc3RyaXBlIiB3aWR0aD0iNSIgaGVpZ2h0PSIzIiB5PSIwIiB4PSIwIiBmaWxsPSIjMDAwIi8+Cgk8cmVjdCBpZD0icmVkX3N0cmlwZSIgd2lkdGg9IjUiIGhlaWdodD0iMiIgeT0iMSIgeD0iMCIgZmlsbD0iI0QwMCIvPgoJPHJlY3QgaWQ9ImdvbGRfc3RyaXBlIiB3aWR0aD0iNSIgaGVpZ2h0PSIxIiB5PSIyIiB4PSIwIiBmaWxsPSIjRkZDRTAwIi8+Cjwvc3ZnPgo="},23237:e=>{e.exports="data:image/svg+xml;base64,PHN2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JhbnNmb3JtPSJyb3RhdGUoMjQwLC0yLjAxOSwwKSIgeGxpbms6aHJlZj0iI3MiLz4KPC9zdmc+Cg=="},30113:(e,n,i)=>{"use strict";i.d(n,{l:()=>m,q:()=>u});
1var l=i(86739),t=i(50979),d=i(25963),o=i(31606),a=i(51660),s=i(92954),r=i(56873);function g(){let e=(0,l._)(["\n query PartnerShoottypes($id: UUID!) {\n partnerById(uid: $id) {\n uid\n shootTypes {\n edges {\n displayName\n category\n }\n }\n }\n }\n "]);return g=function(){return e},e}let u=e=>{let{icon:n,iconAlt:i,label:l,disabled:o,secondaryLabel:s,onClick:r}=e;return(0,t.jsx)(a.y,{height:95,disabled:o,onClick:r,children:(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center"},children:["string"==typeof n?(0,t.jsx)("img",{style:{width:35,marginLeft:20,marginRight:18},src:n,alt:i}):(0,t.jsx)("div",{style:{width:35,marginLeft:20,marginRight:18,display:"flex",alignItems:"center",justifyContent:"center"},children:d.createElement(n,{style:{width:35,height:35}})}),(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center"},children:(0,t.jsx)("div",{style:{fontSize:18,fontWeight:"bold",margin:0},children:l})})]})})};function c(e){var n;let{shootType:i,onClick:l,disabled:d}=e;return(0,t.jsx)("div",{style:{display:"flex",width:"50%",paddingLeft:16},children:(0,t.jsx)(u,{onClick:l,disabled:d,label:i.displayName,iconAlt:i.displayName,icon:null==(n=(0,r.s)({shootName:i.category}))?void 0:n.icon})})}let m=e=>{var n,i;let{guideline:l,context:a,setGuideline:r,next:u}=e,[m,x]=(0,d.useState)(!1),b=null==(i=(0,o.IT)((0,o.J1)(g()),{variables:{id:a.partner.uid},fetchPolicy:"cache-and-network"}).data)||null==(n=i.partnerById.shootTypes)?void 0:n.edges;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",flex:1,paddingBottom:16},children:(0,t.jsxs)("div",{style:{paddingRight:16},children:[(0,t.jsx)(s.vt,{title:"Select the shoot type"}),(0,t.jsx)("div",{style:{display:"flex",flex:1,flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",marginBottom:20},children:b&&(b||[]).map((e,n)=>m?(0,t.jsx)(c,{shootType:e,disabled:!1,onClick:()=>{r(n=>({...n,shoot_type:e.displayName}
1)),u()}},e.category+n):n<8?(0,t.jsx)(c,{shootType:e,disabled:!1,onClick:()=>{r(n=>({...n,shoot_type:e.displayName})),u()}},e.category+n):null)}),(0,t.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",color:"#141B24",textDecoration:"underline",fontSize:14,fontWeight:"bold"},children:(0,t.jsxs)("span",{onClick:()=>x(!m),children:["Show ",m?"less":"more"]})})]})})})}},34971:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzIgMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTAgMGgzMnYzMkgweiIgZmlsbD0iI2RhMjkxYyIvPjxwYXRoIGQ9Ik0xMyA2aDZ2N2g3djZoLTd2N2gtNnYtN0g2di02aDd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+"},38977:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDMuNDEyMTFMMTEuMzQzOCA0LjUzNzExTDIuMzQzNzUgMjAuMTIzTDEuNzEwOTQgMjEuMjQ4SDIyLjI4OTFMMjEuNjU2MiAyMC4xMjNMMTIuNjU2MiA0LjUzNzExTDEyIDMuNDEyMTFaTTEyIDYuNDEyMTFMMTkuNjg3NSAxOS43NDhINC4zMTI1TDEyIDYuNDEyMTFaTTExLjI1IDExLjQ5OFYxNS45OThIMTIuN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uNC00MS43IDEzLjUgNDEuNyA0MS0xNS41LTI0LjMgMzYuNW0yMjQuNCA2Mi4zTDQ3NiA0MTYuN2wxNy44IDYuNyA1LjgtMTguMSA1LjggMTguMSAxNy44LTYuNy0xMC41IDE1LjggMTYuNCA5LjctMTkgMS43IDIuNiAxOC45LTEzLTEzLjktMTMuMiAxMy45IDIuNi0xOC45LTE5LTEuNm0xNi40LTI5MS45TDQ3NiAxMzQuNmwxNy44IDYuNyA1LjgtMTguMSA1LjggMTguMSAxNy44LTYuNy0xMC41IDE1LjggMTYuNCA5LjgtMTkgMS42IDIuNiAxOC45LTEzLTEzLjgtMTMuMiAxMy43IDIuNi0xOC44LTE5LTEuNk0zODAuOCAyNjVsLTEwLjUtMTUuOCAxNy44IDYuNyA1LjgtMTguMSA1LjkgMTguMSAxNy44LTYuN0w0MDcgMjY1bDE2LjQgOS43LTE5IDEuNyAyLjcgMTguOS0xMy4yLTEzLjktMTMgMTMuOSAyLjUtMTguOS0xOS0xLjZtMjE2LjMtMzhMNTcwIDIyMWwxNy44IDYuNyA1LjgtMTguMSA1LjkgMTguMSAxNy44LTYuNy0xMC41IDE1LjggMTYuMyA5LjctMTkgMS43IDIuNiAxOC44LTEzLTEzLjgtMTMuMiAxMy44IDIuNi0xOC44LTE5LTEuN001NDIgMzIwbC0xMC4zIDYuNSAyLjktMTEuOS05LjMtNy44IDEyLjEtMSA0LjYtMTEuMiA0LjcgMTEuMyAxMi4xLjktOS4zIDcuOCAyLjkgMTEuOSIvPgogIDwvZz4KPC9zdmc+Cg=="},42312:(e,n,i)=>{"use strict";i.d(n,{w:()=>a});var l=i(50979),t=i(46479),d=i.n(t);i(25963);var o=i(4088);let a=e=>{let{label:n,sub_label:i,description:t,tag:a,marginBottom:s=12,fontWeight:r="normal",mainFontSize:g=14,disabled:u=!1,...c}=e,{id:m}=(0,o._)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("label",{style:{...u?{opacity:.5}:{},marginBottom:s},className:"jsx-cb6efc3a81eea96b container",children:[(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",padding:0,gap:8},className:"jsx-cb6efc3a81eea96b",children:[(0,l.jsx)("div",{style:{fontSize:g,fontWeight:r,color:"#454F5C"},className:"jsx-cb6efc3a81eea96b",children:n}),null!=a&&(0,l.jsx)("div",{style:{background:"#C1C8D4",borderRadius:1,flexDirection:"row",alignItems:"center",paddingLeft:4,paddingRight:4,paddingTop:0,paddingBottom:0,height:14,color:"#FFF",fontSize:10},className:"jsx-cb6efc3a81eea96b",children:a})]}),null!=t&&(0,l.jsx)("div",{style:{fontSize:14,fontWeight:"normal",color:"#71767E"},className:"jsx-cb6efc3a81eea96b",children:t}),i&&(0,l.jsx)("div",{style:{fontSize:14,fontWeight:"normal",color:"#71767E",marginBottom:s},className:"jsx-cb6efc3a81eea96b",children:i}),(0,l.jsx)("input",{disabled:u,id:m,type:"checkbox",...c,className:"jsx-cb6efc3a81eea96b "+(c&&null!=c.className&&c.className||"")}),(0,l.jsx)("span",{className:"jsx-cb6efc3a81eea96b checkMark"})]}),(0,l.jsx)(d(),{id:"cb6efc3a81eea96b",children:'.container.jsx-cb6efc3a81eea96b{display:block;position:relative;padding-left:35px;cursor:pointer;font-size:22px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.container.jsx-cb6efc3a81eea96b input.jsx-cb6efc3a81eea96b{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.checkMark.jsx-cb6efc3a81eea96b{position:absolute;top:0;left:0;height:24px;width:24px;background-color:transparent;border:1px solid#c1c8d4;border-radius:2px}.checkMark.jsx-cb6efc3a81eea96b:after{content:"";position:absolute;display:none}.container.jsx-cb6efc3a81eea96b input.jsx-cb6efc3a81eea96b:checked~.checkMark.jsx-cb6efc3a81eea96b:after{display:block}.container.jsx-cb6efc3a81eea96b .checkMark.jsx-cb6efc3a81eea96b:after{left:8px;top:3px;width:6px;height:14px;border:solid#2fb67d;border-width:0 2px 2px 0;trans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kiLz4KPC9nPgo8L2c+Cjwvc3ZnPg=="},50369:(e,n,i)=>{"use strict";i.d(n,{J:()=>l});let l="/icons/snappr.svg?v=".concat("fb545c25f0")},53181:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5IDYiPjxwYXRoIGZpbGw9IiNlZDI5MzkiIGQ9Ik0wIDBoOXY2SDB6Ii8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMmg5djJIMHoiLz48L3N2Zz4="},53232:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDMiPjxwYXRoIGZpbGw9IiMwMDlBNDQiIGQ9Ik0wIDBoNnYzSDB6Ii8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTIgMGg0djNIMnoiLz48cGF0aCBmaWxsPSIjRkY4MjAwIiBkPSJNNCAwaDJ2M0g0eiIvPjwvc3ZnPg=="},56078:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJmbGFnLWljb24tY3NzLWNhIiB2aWV3Qm94PSIwIDAgNjQwIDQ4MCI+CiAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTgxLjEgMGgzNjIuM3Y1MTJIODEuMXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc0LjEpIHNjYWxlKC45Mz
1c1KSIvPgogIDxwYXRoIGZpbGw9IiNmMDAiIGQ9Ik0tMTAwIDBIODEuMXY1MTJILTEwMHptNTQzLjQgMGgxODEuMXY1MTJoLTE4MXptLTMwOCAyNDcuNGwtMTQuMiA0LjggNjUuNSA1Ny41YzUgMTQuNy0xLjcgMTktNiAyNi44bDcxLTlMMjUwIDM5OWwxNC44LS40LTMuMy03MSA3MS4yIDguNWMtNC40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czMS40em0wIDM1MC41SC0xMTJ2LTY3LjJoNzMxLjR6bS00ODMtMjc1IDExMC4xIDE5MS42TDM1OSAxOTEuNmwtMjIyLjYtLjh6IiAvPgogICAgPHBhdGggZmlsbD0iI2ZmZiIgZD0ibTIyNS44IDMxNy44IDIwLjkgMzUuNSAyMS40LTM1LjMtNDIuNC0uMnoiIC8+CiAgICA8cGF0aCBmaWxsPSIjMDBjIiBkPSJNMTM2IDMyMC42IDI0Ni4yIDEyOWwxMTIuNCAxOTAuOC0yMjIuNi44eiIgLz4KICAgIDxwYXRoIGZpbGw9IiNmZmYiIGQ9Im0yMjUuOCAxOTEuNiAyMC45LTM1LjUgMjEuNCAzNS40LTQyLjQuMXpNMTgyIDI3MS4xbC0yMS43IDM2IDQxLS4xLTE5LjMtMzZ6bS0yMS4zLTY2LjUgNDEuMi4zLTE5LjggMzYuMy0yMS40LTM2LjZ6bTE1MS4yIDY3IDIwLjkgMzUuNS00MS43LS41IDIwLjgtMzV6bTIwLjUtNjctNDEuMi4zIDE5LjggMzYuMyAyMS40LTM2LjZ6bS0xMTQuMyAwTDE4OS43IDI1NmwyOC44IDUwLjMgNTIuOCAxLjIgMzItNTEuNS0yOS42LTUyLTU1LjYuNXoiIC8+CiAgPC9nPgo8L3N2Zz4="},56873:(e,n,i)=>{"use strict";i.d(n,{s:()=>I});var l=i(50979);i(25963);var t=i(75188);let d=e=>{let n=n=>{let{size:i}=n;return(0,l.jsx)(t.U,{name:e,size:i})};return n.displayName="SnapprIcon(".concat(e,")"),n},o=d("teamAndOffice"),a=d("realstate"),s=d("product"),r=d("profile"),g=d("other"),u=d("industrial"),c=d("food"),m=d("media"),x=d("event"),b=d("commercial"),j=d("boat"),p=d("automotive"),I=e=>{let{shootName:n}=e;switch(n){case"teamAndOffice":return{icon:o};case"realstate":default:return{icon:a};case"product":return{icon:s};case"profile":return{icon:r};case"other":return{icon:g};case"industrial":return{icon:u};case"food":return{icon:c};case"media":return{icon:m};case"event":return{icon:x};case"commerc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OSA5LjEwMDA1IDE5LjU5OTYgOS4yODY2MSAxOS43MzQxIDkuNDIxMDdDMTkuODY4NiA5LjU1NTU0IDIwLjA1NTEgOS42MjYxNiAyMC4yNjUgOS42MjYxNloiIGZpbGw9IiNGRkJCMDAiIHN0cm9rZT0iI0ZGQkIwMCIgc3Ryb2tlLXdpZHRoPSIwLjMiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMCI+CjxyZWN0IHdpZHRoPSIyNi42NjY3IiBoZWlnaHQ9IjM2LjAzMjUiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1IDMuMTY2MDIpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},61396:(e,n,i)=>{"use strict";i.d(n,{TF:()=>S,_t:()=>D,fR:()=>f,w_:()=>N});var l=i(86739),t=i(50979),d=i(25963),o=i(369),a=i(31606),s=i(92954),r=i(38625),g=i(4988),u=i(12236),c=i(61062),m=i(2516),x=i(69208),b=i(41146),j=i(7189),p=i(48629);function I(){let e=(0,l._)(["\n query EditingJobVirtualStagingExample($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n }\n details {\n virtualStagingStyle\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n }\n details {\n virtualStagingStyle\n }\n }\n }\n }\n }\n "]);return I=function(){return e},e}function v(){let e=(0,l._)(["\n query EditingJobVirtualStaging($jobId: ID!) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n }\n }\n "]);return v=function(){return e},e}function y(){let e=(0,l._)(["\n mutation EditingJobVirtualStagingTypeSelection(\n $editingJobId: ID!\n $virtualStagingStyle: String\n $slug: String!\n ) {\n editingJobServiceSaveDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n virtualStagingStyle: $virtualStagingStyle\n slug: $slug\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return y=function(){return e},e}function h(){let e=(0,l._)(["\n query EditingJobVirtualStagingRoomQuery(\n $jobId: ID!\n $cursor: String\n $first: Int\n ) {\n editingJob: editingJobById(id: $jobId) {\n id\n servicesSummary {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n thirdPartyServices {\n edges {\n id\n editingJobService {\n id\n slug\n }\n }\n }\n items(first: $first, cursor: $cursor) {\n cursor\n edges {\n id\n services {\n edges {\n id\n details {\n virtualStagingRoom\n }\n editingJobService {\n id\n slug\n }\n }\n }\n originalImage {\n id\n fileName\n medium {\n url\n }\n }\n }\n }\n }\n }\n "]);return h=function(){return e},e}function M(){let e=(0,l._)(["\n mutation EditingJobVirtualStagingSaveRoom(\n $editingJobId: ID!\n $slug: String!\n $mediaUid: String!\n $virtualStagingRoom: String\n $applyAll: Boolean\n ) {\n editingJobSaveIndividualMediaDetailsAsPartnerUser(\n input: {\n editingJobId: $editingJobId\n slug: $slug\n mediaUid: $mediaUid\n virtualStagingRoom: $virtualStagingRoom\n applyAll: $applyAll\n }\n ) {\n editingJob {\n id\n }\n }\n }\n "]);return M=function(){return e},e}let S=[{value:"bedroom-1",description:"Bedroom 1"},{value:"bedroom-2",description:"Bedroom 2"},{value:"bedroom-3",description:"Bedroom 3"},{value:"bathroom-1",description:"Bathroom 1"},{value:"bathroom-2",description:"Bathroom 2"},{value:"kitchen",description:"Kitchen"}
1,{value:"living-room-1",description:"Living room 1"},{value:"living-room-2",description:"Living room 2"},{value:"dining-room",description:"Dining room"},{value:"office",description:"Office"},{value:"patio",description:"Patio"}],N=e=>{var n,i,l,d,u,m,x,j,v,y;let{editingJob:h,context:M,onDismiss:S}=e,N=(0,r.p1)({step:b.oM.virtual_staging_examples}),f=(0,a.IT)((0,a.J1)(I()),{variables:{jobId:null==h?void 0:h.id},skip:(null==h?void 0:h.id)==null,fetchPolicy:"network-only"}),D=null==f||null==(l=f.data)||null==(i=l.editingJob)||null==(n=i.thirdPartyServices)?void 0:n.edges;(null==D||(null==D?void 0:D.length)===0)&&(D=null==(y=f.data)||null==(v=y.editingJob)||null==(j=v.servicesSummary)?void 0:j.edges);let L=null==D?void 0:D.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===b.XZ.VirtualStaging}),T=null!=f.data&&null==L||(null==h?void 0:h.usesPreset)===!0||(null==h?void 0:h.thirdPartyEnabled)===!0,J=(null==L||null==(d=L.details)?void 0:d.virtualStagingStyle)!=null?g.T0[null==L||null==(u=L.details)?void 0:u.virtualStagingStyle]:null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.z2,{progress:N.progress,prev:N.onPrev,onDismiss:()=>S({step:b.oM.virtual_staging_examples,editingJob:h})}),(0,t.jsx)("div",{style:{height:32}}),f.loading&&null==f.data||(null==h?void 0:h.id)==null?(0,t.jsx)(c.c,{}):T?(0,t.jsx)(p.e,{editingJob:h,progressData:N}):(0,t.jsx)("div",{children:(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",flex:1,paddingBottom:16},children:[(0,t.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,t.jsx)("img",{src:g.B7,alt:"icon"})}),(0,t.jsx)(s.vt,{title:"Virtual staging",marginBottom:16}),(0,t.jsx)("p",{style:{fontSize:"14px",fontWeight:400,lineHeight:"19.6px",textAlign:"center",marginBottom:16},children:"Examples of a ".concat(null==L||null==(m=L.details)?void 0:m.virtualStagingStyle,"\n style")}),null!=J&&(0,t.jsx)("div",{style:{padding:16},children:(0,t.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"140px 200px 140px",gridTemplateRows:"110px 110px 110px 110px",height:452,width:480,gap:4},children:[(0,t.jsx)("div",{style:{gridColumn:"1/3",gridRow:"1/3",maxHeight:"100%",maxWidth:"100%",backgroundImage:'url("'.concat(J[0],'")'),backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:2}}),(0,t.jsx)("div",{style:{maxWidth:"100%",maxHeight:"100%",backgroundImage:'url("'.concat(J[1],'")'),backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:2}}),(0,t.jsx)("div",{style:{maxWidth:"100%",maxHeight:"100%",backgroundImage:'url("'.concat(J[2],'")'),backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:2}}),(0,t.jsx)("div",{style:{maxWidth:"100%",maxHeight:"100%",backgroundImage:'url("'.concat(J[3],'")'),backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:2}}),(0,t.jsx)("div",{style:{maxWidth:"100%",maxHeight:"100%",backgroundImage:'url("'.concat(J[4],'")'),backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:2}}),(0,t.jsx)("div",{style:{gridColumn:"2/4",gridRow:"3/5",maxWidth:"100%",maxHeight:"100%",backgroundImage:'url("'.concat(J[5],'")'),backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:2}})]})}),(0,t.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:s.Bx,marginBottom:16}}),(0,t.jsx)("div",{style:{paddingLeft:16,paddingRight:16},children:(0,t.jsx)(s.$J,{size:"lg",fullWidth:!0,onClick:()=>N.onNext({extraQuery:{editingJob:h}}),children:"Continue with ".concat(null==L||null==(x=L.details)?void 0:x.virtualStagingStyle," style")})})]})})]})},f=e=>{var n,i,l,d,m,x;let{editingJob:j,context:I,onDismiss:h}=e,M=(0,r.p1)({step:b.oM.virtual_staging_style}),S=(0,a.IT)((0,a.J1)(v()),{variables:{jobId:null==j?void 0:j.id},skip:(null==j?void 0:j.id)==null,fetchPolicy:"network-only"}),N=null==S||null==(l=S.data)||null==(i=l.editingJob)||null==(n=i.thirdPartyServices)?void 0:n.edges;(null==N||(null==N?void 0:N.length)===0)&&(N=null==(x=S.data)||null==(m=x.editingJob)||null==(d=m.servicesSummary)?void 0:d.edges);let f=null==N?void 0:N.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===b.XZ.VirtualStaging}),[D,L]=(0,a.n_)((0,a.J1)(y())),T=null!=S.data&&null==f||(null==j?void 0:j.usesPreset)===!0||(null==j?void 0:j.thirdPartyEnabled)===!0,J=[{label:b.LW.Modern,icon:g.Ck},{label:b.LW.MidCentury,icon:g.ZI},{label:b.LW.Traditional,icon:g.uk},{label:b.LW.Industrial,icon:g.wF},{label:b.LW.Minimalist,icon:g.Kj},{label:b.LW.Rustic,icon:g.Hl},{label:b.LW.Coastal,icon:g.GH},{label:b.LW.Transitional,icon:g.Fm},{label:b.LW.Glam,icon:g.IM},{label:b.LW.Contemporary,icon:g.In},{label:b.LW.Boho,icon:g.nt},{label:b.LW.Eclectic,icon:g.$6}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.z2,{progress:M.progress,prev:M.onPrev,onDismiss:()=>h({step:b.oM.virtual_staging_style,editingJob:j})}),(0,t.jsx)("div",{style:{height:32}}),S.loading&&null==S.data||(null==j?void 0:j.id)==null?(0,t.jsx)(c.c,{}):T?(0,t.jsx)(p.e,{editingJob:j,progressData:M}):(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,t.jsx)("img",{src:g.B7,alt:"icon"})}),(0,t.jsx)(s.vt,{title:"Virtual staging",marginBottom:16}),(0,t.jsx)("p",{style:{fontSize:"14px",fontWeight:400,lineHeight:"19.6px",textAlign:"center",marginBottom:0},children:"What style of interior design do you need?"}),(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",flex:1,padding:"16px"},children:J.map(e=>(0,t.jsx)(u.q,{height:128,iconSize:80,onClick:()=>(e=>{var n;D({variables:{editingJobId:null==j?void 0:j.id,virtualStagingStyle:e,slug:null==f||null==(n=f.editingJobService)?void 0:n.slug}}).then(()=>M.onNext({extraQuery:{editingJob:j}}))})(e.label),disabled:L.loading,label:"".concat(null==e?void 0:e.label[0].toUpperCase()).concat(null==e?void 0:e.label.slice(1)," style"),secondaryLabel:"Select to see examples",iconAlt:e.label,icon:e.icon},e.label))})]})]})},D=e=>{var n,i,l,u,I,v,y,N,f,D,L,T,J,A,C,z,w,k;let{editingJob:E,context:P,onDismiss:B}=e,Z=(0,r.p1)({step:b.oM.virtual_staging_room}),R=(0,a.IT)((0,a.J1)(h()),{variables:{first:500,jobId:null==E?void 0:E.id},skip:(null==E?void 0:E.id)==null}
1),O=(null==(l=R.data)||null==(i=l.editingJob)||null==(n=i.servicesSummary)?void 0:n.edges)==null||(null==(y=R.data)||null==(v=y.editingJob)||null==(I=v.servicesSummary)||null==(u=I.edges)?void 0:u.length)===0?null==R||null==(D=R.data)||null==(f=D.editingJob)||null==(N=f.thirdPartyServices)?void 0:N.edges:null==(J=R.data)||null==(T=J.editingJob)||null==(L=T.servicesSummary)?void 0:L.edges,Y=null==O?void 0:O.find(e=>{var n;return(null==e||null==(n=e.editingJobService)?void 0:n.slug)===b.XZ.VirtualStaging}),U=null==(z=R.data)||null==(C=z.editingJob)||null==(A=C.items)?void 0:A.edges,G=d.useMemo(()=>null!=U?U:[],[U]),W=d.useMemo(()=>G.map(e=>{var n,i,l;let t=e.originalImage.id,d=null==e||null==(i=e.services)||null==(n=i.edges)?void 0:n.find(e=>e.editingJobService.slug===b.XZ.VirtualStaging);return{uid:t,details:null==d||null==(l=d.details)?void 0:l.virtualStagingRoom}}),[G]),[$,_]=d.useState(0),H=d.useMemo(()=>null!=G?G[null!=$?$:0]:null,[$,G]),[Q,F]=d.useState();d.useEffect(()=>{var e,n;null!=H&&null!=W&&F(null!=(n=null==(e=W.find(e=>(null==e?void 0:e.uid)===(null==H?void 0:H.originalImage.id)))?void 0:e.details)?n:"dining-room")},[H,W]);let[X,V]=(0,a.n_)((0,a.J1)(M())),K=null!=R.data&&null==Y||(null==E?void 0:E.usesPreset)===!0||(null==E?void 0:E.thirdPartyEnabled)===!0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.z2,{progress:Z.progress,prev:Z.onPrev,onDismiss:()=>B({step:b.oM.virtual_staging_room,editingJob:E})}),null==Q&&!0===R.loading&&null==R.data?(0,t.jsx)(c.c,{}):K?(0,t.jsx)(p.e,{editingJob:E,progressData:Z}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{height:32}}),(0,t.jsx)("div",{style:{textAlign:"center",marginBottom:16},children:(0,t.jsx)("img",{src:g.B7,alt:"icon"})}),(0,t.jsx)(s.vt,{title:"Virtual Staging",marginBottom:16}),(0,t.jsx)("p",{style:{textAlign:"center",fontSize:14,color:"#454F5C",marginBottom:40},children:"Select your virtual staging specifications"}),(0,t.jsxs)("form",{onSubmit:e=>{var n;e.preventDefault(),X({variables:{editingJobId:null==E?void 0:E.id,slug:b.XZ.VirtualStaging,virtualStagingRoom:null!=Q?Q:"",mediaUid:null==H||null==(n=H.originalImage)?void 0:n.id,applyAll:!1}}).then(async()=>{await R.refetch(),$>=G.length-1?Z.onNext({extraQuery:{editingJob:E}}):$>=G.length-1||_(e=>e+1)})},children:[(0,t.jsxs)("div",{style:{paddingRight:16,paddingLeft:16},children:[(0,t.jsxs)("div",{style:{position:"relative",marginBottom:"16px",height:326},children:[(null==H||null==(w=H.originalImage.medium)?void 0:w.url)!=null?(0,t.jsx)("img",{style:{height:"100%",width:"100%",objectFit:"cover"},src:null==H||null==(k=H.originalImage.medium)?void 0:k.url,alt:""}):(0,t.jsx)(j.b,{iconSize:"120px",imageName:null==H?void 0:H.originalImage.fileName}),(0,t.jsxs)("div",{style:{position:"absolute",top:0,right:0,margin:"16px",display:"flex"},children:[$>0&&(0,t.jsx)("button",{type:"button",style:{width:"24px",height:"24px",borderRadius:"16px",background:"#141B24",border:"none",marginRight:"8px"},onClick:e=>{$<=0||_(e=>e-1)},children:(0,t.jsx)(m.I,{style:{width:"100%",height:"16px"},src:g.pO})}),(0,t.jsxs)("span",{style:{width:"60px",height:"24px",background:"#141B24",borderRadius:"30px",color:"white",fontWeight:"bold",fontSize:"14px",lineHeight:"100%",padding:"5px 10px",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:[$+1," / ",G.length]})]})]}),(0,t.jsx)("b",{children:"Which room is this?"}),(0,t.jsx)("div",{style:{fontSize:14,color:"#454F5C",textAlign:"justify"},children:'Hint: Use numbers to group photos of the same room. (e.g., 2 images of the same living room = "Living room 1" for both; 2 images of different bedrooms = "Bedroom 1" and "Bedroom 2")'}),(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,paddingTop:8},children:S.map(e=>(0,t.jsx)(x.q,{groupName:"rdo",id:e.value,value:e.value,onChange:()=>{F(e.value)},checked:Q===e.value,label:e.description},e.value))})]}),(0,t.jsx)("div",{style:{display:"flex",flex:1,height:1,borderTop:s.Bx,marginTop:16}}),(0,t.jsx)("div",{style:{padding:16},children:(0,t.jsx)(s.$J,{size:"lg",fullWidth:!0,disabled:V.loading||R.loading,children:"Save and continue"})})]})]})]})}},71480:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDEiIHZpZXdCb3g9IjAgMCA0MCA0MSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDAuNjY2MDE2KSIgZmlsbD0iI0Y2RjlGRiIvPgo8bWFzayBpZD0icGF0aC0xLWluc2lkZS0xIiBmaWxsPSJ3aGl0ZSI+CjxyZWN0IHg9IjEiIHk9IjQuNjY2MDIiIHdpZHRoPSIzOCIgaGVpZ2h0PSIzMiIg
1cng9IjEiLz4KPC9tYXNrPgo8cmVjdCB4PSIxIiB5PSI0LjY2NjAyIiB3aWR0aD0iMzgiIGhlaWdodD0iMzIiIHJ4PSIxIiBzdHJva2U9IiMxRjZGRkYiIHN0cm9rZS13aWR0aD0iMi40IiBzdHJva2UtbGluZWNhcD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C44IDBsMy42IDEwLjloMTEuNGwtOS4zIDYuNyAzLjYgMTAuOS05LjMtNi43LTkuMyA2LjdMMTI0IDU3bC05LjMtNi43aDExLjV6bTY0LjkgMGwzLjUgMTAuOWgxMS41bC05LjMgNi43IDMuNSAxMC45LTkuMi02LjctOS4zIDYuNyAzLjUtMTAuOS05LjItNi43SDE5MXptNjQuOCAwbDMuNiAxMC45aDExLjRsLTkuMyA2LjcgMy42IDEwLjktOS4zLTYuNy05LjIgNi43IDMuNS0xMC45LTkuMy02LjdIMjU2em02NC45IDBsMy41IDEwLjloMTEuNUwzMzAgNTdsMy41IDEwLjktOS4yLTYuNy05LjMgNi43IDMuNS0xMC45LTkuMi02LjdoMTEuNHpNMzIuNCA2Ni45TDM2IDc4aDExLjRsLTkuMiA2LjcgMy41IDEwLjktOS4zLTYuOC05LjIgNi44IDMuNS0xMS05LjMtNi43SDI5em02NC45IDBsMy41IDExaDExLjVsLTkuMyA2LjcgMy41IDEwLjktOS4yLTYuOC05LjMgNi44IDMuNS0xMS05LjItNi43aDExLjR6bTY0LjggMGwzLjYgMTFIMTc3bC05LjIgNi43IDMuNSAxMC45LTkuMy02LjgtOS4yIDYuOCAzLjUtMTEtOS4zLTYuN2gxMS41em02NC45IDBsMy41IDExSDI0MmwtOS4zIDYuNyAzLjYgMTAuOS05LjMtNi44LTkuMyA2LjggMy42LTExLTkuMy02LjdoMTEuNHptNjQuOCAwbDMuNiAxMWgxMS40bC05LjIgNi43IDMuNSAxMC45LTkuMy02LjgtOS4yIDYuOCAzLjUtMTEtOS4yLTYuN2gxMS40em02NC45IDBsMy41IDExaDExLjVsLTkuMyA2LjcgMy42IDEwLjktOS4zLTYuOC05LjMgNi44IDMuNi0xMS05LjMtNi43aDExLjV6TTY0LjkgOTQuNWwzLjUgMTAuOWgxMS41bC05LjMgNi43IDMuNSAxMS05LjItNi44LTkuMyA2LjcgMy41LTEwLjktOS4yLTYuN2gxMS40em02NC44IDBsMy42IDEwLjloMTEuNGwtOS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05LjMgNi43IDMuNiAxMS05LjMtNi44LTkuMyA2LjcgMy42LTEwLjktOS4zLTYuN2gxMS41em02NC45IDBsMy41IDEwLjloMTEuNWwtOS4zIDYuNyAzLjUgMTEtOS4yLTYuOC05LjMgNi43IDMuNS0xMC45LTkuMi02LjdIMTkxem02NC44IDBsMy42IDEwLjloMTEuNGwtOS4yIDYuNyAzLjUgMTEtOS4zLTYuOC05LjIgNi43IDMuNS0xMC45LTkuMy02LjdIMjU2em02NC45IDBsMy41IDEwLjloMTEuNWwtOS4zIDYuNyAzLjUgMTEtOS4yLTYuOC05LjMgNi43IDMuNS0xMC45LTkuMi02LjdoMTEuNHpNMzIuNCAyMzIuNGwzLjYgMTAuOWgxMS40bC05LjIgNi43IDMuNSAxMC45LTkuMy02LjctOS4yIDYuNyAzLjUtMTEtOS4zLTYuN0gyOXptNjQuOSAwbDMuNSAxMC45aDExLjVMMTAzIDI1MGwzLjYgMTAuOS05LjMtNi43LTkuMyA2LjcgMy42LTExLTkuMy02LjdoMTEuNHptNjQuOCAwbDMuNiAxMC45SDE3N2wtOSA2LjcgMy41IDEwLjktOS4zLTYuNy05LjIgNi43IDMuNS0xMS05LjMtNi43aDExLjV6bTY0LjkgMGwzLjUgMTAuOUgyNDJsLTkuMyA2LjcgMy42IDEwLjktOS4zLTYuNy05LjMgNi43IDMuNi0xMS05LjMtNi43aDExLjR6bTY0LjggMGwzLjYgMTAuOWgxMS40bC05LjIgNi43IDMuNSAxMC45LTkuMy02LjctOS4yIDYuNyAzLjUtMTEtOS4yLTYuN2gxMS40em02NC45IDBsMy41IDEwLjloMTEuNWwtOS4zIDYuNyAzLjYgMTAuOS05LjMtNi43LTkuMyA2LjcgMy42LTExLTkuMy02LjdoMTEuNXoiIHRyYW5zZm9ybT0ic2NhbGUoLjkzNzUpIi8+CiAgPC9nPgo8L3N2Zz4K"},75188:(e,n,i)=>{"use strict";i.d(n,{U:()=>g});var l=i(50979),t=i(25963),d=i(47810),o=i.n(d),a=i(80111),s=i.n(a),r=i(50369);let g=t.memo(e=>{let{name:n,size:i,title:t,...d}=e,a=null!=t||null!=d["aria-label"]||null!=d["aria-labelledby"],{"aria-hidden":g,focusable:u,role:c,...m}=d;return(0,l.jsxs)("svg",{focusable:a?"false":null!=u?u:"false","aria-hidden":a?void 0:null==g||g,role:a?"img":c,...m,className:o()(s().icon,s()[n],i&&s()[i]),children:[null!=t&&(0,l.jsx)("title",{children:t}),(0,l.jsx)("use",{href:"".concat(r.J,"#").concat(n)})]})});g.displayName="SnapprIcon"},76741:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NSAzOSI+PHBhdGggZmlsbD0iI0VEMjkzOSIgZD0iTTAgMGg0NXYzOUgweiIvPjxwYXRoIGZpbGw9IiNGQUUwNDIiIGQ9Ik0wIDBoMzB2MzlIMHoiLz48cGF0aCBkPSJNMCAwaDE1djM5SDB6Ii8+PC9zdmc+"},80111:e=>{e.exports={icon:"SnapprIcon_icon__LSbVd",camera:"SnapprIcon_camera__zZ_Op","information-circle":"SnapprIcon_information-circle__waFTA","flag-at":"SnapprIcon_flag-at__595_D","flag-au":"SnapprIcon_flag-au__jWj_X","flag-be":"SnapprIcon_flag-be___l5SA","flag-ca":"SnapprIcon_flag-ca___lcFW","flag-ch":"SnapprIcon_flag-ch__f68EW","flag-de":"SnapprIcon_flag-de__v5j3y","flag-es":"SnapprIcon_flag-es__PQYQB","flag-fr":"SnapprIcon_flag-fr__ATFhm","flag-gb":"SnapprIcon_flag-gb__hcr9Q","flag-ie":"SnapprIcon_flag-ie__DETzE","flag-il":"SnapprIcon_flag-il__XuWqZ","flag-it":"SnapprIcon_flag-it__dCYQQ","flag-nl":"SnapprIcon_flag-nl__Mpcet","flag-nz":"SnapprIcon_flag-nz__yHAJO","flag-ph":"SnapprIcon_flag-ph__aPc5r","flag-sg":"SnapprIcon_flag-sg__CDVxi","flag-us":"SnapprIcon_flag-us__JXRuZ",warning:"SnapprIcon_warning__amtN2",md:"SnapprIcon_md__nlt0v",fill:"SnapprIcon_fill__31Amb"}},86847:(e,n,i)=>{"use strict";i.d(n,{L:()=>W});var l=i(50979),t=i(46479),d=i.n(t);i(25963);var o=i(92954),a=i(94137),s=i(4088),r=i(53181),g=i.n(r),u=i(39e3),c=i.n(u),m=i(76741),x=i.n(m),b=i(56078),j=i.n(b),p=i(34971),I=i.n(p),v=i(22359),y=i.n(v),h=i(96750),M=i.n(h),S=i(11398),N=i.n(S),f=i(29113),D=i.n(f),L=i(53232),T=i.n(L),J=i(56397),A=i.n(J),C=i(23237),z=i.n(C),w=i(8028),k=i.n(w),E=i(47430),P=i.n(E),B=i(29794),Z=i.n(B),R=i(14244),O=i.n(R),Y=i(74558),U=i.n(Y);let G=[{code:"AT",name:"AT",flag:g()},{code:"AU",name:"AU",flag:c()},{code:"BE",name:"BE",flag:x()},{code:"CA",name:"CA",flag:j()},{code:"CH",name:"CH",flag:I()},{code:"DE",name:"DE",flag:y()},{code:"ES",name:"ES",flag:M()},{code:"FR",name:"FR",flag:N()},{code:"GB",name:"GB",flag:D()},{code:"IE",name:"IE",flag:T()}
1,{code:"IL",name:"IL",flag:A()},{code:"IT",name:"IT",flag:z()},{code:"NL",name:"NL",flag:k()},{code:"NZ",name:"NZ",flag:P()},{code:"PH",name:"PH",flag:Z()},{code:"SG",name:"SG",flag:O()},{code:"US",name:"US",flag:U()}],W=e=>{let{label:n,labelLarge:i=!1,bottomMessage:t,iconImg:r,disabled:g,error:u,size:c="md",style:m,inputRef:x,country:b,setCountry:j,errorsOnTop:p=!1,optional2:I=!1,fullWidth:v=!1,...y}=e,h=G.find(e=>e.code===b)||null,{id:M}=(0,s._)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.l1,{iconImg:r,label:n,labelLarge:i,id:M,disabled:g,optional2:I,error:p&&u}),(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"row"},className:"jsx-dc5ddd9c990625ed",children:[(0,l.jsx)("div",{className:"jsx-dc5ddd9c990625ed",children:(0,l.jsxs)(a.W1,{children:[(0,l.jsxs)(a.IU,{style:{background:"none",padding:0,width:70,display:"flex",justifyContent:"center",alignItems:"center",height:50,border:"1px solid #e8edf5",borderRight:"none",borderRadius:2},className:"data-reach-menu-button",disabled:g,type:"button",children:[h?(0,l.jsx)("img",{src:h.flag,alt:h.name,style:{width:20,height:"auto",marginRight:2},className:"jsx-dc5ddd9c990625ed"}):(0,l.jsx)("span",{style:{marginRight:2},className:"jsx-dc5ddd9c990625ed",children:b}),(0,l.jsx)("span",{"aria-hidden":!0,className:"jsx-dc5ddd9c990625ed",children:"â¾"})]}),(0,l.jsx)(a.cO,{className:"data-reach-country-list",children:G.map(e=>(0,l.jsx)(a.Dr,{style:{display:"flex",justifyContent:"center",alignItems:"center"},className:"data-reach-country-item",onSelect:()=>{j(e.code)},children:(0,l.jsx)("img",{src:e.flag,alt:e.name,style:{width:20,height:40},className:"jsx-dc5ddd9c990625ed"})},e.code))})]})}),(0,l.jsx)(o.pd,{label:n,type:"tel",...y,disabled:g,hideLabel:!0,bottomMessage:t,iconImg:r,borderError:null!=u,size:c,inputRef:x,fullWidth:v})]}),!p&&null!=u&&(0,l.jsx)("div",{style:{color:o.Gh,fontSize:12,marginBottom:17},className:"jsx-dc5ddd9c990625ed",children:u}),(0,l.jsx)(d(),{id:"dc5ddd9c990625ed",children:".data-reach-country-list{display:block;white-space:nowrap;border:solid 1px#e8edf5;background:#fff;outline:none;width:70px;font-size:85%;border-radius:2px;margin-top:-1px;max-height:200px;overflow:scroll}.data-reach-menu-button:focus{outline:none}.data-reach-country-item{cursor:pointer;display:block;color:inherit;font:inherit;text-decoration:initial;padding:5px 20px}.data-reach-country-item:focus{outline:none}"})]})}},92614:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDEiIHZpZXdCb3g9IjAgMCA0MCA0MSIgZmlsbD0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.svg"}}]);
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.