PageSourceSearch

https://www.interflora.co.uk/assets/uk_prd_IFCT-9173_PDP-Tabbed-Mo…/order-confirmation-af7ca07e7f1d7e3f.js

js interflora.co.uk collected 2026-10-01 12:15:51 UTC 13,585 bytes, 10 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c018db98-1aee-4fd6-a134-99b6f885f5b7",e._sentryDebugIdIdentifier="sentry-dbid-c018db98-1aee-4fd6-a134-99b6f885f5b7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2246],{7234:(e,r,t)=>{"use strict";t.d(r,{n:()=>d});var s=t(66043),a=t(61614),n=t(68070),o=t(52541),i=t(61643),l=t(74171),c=t(10945);function d(e,r){var t=(0,c.m)(null==r?void 0:r.client);(0,i.D$)(e,i.KG.Mutation);var d=a.useState({called:!1,loading:!1,client:t}),u=d[0],p=d[1],m=a.useRef({result:u,mutationId:0,isMounted:!0,client:t,mutation:e,options:r});Object.assign(m.current,{client:t,options:r,mutation:e});var g=a.useCallback(function(e){void 0===e&&(e={});var r=m.current,t=r.options,a=r.mutation,i=(0,s.Cl)((0,s.Cl)({},t),{mutation:a}),c=e.client||m.current.client;m.current.result.loading||i.ignoreResults||!m.current.isMounted||p(m.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:c});var d=++m.current.mutationId,u=(0,n.l)(i,e);return c.mutate(u).then(function(r){var t,s,a=r.data,n=r.errors,i=n&&n.length>0?new l.K4({graphQLErrors:n}):void 0,g=e.onError||(null==(t=m.current.options)?void 0:t.onError);if(i&&g&&g(i,u),d===m.current.mutationId&&!u.ignoreResults){var h={called:!0,loading:!1,data:a,error:i,client:c};m.current.isMounted&&!(0,o.L)(m.current.result,h)&&p(m.current.result=h)}var y=e.onCompleted||(null==(s=m.current.options)?void 0:s.onCompleted);return i||null==y||y(r.data,u),r}).catch(function(r){if(d===m.current.mutationId&&m.current.isMounted){var t,s={loading:!1,error:r,data:void 0,called:!0,client:c};(0,o.L)(m.current.result,s)||p(m.current.result=s)}var a=e.onError||(null==(t=m.current.options)?void 0:t.onError);if(a)return a(r,u),{data:void 0,errors:r};throw r})},[]),h=a.useCallback(function(){if(m.current.isMounted){var e={called:!1,loading:!1,client:t};Object.assign(m.current,{mutationId:0,result:e}),p(e)}},[]);return a.useEffect(function(){return m.current.isMounted=!0,function(){m.current.isMounted=!1}},[]),[g,(0,s.Cl)({reset:h},u)]}},18336:(e,r,t)=>{"use strict";t.d(r,{s:()=>i,w:()=>l});var s=t(6029),a=t(6772),n=t.n(a),o=t(76481);function i(e){return(0,o.R5)("C0004")&&"uk"===e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n(),{id:"ttd-universal-pixel-script",src:"https://js.adsrvr.org/up_loader.3.0.0.js",async:!0}),(0,s.jsx)(n(),{id:"ttd-universal-pixel-init",dangerouslySetInnerHTML:{__html:`
2            window.ttdConversionEventsLayer = window.ttdConversionEventsLayer || [];
3             ttdConversionEvents("init", {
4                advertiserId: "50rxkgb",
5                pixelIds: ${JSON.stringify(["2qb8ls6"])}
6            });
7            function ttdConversionEvents() {
8                window.ttdConversionEventsLayer.push(arguments);
9            }
10          `}})]}):null}function l(e,r){if(!("u"<typeof globalThis)&&(0,o.R5)("C0004"))if(globalThis?.ttdConversionEvents)try{globalThis.ttdConversionEvents("event",{order_id:e,value:r})}catch(e){console.log("Universal Pixel: Error tracking conversion:",e)}else console.log("Universal Pixel: ttdConversionEvents not available or C0004 not accepted")}},30427:(e,r,t)=>{"use strict";t.d(r,{b:()=>i});var s=t(76481),a=t(34775),n=t(81278),o=t(55729);let i=()=>{let e=(0,o.useContext)(a.A),r=(0,n.useRouter)(),t=r?.asPath?.split("?")[0],i=(0,s.JL)();return{saveUserJourneyAnalytics:r=>{let{isSuccessful:s=!1,journeyType:a,email:n}=r;switch(a){case"GUEST":e.continueAsGuest();break;case"LOGIN":e.signInJourney(s,t),n&&window.ometria&&i&&window.ometria.identify(n);break;case"REGISTER":e.createAnAccount(s),n&&window.ometria&&i&&window.ometria.identify(n)}}}}},38409:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});var s=t(89112),a=t(6029);let n=(0,s.A)((0,a.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},41340:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});var s=t(89112),a=t(6029);let n=(0,s.A)((0,a.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},78050:(e,r,t)=>{"use strict";t.d(r,{A:()=>l});var s=t(6029),a=t(76667),n=t(80575),o=t(13939);let i=(0,n.n9)()(e=>({container:{display:"flex",flexDirection:"row"},imageContainer:{marginRight:o.YK.small,width:"72px"},content:{flex:1},name:Object.assign(Object.assign(Object.assign({},e.typography.small_regular),e.typographySpacing.medium_bold_lg),{color:o.Tj.grey.grey6}),price:Object.assign(Object.assign(Object.assign({},e.typography.small_bold),e.typographySpacing.none),{[e.breakpoints.up("md")]:Object.assign({},e.typographySpacing.small_bold_sm)}),quantity:Object.assign(Object.assign(Object.assign({},e.typography.small_regular),e.typographySpacing.none),{color:o.Tj.grey.grey6})})),l=e=>{var r,t;let{lineItem:n}=e,{classes:o}=i();return(0,s.jsxs)("div",{className:o.container,children:[(0,s.jsx)(a.A,{classNames:{container:o.imageContainer},altText:null==(r=null==n?void 0:n.images[0])?void 0:r.altText,imageUrl:null==(t=null==n?void 0:n.images[0])?void 0:t.url,maxWidth:72}),(0,s.jsxs)("div",{className:o.content,children:[(0,s.jsx)("div",{className:o.name,children:n.name}),(0,s.jsx)("div",{className:o.price,children:(0,s.jsx)("span",{children:n.price.formatted})}),(0,s.jsxs)("div",{className:o.quantity,children:["Quantity: ",n.quantity]})]})]})}},79974:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/order-confirmation",function(){return t(92734)}])},92734:(e,r,t)=>{"use strict";t.r(r),t.d(r,{__N_SSG:()=>j,default:()=>x});var s=t(6029),a=t(47740),n=t(20148),o=t(7234),i=t(81825),l=t(76481),c=t(83778),d=t(81278),u=t(55729),p=t(50350),m=t(75932),g=t(11984),h=t(34775),y=t(30427),b=t(18336);let v=()=>{let e=(0,d.useRouter)().query.orderId,[r,t]=(0,u.useState)(),[a,v]=(0,u.useState)(null),[f,w]=(0,u.useState)(),[j,x]=(0,u.useState)([]),{getCustomer:E,occasions:S}=(0,u.useContext)(l.Z0),_=(0,u.useContext)(h.A),{saveUserJourneyAnalytics:R}=(0,y.b)(),A=(0,n.I)(p.us,{variables:{input:e},skip:!e,onCompleted:e=>{t((0,l.ns)(e.order))}}),C=E?.data?.customer?.id?"Logged in Order Confirmation":"Order Confirmation",[O,T]=(0,u.useState)(!1);(0,u.useEffect)(()=>{let e;if(r?.orderNumber!=null&&(e=r?.totalPrice)&&"number"==typeof e.centAmount&&"number"==typeof e.fractionDigits&&!O){let e=r.orderNumber.toString(),t=r.totalPrice.centAmount/Math.pow(10,r.totalPrice.fractionDigits);try{(0,b.w)(e,t),T(!0)}catch(e){console.error("Failed to track order conversion:",e)}}},[r,O]);let[P]=(0,o.n)(p.oP),[I]=(0,o.n)(p.ou),{refetch:k}=(0,n.I)(p.RP,{skip:!f?.length,variables:{input:{occasionReminders:f}},ssr:!1,fetchPolicy:"network-only",onCompleted:e=>{x(e.occasionRemindersExist?.occasionReminders?.filter(e=>!e.isAlreadyExist)||[])}}),N=async e=>{if(e?.occasionReminders?.length){let r=e?.occasionReminders?.map(e=>{let r=S?.find(r=>e.occasion===r.label)?.occasionReminders;return{...e,date:r?.isPredeterminedDate&&r?.preDeterminedOccasionDate?r.preDeterminedOccasionDate:e.date}});w(r);let t=await k({input:{occasionReminders:r}}),s=t?.data?.occasionRemindersExist?.occasionReminders?.filter(e=>!e.isAlreadyExist)||[];s?.length?D({occasionReminders:s.map(e=>(0,g.A)(e,["__typename","isAlreadyExist"]))}):v("occasion-reminders")}E?.refetch()},M=async e=>{try{await (0,c.ts)(e);let r=await A.refetch();t((0,l.ns)(r.data.order)),N(e)}catch(e){throw Error("There was a problem. Please try again")}},D=async e=>{try{v(""),await I({variables:{input:e}}),v("occasion-reminders"),k({input:{occasionReminders:e.occasionReminders}}).then(({data:e})=>{let r=e?.occasionRemindersExist?.occasionReminders?.filter(e=>!e.isAlreadyExist)||[];x(r)});let r=e.occasionReminders.map(e=>e.occasion);_.occasions(r,C)}catch(e){throw Error((0,m.A)(e,["graphQLErrors",0,"message"])||"There was a problem. Please try again")}},q=async e=>{try{await (0,c.mL)(e),N(e)}catch(e){throw Error(e?.message)}},L=async e=>{try{w(e)}catch(e){throw Error("There was a problem. Please try again")}},F=async e=>{try{return await P({variables:{input:e}})}catch(e){throw Error("There was a problem. Please try again")}};return!A.loading&&(0,s.jsx)(i.A,{order:r,onSubmit:M,handleSaveOccasionReminder:D,success:a,getAvailableReminders:L,remindersToDisplay:j,onSignIn:q,handleGeneratePassword:F,saveUserJourneyAnalytics:R,handleKeepShoppingBtnClick:()=>{_?.keepShoppingTracking()}})};var f=t(68972),w=t(52995),j=!0;let x=e=>{let{page:r}=e;return(0,s.jsx)(f.A,{renderGraph:e,children:(0,s.jsxs)(s.Fragment,{children:[(0,w.f)(r.components.header),(0,s.jsx)(a.A,{centreContent:"small",children:(0,s.jsx)(v,{})}),(0,w.f)(r.components.footer)]})})}},97216:(e,r,t)=>{"use strict";t.d(r,{A:()=>_,I:()=>x});var s,a,n=t(6029),o=t(55729),i=t(62022),l=t(76592),c=t(49228),d=t(41340),u=t(38409),p=t(80575),m=t(13939);let g=(0,p.n9)()(e=>({labelCompleted:Object.assign(Object.assign(Object.assign({display:"block"},e.typography.small_bold),e.typographySpacing.none),{color:e.isFlyingFlowers?m.Tj.black[700]:void 0}),requiredIndicator:{color:m.Tj.supplementary.black,marginLeft:"2px"},passwordField:{marginBottom:m.YK.small,"& .MuiIconButton-root":{color:m.Tj.supplementary.black}},alternateFlowPasswordField:{marginBottom:e.isFlyingFlowers?m.YK.xs:m.YK.small}}));var h=t(50212);let y=(0,p.n9)()((e,r,t)=>({passwordRequirements:{marginBottom:m.YK.large,[`& .${t.passwordCaption}`]:Object.assign(Object.assign(Object.assign({},e.typography.small_bold),e.typographySpacing.small_bold_lg),{color:m.Tj.supplementary.black}),"& li":{display:"flex",alignItems:"center",paddingLeft:"12px",color:m.Tj.grey.grey6,"&:before":{content:'""',borderColor:`transparent ${m.Tj.grey.grey6}`,borderStyle:"solid",borderWidth:"3px 0 3px 3px",height:0,width:0,left:"-10px",position:"relative"},[`&.${t.success}`]:{color:e.statusColors.success.base},[`&.${t.error}`]:{color:e.statusColors.error.base}}},passwordCaption:{},label:Object.assign(Object.assign({},e.typography.small_regular),{color:m.Tj.grey.grey6,"&:first-letter":{textTransform:"uppercase"},[`&.${t.success}`]:{color:e.statusColors.success.base},[`&.${t.error}`]:{color:e.statusColors.error.base}}),success:{},error:{}})),b=({signUp:e,requirements:r})=>{let{classes:t}=y();return(0,n.jsxs)("div",{className:t.passwordRequirements,children:[(0,n.jsx)("p",{className:t.passwordCaption,children:e?"Passwords should include:":"Your new password should include:"}),(0,n.jsx)("ul",{children:r.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)("span",{className:(0,h.A)(t.label,"success"===e.status&&t.success,"error"===e.status&&t.error),children:e.label})},e.label))})]})};
10var v=t(75932),f=t(45832),w=t(76063),j=t(25282);(s=a||(a={})).SET_REQUIREMENTS="SET_REQUIREMENTS",s.SET_SHOW_PASSWORD="SET_SHOW_PASSWORD";let x=j.Yj().test("character-length","Please enter at least 8 characters, less than 50",e=>!!e&&e.length>=8&&e.length<=49).matches(/\d/,"Please enter at least 1 number").matches(/[A-Z]/,"Please enter at least 1 uppercase character").matches(/[a-z]/,"Please enter at least 1 lowercase character"),E={requirements:[{label:"at least 8 characters, less than 50",status:""},{label:"at least 1 number",status:""},{label:"at least 1 uppercase character",status:""},{label:"at least 1 lowercase character",status:""}],showPassword:!1},S=(e,r)=>{switch(r.type){case a.SET_REQUIREMENTS:return Object.assign(Object.assign({},e),{requirements:r.payload});case a.SET_SHOW_PASSWORD:return Object.assign(Object.assign({},e),{showPassword:r.payload});default:throw Error("Action type not identified")}},_=({id:e,name:r,label:t,placeholder:s,newPassword:p,signUp:m,fullWidth:y,required:j,isAlternateFlowModal:x=!1,hideVisibilityIcon:_=!1})=>{let R=(0,w.j7)(),[A,C]=(0,o.useReducer)(S,E),O=(0,o.useRef)(!1),T=(0,o.useRef)(A.requirements),{classes:P}=g();return(0,o.useEffect)(()=>{let e=(0,v.A)(null==R?void 0:R.values,r),t=(0,v.A)(null==R?void 0:R.touched,r),s=(0,v.A)(null==R?void 0:R.errors,r,[]);if(p){if(!O.current&&e)O.current=!0;else if(O.current||!e&&s.length&&t){let r=A.requirements.map(r=>({label:r.label,status:s.some(e=>e.includes(r.label))||!e?"error":"success"}));(0,f.A)(T.current,r)||(T.current=r,C({type:a.SET_REQUIREMENTS,payload:r}))}}},[null==R?void 0:R.errors,null==R?void 0:R.values,null==R?void 0:R.touched,r,p,A.requirements]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,h.A)(P.passwordField,x&&P.alternateFlowPasswordField),children:(0,n.jsx)(i.A,{id:e,name:e||r,label:t,placeholder:s,required:j,fullWidth:y,hideError:p,hideSuccessIcon:!0,type:A.showPassword?"text":"password",endAdornment:_?void 0:(0,n.jsx)(l.A,{position:"end",children:(0,n.jsx)(c.A,{"aria-label":"toggle password visibility",onClick:()=>{C({type:a.SET_SHOW_PASSWORD,payload:!A.showPassword})},onMouseDown:e=>{e.preventDefault()},size:"large",children:A.showPassword?(0,n.jsx)(d.A,{}):(0,n.jsx)(u.A,{})})})})}),p&&(0,n.jsx)(b,{signUp:m,requirements:A.requirements})]})}}},e=>{e.O(0,[988,3172,5826,4110,1825,636,6593,8792],()=>e(e.s=79974)),_N_E=e.O()}]);

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.