1"use strict";(globalThis.webpackChunkextract_css=globalThis.webpackChunkextract_css||[]).push([["18654"],{545492:(function(H,m,t){t.d(m,{Z:()=>st});var r=t(966432),O=t.n(r),e=t(436814),D=t(770528),I=t(805077),a=t(269498),n=t(304691),c=t(755612),f=t(547611),M=t(306767),d=t(798589),p=t(182665),P=t(425738),S=t(574509),T=t(716798),o=t(437002),v=t(964730),l=t(740877),_=t(324167),h=t(401482),B=t.n(h),L=t(825946),$=t(142617);const N=t.p+"backdrop-en-US-162783645959e7a0.jpg",U=t.p+"backdrop-es-419-9636eb264cc1c76f.jpg",R=t.p+"backdrop-fr-FR-55979fcac03d2c16.jpg",g=t.p+"backdrop-it-IT-c99fbab3442ec24d.jpg",W=t.p+"backdrop-ja-JP-5145c7f2a4479c7f.jpg",b=t.p+"backdrop-pt-BR-2f8a9031a6f9fb6f.jpg",k=t.p+"backdrop-de-DE-ed9754d1fd79b93a.jpg",w=t.p+"backdrop-tr-TR-f1456a49972d5210.jpg";var s=t(954376),q=t(369711),tt=t(370370);const G="/api/v1/commerce-preferences",et={"en-US":N,"de-DE":k,"es-419":U,"fr-FR":R,"it-IT":g,"ja-JP":W,"pt-BR":b,"tr-TR":w},at=j=>{let{variant:E,...y}=j;const{T:A,t:K}=(0,$.Z)(),{colors:x,space:u,breakpoints:J}=(0,P.F)(),X=(0,tt.Z)(),[nt,ot]=e.useState(),{pushWithBackTo:rt}=(0,T.Z)(),{events:Q}=(0,o.uj)(),{shouldSeeAutomatedTaxMarketing:Z}=(0,L.Z)(),[C,Y]=(0,e.useState)(null),ct={[s.f8.PRODUCTS_AND_SERVICES]:Z&&!C,[s.f8.CONTENT_AND_MEMBERSHIPS]:Z&&!C,[s.f8.INVOICES]:Z&&!C}[E],F={[s.f8.PRODUCTS_AND_SERVICES]:"productsAndServices",[s.f8.CONTENT_AND_MEMBERSHIPS]:"digitalProducts",[s.f8.INVOICES]:"invoicesPanel"}[E],dt={[s.f8.PRODUCTS_AND_SERVICES]:K("Get product-specific tax codes and real-time tax rates for over 100 countries.",null,{project:"commerce-taxes",notes:"Automated tax promotional banner text in L2 dashboards"}),[s.f8.CONTENT_AND_MEMBERSHIPS]:K("Set tax codes on your pricing plans, and get real-time tax rates for over 100 countries.",null,{project:"commerce-taxes",notes:"Automated tax promotional banner text in L2 dashboards"}),[s.f8.INVOICES]:K("Set tax codes by product type, and get real-time tax rates for over 100 countries.",null,{project:"commerce-taxes",notes:"Automated tax promotional banner text in L2 dashboards"})}[E],V={[s.f8.PRODUCTS_AND_SERVICES]:"L2 Products & Services, Orders",[s.f8.CONTENT_AND_MEMBERSHIPS]:"L2 Content & Memberships, Orders",[s.f8.INVOICES]:"L2 Invoicing, Invoices"}[E],{inViewPayload:lt,clickCTAPayload:Et,dismissPayload:it}=q.v5,{ref:mt}=(0,v.d)({payload:{...lt,bannerLocation:V}}),ft=()=>{Q.userClicksBannerCTA({...Et,bannerLocation:V}),rt("/settings/selling/taxes")},pt=()=>{Q.userDismissesBannerCTA({...it,bannerLocation:V}),D.default.put(`${G}/${F}`,{isTaxMarketingBannerL2Dismissed:!0}),Y(!0)};(0,e.useEffect)(()=>{C===null&&D.default.get(`${G}/${F}`).then(i=>{let{data:z}=i;Y(z.isTaxMarketingBannerL2Dismissed)}).catch(i=>{X(i)})},[F,X,C]),(0,e.useEffect)(()=>{function i(){const z=(0,S.i)(J);ot(z.name==="desktop-100")}return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[J]);const Tt=!(0,d.isMobile)()&&nt;return ct?e.createElement(a.default,O()({ref:mt},y),e.createElement(I.default,{borderRadius:8},e.createElement(n.default,{flexDirection:"row",backgroundColor:"#494E51",position:"relative"},Tt&&e.createElement(n.default,{sx:{width:173,background:`url('${(0,l.Z)(et)}') no-repeat center bottom`,backgroundSize:"cover"}}),e.createElement(n.default,{flexDirection:"row",justifyContent:"space-between",gap:u[4],alignItems:"center",p:6,flexGrow:1,flexWrap:"wrap"},e.createElement(n.default,{flexDirection:"column",gap:u[2]},e.createElement(c.default.SectionTitle,{as:"span",fontSize:20,fontWeight:500,color:x.white},e.createElement(A,{project:"commerce-taxes",notes:"Automated tax promotional banner text in L2 dashboards"},"Simplify your taxes with automated rates")),e.createElement(c.default.Body,{as:"span",fontSize:14,fontWeight:400,color:x.white},dt)),e.createElement(f.default.Secondary,{"data-testid":"tax-banner-l2-cta-button",onClick:ft,borderRadius:u[1],sx:{borderRadius:u[1],backgroundColor:x.gray[900],cursor:"pointer"}},e.createElement(c.default.Body,{as:"span",fontSize:12,fontWeight:500,color:x.gray[100]},e.createElement(A,{project:"commerce-taxes",notes:"Automated tax promotional banner button CTA in L2 dashboards"},"Set up automated tax"))))),e.createElement(M.default.Element.Icon,{"data-testid":"tax-banner-l2-dismiss-button",onClick:pt,role:"button",sx:{position:"absolute",top:u[2],right:u[2],zIndex:1,">span":{borderRadius:"100%"}}},e.createElement(p.Z,{color:x.white,sx:{borderRadius:"100%"}})))):null},st=j=>{let{variant:E,...y}=j;const A={[s.f8.PRODUCTS_AND_SERVICES]:"content_and_memberships",[s.f8.CONTENT_AND_MEMBERSHIPS]:"products_and_services",[s.f8.INVOICES]:"invoicing"}[E];
1return e.createElement(o.ZP,{ownerTeam:B().COMMERCE_SELLER_OPERATIONS,dashboardName:A,dashboardState:_.c0.MATURE},e.createElement(at,O()({variant:E},y)))}}),825946:(function(H,m,t){t.d(m,{Z:()=>a});var r=t(436814),O=t(663634),e=t(590039),D=t(954376);const a=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const[c,f]=(0,r.useState)(),[M,d]=(0,r.useState)(!0),[p,P]=(0,r.useState)(!1),S=n?"commerce-early-stripe-tax-marketing-enabled":"commerce-stripe-tax-marketing-enabled",T=(0,O.cr)(S);return(0,r.useEffect)(()=>{T?Promise.all([e.Z.getStripeTaxSettings(),e.Z.getUserTaxStatus()]).then(o=>{let[v,l]=o;P(v.eligible&&!!l.taxType&&l.taxType!==D.E_.STRIPE_TAX)}).catch(o=>{f(o)}).finally(()=>{d(!1)}):d(!1)},[T]),{shouldSeeAutomatedTaxMarketing:p,isLoading:M,error:c}}}),422296:(function(H,m,t){t.r(m),t.d(m,{default:()=>N});var r=t(121325),O=t(23795),e=t(679432),D=t(407971),I=t(751253),a=t(436814),n=t(758515),c=t(748945),f=t(98377),M=t(874406),d=t(778705),p=t(923781),P=t(268234),S=t(492204),T=t(283919),o=t(958736),v=t(842260),l=t(289952),_=t(545492),h=t(954376),B=t(734964),L=t(516049);const N=()=>{const[U,R]=(0,a.useState)(!1),g=(0,P.T)(),{dashboardState:W}=(0,B.Z)(),b=(0,a.useMemo)(()=>({selectedOrderId:g}),[g]);return(0,a.useEffect)(()=>{d.ZP.trackMerchantViewsOrderManagementPageview(d.R$.CONTENT_AND_MEMBERSHIPS)},[]),a.createElement(a.Fragment,null,a.createElement(S.Global,{styles:{".sqs-damask-panel":{backgroundColor:"white"}}}),a.createElement(T.Z,null,a.createElement(o.Z.Full,{sx:{px:0}},a.createElement(n.Z.Header,{title:(0,p.t)("Orders",null,{project:"apps.App"}),caption:(0,p.t)("View completed transactions for Content & Memberships",null,{project:"apps.App"})},a.createElement(v.Z,{modalities:[l.zF.ORDERS],onDownloadClick:()=>R(!0),trackingOrigin:l.nS.ORDERS})),a.createElement(c.Z,{category:f.WD.CONTENT_AND_MEMBERSHIPS,open:U,onClose:()=>R(!1)}),W===L.I1.MATURE&&a.createElement(_.Z,{variant:h.f8.CONTENT_AND_MEMBERSHIPS,my:6}),a.createElement(M.Z,{category:f.WD.CONTENT_AND_MEMBERSHIPS,initialState:b}))))}})}]); 2 3//# sourceMappingURL=https://sourcemaps.squarespace.net/universal/scripts-compressed/sourcemaps/fdabf7826acb3a44/async-digital-products-orders-8002160423bc9d3b-min.en-US.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.