1import{u as ee,a as ae,P as te,J as re,D as b,L as se,C as ie,c as l,M as oe,R as f,d as ne,e as E,f as ce,h as le,i as de,H as pe,j as D,k as ue,l as I,m as me,n as xe,I as he,o as ge,p as O,q as je,r as h,s as _e,t as M,v as Ce,B as Se,x as B,S as L,y as N,A as Te,z as Pe,E as Ae,F as ye,V as ke,W as we,G as ve,w as Re,b as be}from"./withAvailableStock.CF-ZjHem.chunk.js";import{s as fe,u as Ee,a as De,c as Ie,r as g,e as Oe,d as Me,j as e}from"./vendor.C--JXtB9.chunk.js";import{S as Be,a as Le,M as Ne,b as Ue}from"./Guaranteed.CpPP40qQ.chunk.js";import{u as ze,b as Fe,e as Ve,C as We,B as $e,T as Ge}from"./TopBar.DUnuj5ek.chunk.js";import{O as Ye,P as U}from"./ApiUtils.DUU7R7v4.chunk.js";import{P as He,u as qe,a as u,b as Qe,_ as j}from"./Analytics.CnEGCNDc.chunk.js";import{t as Je,g as z,a as Ke}from"./cartAnalytics.B-2lLJpd.chunk.js";import{g as Xe}from"./artCollectionService.BVN4up7j.chunk.js";import{C as _}from"./Carousel.LV3DYD22.chunk.js";import{A as Ze}from"./consts.CRkbZjcc.chunk.js";import{F as ea}from"./FooterSection.B7lbcMM5.chunk.js";import{P as aa,W as ta}from"./HomePageUI.styles.BKCvTGAr.chunk.js";import{T as ra}from"./TopBarBanner.Di_vltdx.chunk.js";import{g as sa}from"./GenericBannerManager.CmyPh7uU.chunk.js";import"./AvailableStockProvider.CaxOLRcf.chunk.js";import"./Button.DjtaW9Dr.chunk.js";import"./tiles.BqB8v48C.chunk.js";import"./SplashSpinner.BhtjwGg_.chunk.js";import"./GdprMananger.CXWOkyzF.chunk.js";import"./Button.BKqG2t-w.chunk.js";function ia(){const F=fe(),{t:a}=Ee(),d=De(),{artwork:t,seoData:m,locale:V}=Ie(),{generateArtSection:W}=ee(),n=ze("md"),{setTileSize:$,setTileFrame:G,tileDescription:Y,tileSize:s,tileMaterial:i,tileMaterialDropdownItems:H,tileColor:o,tilePrice:c,tileSizes:q,availableTileSizes:Q,formatTilePrice:C,analyticsPayload:p,handleVideoSwipe:J,handlePhotoSwipe:S}=ae(te.ART,{artworkUid:t.id}),[T,K]=g.useState(!1),{pricingData:X}=Fe(),x={value:c,currency:X.currency},P="Art",A=t.title,y=He.CLASSIC;qe(()=>{K(Ve.passedAnyOnboarding()),u.trackScreenView(Qe.ART_PRODUCT_PAGE,p),Je({id:z({artworkId:t.id,tileSize:s,materialType:i,frameColor:o}),totalPrice:x,productType:y,contentCategory:P,contentName:A})});const k=g.useMemo(()=>re({publicId:encodeURIComponent(t.publicId),tileMaterial:i,tileColor:o,tileSize:s}),[t.publicId,i,o,s]),w=g.useCallback(()=>{u.track(j.PRODUCT_PAGE_ADD_ITEM_TAPPED,p),Ke({orderTrackingData:{},orderItems:[{itemId:z({artworkId:t.id,tileSize:s,materialType:i,frameColor:o})}],value:x.value,currency:x.currency,productType:y,contentParams:{contentCategory:P,contentName:A}});const r=new URLSearchParams({size:s,material:i,color:o,isFromProductPage:"true"}),R={state:{files:[{url:Xe(t),tileContent:Oe.TILE_CONTENT.ART_PHOTO,artwork:t}],cloudServiceName:We.REMOTE}};d(T?`${U}?${r.toString()}`:`${Ye}?redirectTo=${U}?${encodeURIComponent(r.toString())}`,R)},[d,t,s,i,o,T]),Z=Me("(max-height: 700px)"),v=()=>{u.track(j.PRODUCT_PAGE_BROWSE_ART_TAPPED,{source:"product_page",...p}),d("/collection/browse",{state:{artworks:[t]}})};return e.jsxs(e.Fragment,{children:[e.jsx($e,{color:F.colors.white}),e.jsx(ra,{bannerManagerInstance:sa}),e.jsx(b,{children:e.jsx(Ge,{backgroundColor:"white"})}),e.jsxs(se,{children:[e.jsx(b,{children:e.jsx(ie,{children:e.jsx(_,{showNavigation:!0,slides:k,autoplay:!1,showPreviewThumbs:!Z,onSlideChange:r=>S(r)})})}),e.jsxs("div",{children:[e.jsxs(l,{padding:"24px 20px 0 20px",children:[e.jsx(oe,{children:e.jsxs(f,{inline:!0,marginBottom:"6px",children:[e.jsx(ne,{value:5,precision:.5,readOnly:!0}),e.jsxs(E,{children:["4.9",e.jsx(ce,{children:"·"}),a("product_page.reviews_count_mobile")]})]})}),e.jsx(le,{children:(t==null?void 0:t.title)??(m==null?void 0:m.h1)}),n?e.jsx(de,{children:Y}):e.jsx(pe,{children:e.jsxs(D,{children:[e.jsx(ue,{children:c&&C(c)}),e.jsx(I,{children:a("product_page.price_each")})]})}),n?e.jsxs(e.Fragment,{children:[e.jsx(me,{children:a("product_page.art_product.description")}),e.jsxs(f,{children:[e.jsx(xe,{value:5,precision:.5,readOnly:!0}),e.jsxs(E,{children:["4.9/5 ",a("product_page.reviews_count")]})]}),e.jsxs(D,{children:[c&&C(c)," ",e.jsx(I,{children:a("product_page.price_each")})]})]}):e.jsx(e.Fragment,{children:e.jsx(he,{children:e.jsxs(ge,{children:[e.jsxs(O,{children:[e.jsx(Be,{}),e.jsx("div",{children:a("product_page.art_product.description_mobile.no_nails")})]}),e.jsxs(O,{children:[e.jsx(Le,{}),e.jsx("div",{children:a("product_page.art_product.description_mobile.satisfaction")})]})]})})})]}),!n&&e.jsx(l,{children:e.jsx(_,{square:!0,showNavigation:!0,slides:k,autoplay:!1,circular:!1,onSlideChange:r=>{S(r)}})}),e.jsxs(l,{padding:"0 20px 24px 20px",children:[n?e.jsx(je,{}):e.jsx(h,{marginBlock:"24px 12px",children:a("product_page.choose_your_own_style")}),e.jsxs(_e,{children:[e.jsx(M,{children:a("product_page.controls.frame_style")}),e.jsx(M,{children:a("product_page.controls.frame_size")}),e.jsx(Ne,{items:H,value:[i,o],onChange:r=>G(Ce(r))}),e.jsx(Ue,{items:q,value:s,onChange:$,availableItems:Q})]}),n&&e.jsxs(Se,{children:[e.jsx(B,{variant:"contained",size:"large",onClick:w,"data-testid":"product-page-cta-btn",children:a("product_page.controls.art.start")}),e.jsx(L,{onClick:v,children:a("product_page.controls.art.browse")})]}),e.jsx(h,{children:a("product_page.magnetic_hanging.title")}),e.jsx(N,{children:a("product_page.magnetic_hanging.description")}),e.jsx(aa,{children:e.jsx(l,{marginBlock:"30px 60px",children:e.jsx(_,{dots:"progress",showNavigation:!1,slides:Te.ART,visibleAltText:!0,aspectRatio:"9/5",onSlideChange:r=>J(r)})})}),e.jsx(h,{children:a("product_page.community.title")}),e.jsx(N,{children:a("product_page.community.description")}),e.jsx(l,{marginBlock:"24px 60px",children:e.jsx(Pe,{reviews:Ae,onClick:r=>{u.track(j.PRODUCT_PAGE_LOAD_MORE_REVIEWS_TAPPED,{index:r,...p})}})}),e.jsx(ye,{faqs:Ze}),e.jsx(ke,{...W({locale:V,artworkId:t.id,artworkTitle:t.title})})]})]}),!n&&e.jsxs(we,{exit:{translateY:75},initial:{translateY:75},animate:{translateY:0},transition:{translateY:{duration:.2}},children:[e.jsx(L,{style:{minWidth:"unset"},onClick:v,children:a("product_page.controls.art.browse")}),e.jsx(B,{style:{minWidth:"unset"},variant:"contained",size:"large",onClick:w,children:a("product_page.controls.art.start")})]})]}),e.jsx(ve,{children:e.jsx(ta,{children:e.jsx(ea,{})})})]})}const wa=be,va=Re(ia);
1export{va as default,wa as meta}; 2//# sourceMappingURL=_locale.art._artworkId.(_variant).CzWi_dpB.main.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.