1import{f as T,E as I,j as b,u}from"./4-vendor-DQt2o1hq.js";import{R as a,r as C}from"./0-vendor-react-CS_euKAN.js";import{kP as k,aw as x,az as D,x as A,A as P,E as v,kR as O,dn as R,iV as M,n as B,kO as w,a8 as N,T as W}from"./index-vb-aMdNT.js";import{P as F,T as H}from"./product-lists-tabs-DRAQFKEj.js";import{V as L,U as K,F as $}from"./2-vendor-ecommerce-ihgBOKSo.js";import{i as z,I as U}from"./instant-shop-modal-7Xiffo-o.js";import"./1-vendor-moment-BH_Rs02A.js";import"./3-vendor-optimizely-react-sdk-b0w5CiyS.js";import"./index-C9yLSdS7.js";import"./use-is-regulars-ff-enabled-ta1fufNa.js";const V=e=>{const t=T.c(5),{onAddToBasket:s}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.createElement(k,{className:"salt-m-r--4"},a.createElement(x,{name:"orders_placed",width:24,height:24})),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.createElement(L,{condensed:!0},a.createElement(D,{align:"center",wrap:"nowrap",className:"salt-p-y--2 salt-p-x--4 .sm:salt-p-x--8"},r,a.createElement(K,{size:"l","data-test":"instant-shop-box-message"},a.createElement(A,{id:"instant.shop.modal.box.message"})))),t[1]=n):n=t[1];let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=a.createElement(A,{id:"instant.shop.modal.add.to.cart"}),t[2]=o):o=t[2];let l;return t[3]!==s?(l=a.createElement(C.Fragment,null,n,a.createElement(P,{intent:"action",fill:!0,"data-test":"instant-shop-add-to-basket",onClick:s,className:"salt-m-t--2"},o)),t[3]=s,t[4]=l):l=t[4],l},j=()=>{const e=T.c(21),{sendWAEvent:t}=O(),s=I(),r=b(),n=u(R),o=u(M);let l;e[0]!==o||e[1]!==r||e[2]!==n||e[3]!==t?(l=()=>{r(B.analyticsEvent({type:w.SMART_SHOP_ADD_TO_CART_CLICKED,description:z.SMART_SHOP_ADD_TO_CART_CLICKED,pageEventAttributes:{orderId:n,checkoutCorrelationId:o}}));const y={eventType:"pageEvent",pageEventAttributes:{...o&&{checkoutCorrelationId:o},...n&&{orderId:n}},pageEventDescription:"User clicked on add to cart button for smart shop",pageEventType:"SMART_SHOP_ADD_TO_CART_CLICKED"};t(y),r(N.openModal("instantShop"))},e[0]=o,e[1]=r,e[2]=n,e[3]=t,e[4]=l):l=e[4];const _=l;let p;e[5]!==s?(p=s.formatMessage("instant.shop.page.heading"),e[5]=s,e[6]=p):p=e[6];const S=p;let d;e[7]!==s?(d=s.formatMessage("instant.shop.page.description"),e[7]=s,e[8]=d):d=e[8];const g=d;let E;e[9]===Symbol.for("react.memo_cache_sentinel")?(E=a.createElement(W,{title:"instant.shop.page.title"}),e[9]=E):E=e[9];let c;e[10]!==S?(c={as:"h1",text:S},e[10]=S,e[11]=c):c=e[11];let i;e[12]!==_?(i=a.createElement(V,{onAddToBasket:_}),e[12]=_,e[13]=i):i=e[13];let m;e[14]!==g||e[15]!==c||e[16]!==i?(m=a.createElement($,{icon:"smart_cart",description:g,title:c,className:"salt-m-t--8 salt-p-x--4 sm:salt-p-x--0",action:i}),e[14]=g,e[15]=c,e[16]=i,e[17]=m):m=e[17];let h;e[18]===Symbol.for("react.memo_cache_sentinel")?(h=a.createElement(U,{showOnlyProgressIndicator:!0}),e[18]=h):h=e[18];let f;return e[19]!==m?(f=a.createElement(F,{activeTab:H.INSTANT_SHOP},E,m,h),e[19]=m,e[20]=f):f=e[20],f},se=()=>{const e=T.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=a.createElement(v,{type:"InstantShop::route"},a.createElement(j,null)),e[0]=t):t=e[0],t};export{se as InstantShop}; 2//# sourceMappingURL=instant-shop-DaNjC3-f.js.map
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.