1import{A as e,B as t,H as n,t as r,z as i}from"./chunk-62JRHF6Z-CS0B5gRj.js";import{t as a}from"./react-dom-fbBaaXm4.js";import{K as o,O as s,g as c}from"./paths-CTMSnpBZ.js";import{t as l}from"./jsx-runtime-Dv7-ob3D.js";import{C as u,D as d,S as f,T as p,f as m,g as h,h as g,m as _,p as v,r as y,v as b,w as x,x as S}from"./Wrapper-Qou99p7r.js";import{t as C}from"./Section-swUlJfDZ.js";import{_ as w,a as T,c as E,d as D,f as O,h as k,i as A,l as j,m as M,o as N,p as P,s as F,u as I,v as L}from"./BlogCard-Ck5K30NR.js";import{A as R,C as z,I as ee,M as te,N as ne,n as B,ot as re,v as V}from"./I18N-DbcewOge.js";import{O as ie,t as ae,x as oe,y as se}from"./useSignup-By7IaEZI.js";import{_ as ce,v as le}from"./NavigationSearch-DXn_9sL1.js";import{p as ue}from"./style-BjFV1eZC.js";import{t as H}from"./constants-CHFiHMwb.js";import{t as de}from"./useReducedMotion-BQnVnw2V.js";import{t as fe}from"./Modal-D8jto2qa.js";import{a as pe,o as me,s as U,t as he}from"./Conversion-s4BnbzV9.js";import{t as ge}from"./FormButton-C4yyHqB5.js";import{t as _e}from"./useIntlLocale-DTyKPUJ-.js";import{t as ve}from"./AuthorImage-CIh1EmfO.js";import{t as ye}from"./isSymbol-IrRcojYM.js";import{n as be}from"./constants-Btlt938Y.js";import{t as xe}from"./BaseInput-CXlCRIen.js";import{a as Se,i as Ce,n as we,o as Te,s as Ee,t as De}from"./EmailForm-D--ycy0H.js";import{n as Oe,t as ke}from"./EditionsBlogBanner-ujT-z_Bh.js";import{t as Ae}from"./ArticleCarousel-BMaXpqS_.js";var W=n(i(),1),je=[`[&_.marketing-code]:bg-[#f0f1f2] [&_.marketing-code]:font-bold [&_.marketing-code]:p-1 [&_.marketing-code.marketing-code--block]:p-4`,`[&_.marketing-code--block]:block [&_.marketing-code--block]:max-w-full [&_.marketing-code--block]:overflow-x-scroll [&_.marketing-code--block]:mb-5`],Me=[`[&_.truncated-text]:relative [&_.truncated-text]:max-h-[300px] [&_.truncated-text]:overflow-hidden [&_.truncated-text]:mb-6`,`[&_.truncated-text::before]:absolute [&_.truncated-text::before]:content-[""] [&_.truncated-text::before]:bottom-0 [&_.truncated-text::before]:w-full [&_.truncated-text::before]:h-[150px]`,`[&_.truncated-text::before]:bg-gradient-to-t [&_.truncated-text::before]:from-white [&_.truncated-text::before]:from-50% [&_.truncated-text::before]:to-transparent`,String.raw`[&_.truncated-text\_\_toggle]:absolute`,String.raw`[&_.truncated-text\_\_toggle]:bottom-0`,String.raw`[&_.truncated-text\_\_toggle]:w-full`,String.raw`[&_.truncated-text\_\_toggle]:text-center`],Ne=[`[&_.partners-signup]:mt-6 [&_.partners-signup]:mb-12 [&_.partners-signup]:bg-gray-200 [&_.partners-signup]:p-3 [&_.partners-signup]:md:p-6`],Pe=[`[&_.table]:block [&_.table]:overflow-x-scroll [&_.table]:max-w-full`],Fe=S([`text-body-base text-shade-70 md:pt-10 desktop:pt-16`,`[&_h2]:text-t4 [&_h2]:mt-12 [&_h2]:mb-6 [&_h2]:text-black [&_h2]:font-medium`,`[&_.heading--2]:text-t5 [&_.heading--2]:text-black [&_.heading--2]:font-sans [&_.heading--2]:mb-6 [&_.heading--2]:font-medium`,`[&_h3]:text-t5 [&_h3]:mt-12 [&_h3]:mb-4 [&_h3]:text-black`,`[&_h4]:text-t6 [&_h4]:mt-12 [&_h4]:mb-4 [&_h4]:text-black`,`[&_h5]:text-t7`,`[&_p]:mb-6`,`[&_hr]:mb-6`,`[&_a]:text-black [&_a]:font-medium [&_a]:underline [&_a:hover]:no-underline`,`[&_sup_a]:no-underline [&_sup_a:hover]:underline`,`[&_.marketing-button]:text-white [&_.marketing-button]:no-underline`,`[&_a>img]:mt-3 [&_a>img]:mb-8 [&_a>img]:h-[revert-layer]`,`[&_img]:my-12 [&_a>img]:inline-block [&_figure>img]:mb-0 [&_figure]:mb-12 [&_img]:inline-block`,`[&_ul]:list-disc [&_ul]:space-y-3 [&_ul]:pl-6 [&_ul]:mb-6`,`[&_ul_li]:pl-4`,`[&_ol]:list-decimal [&_ol]:space-y-3 [&_ol]:pl-6 [&_ol]:mb-6`,`[&_ol_li]:pl-4 [&_ol_li::marker]:font-bold`,`[&_iframe]:max-w-full`,`[&_figcaption]:mb-12 [&_figcaption]:text-center [&_figcaption]:text-xs`,`[&_figcaption]:sm:text-sm [&_figcaption]:mt-1`,`[&_strong]:font-medium [&_strong]:text-black`,`[&_.heading--4]:font-sans [&_.heading--4]:text-2xl [&_.heading--4]:text-black`,`[&_.heading--4]:font-medium [&_.heading--4]:tracking-[-.02em]`,`[&_iframe]:mt-3 [&_iframe]:mb-9`,`[&_.container]:m-0 [&_.container]:flex [&_.container]:gap-5 [&_.container]:flex-wrap`,`[&_.green]:text-[green] [&_.red]:text-[red]`,`[&_.pros]:bg-[#eafaea] [&_.pros]:rounded-[10px] [&_.pros]:p-5 [&_.pros_h3]:mt-2`,`[&_.cons]:bg-[#ffebe6] [&_.cons]:rounded-[10px] [&_.cons]:p-5 [&_.cons_h3]:mt-2`,`[&_.pros]:tablet:flex-[1_0_calc(50%-10px)] [&_.pros]:flex-[1_0_100%]`,`[&_.cons]:tablet:flex-[1_0_calc(50%-10px)] [&_.cons]:flex-[1_0_100%]`,`[&_.pros_.grid-container]:grid [&_.cons_.grid-container]:grid [&_.grid-container]:gap-[5px]`,`[&_.grid-container]:grid-cols-[15px_auto]`,`[&_.pros_.grid-container]:p-[5px] [&_.cons_.grid-container]:p-[5px]`,`[&_.aspect-video_iframe]:mt-0`,`article-content`,...Me,...je,...Ne,...Pe],{variants:{blogType:{[z.BLOG]:``,[z.RETAIL]:``,[z.PARTNERS]:``,[z.ENTERPRISE
1]:`[&_ul>li>p]:inline`,[z.ENGINEERING]:[`text-engineering-dark-text`,`[&_h2]:text-inherit [&_h3]:text-inherit [&_h4]:text-inherit [&_.heading--4]:text-inherit`,`[&_a]:text-[#E7ECFB]`,`[&_strong]:text-engineering-dark-text`]}}}),Ie=e=>p(Fe(e));S([`my-12`,`border-l-2 pl-4`,`[&_h2]:!mt-0 [&_h2]:mb-6 [&_h2]:text-t5`,`[&_h3]:!mt-0 [&_h3]:mb-6 [&_h3]:text-t7`,`[&_h4]:!mt-0 [&_h4]:mb-6 [&_h4]:text-t8`,`[&_ul]:!mt-0 [&_ul]:mb-6 [&_ul:last-child]:mb-0`,`[&_ol]:!mt-0 [&_ol]:mb-6 [&_ol:last-child]:mb-0`,`[&_p]:!mt-0 [&_p]:mb-6 [&_p:last-child]:mb-0`],{variants:{blogType:{[z.BLOG]:`border-blog-highlight`,[z.RETAIL]:`border-retail-highlight`,[z.PARTNERS]:`border-partners-highlight`,[z.ENTERPRISE]:`border-section-royal-blue !border-l-0 !font-faktum !font-normal [&_h3]:!font-normal bg-marketing-block !pl-8 [&_p]:!font-sans [&_h3]:!font-faktum`,[z.ENGINEERING]:`text-engineering-dark-text [&_*]:!text-engineering-dark-text bg-transparent border-engineering-highlight`}},defaultVariants:{blogType:z.BLOG}}),S([`text-body-sm my-8 tablet:my-16`,`p-8 bg-marketingBg !border-l-0 border-t-2 pl-8`,`[&_[itemscope]]:mb-6 [&_[itemscope]:last-child]:mb-0`],{variants:{blogType:{[z.BLOG]:`border-blog-highlight`,[z.RETAIL]:`border-retail-highlight`,[z.PARTNERS]:`border-partners-highlight`,[z.ENTERPRISE]:`border-section-royal-blue bg-marketing-block`,[z.ENGINEERING]:`text-engineering-dark-text !bg-[#0C052B] border-engineering-highlight`}},defaultVariants:{blogType:z.BLOG}}),S([`border-t-2`,`px-8 py-10 my-12`,`[&_h2]:!mt-0 [&_h2]:mb-6 [&_h2]:text-t5`,`[&_h3]:!mt-0 [&_h3]:mb-6 [&_h3]:text-t7`,`[&_h4]:!mt-0 [&_h4]:mb-6 [&_h4]:text-t8`,`[&_img]:my-auto`,`[&_p]:!mt-0 [&_p]:mb-6 [&_p]:text-body-sm`,`[&_.heading--4]:!text-t6`,`[&_.marketing-button]:text-white [&_.marketing-button]:no-underline`],{variants:{blogType:{[z.BLOG]:`border-blog-highlight`,[z.RETAIL]:`border-retail-highlight`,[z.PARTNERS]:`border-partners-highlight`,[z.ENTERPRISE]:`border-section-royal-blue [&_h3]:!font-normal [&_.heading--4]:!text-t7 !font-faktum [&_p]:!font-sans [&_p]:!text-base [&_p]:!font-normal [&_a]:!font-sans`,[z.ENGINEERING]:`!bg-[#0C052B] border-blog-highlight`}},defaultVariants:{blogType:z.BLOG}}),S([`border-l-2 pl-4`,`font-sans text-xl font-medium`,`tracking-tight my-12 [&_p]:mb-4`,`[&_cite]:font-sans [&_cite]:text-sm [&_cite]:not-italic`,`[&_cite]:font-medium [&_cite]:tracking-[-0.0175rem] [&_footer]:mt-4`,`[&_cite::before]:content-["â"] [&_cite::before]:mr-1`],{variants:{blogType:{[z.BLOG]:`border-blog-highlight`,[z.RETAIL]:`border-retail-highlight`,[z.PARTNERS]:`border-partners-highlight`,[z.ENTERPRISE]:`border-section-royal-blue [&_+p>i]:text-sm !font-faktum !bg-white [&_p:last-child]:text-sm [&_p:last-child]:font-medium !text-2xl`,[z.ENGINEERING]:`border-blog-highlight`}},defaultVariants:{blogType:z.BLOG}}),S([`marketing-block marketing-block--light marketing-block--padded text-body-sm text-left`,`my-8 tablet:my-16 p-8 bg-marketingBg border-t-2`,`[&_h2]:text-t5`],{variants:{blogType:{[z.BLOG]:`border-blog-highlight`,[z.RETAIL]:`border-retail-highlight`,[z.PARTNERS]:`border-partners-highlight`,[z.ENTERPRISE]:`border-section-royal-blue !font-faktum !bg-marketing-block !pl-8 [&_p]:!font-sans [&_h3]:!font-faktum [&_h2]:!font-faktum`,[z.ENGINEERING]:`text-engineering-dark-text !bg-[#0C052B] border-engineering-highlight`}},defaultVariants:{blogType:z.BLOG}});var G=l(),Le=e=>(0,G.jsx)(`svg`,{viewBox:`0 0 30 30`,...e,children:(0,G.jsx)(`path`,{d:`M15.6 30V19.4h5V15h-5v-3.1c0-1 .6-1.9 1.3-1.9h3.8V5.6h-3.8c-3.1 0-5.6 2.8-5.6 6.3V15H7.5v4.4h3.8v10.1C4.8 27.9 0 22 0 15 0 6.7 6.7 0 15 0s15 6.7 15 15c0 8.1-6.4 14.7-14.4 15z`})}),Re=e=>(0,G.jsx)(`svg`,{viewBox:`0 0 18 18`,...e,children:(0,G.jsx)(`path`,{clipRule:`evenodd`,d:`M9 0c5 0 9 4 9 9s-4 9-9 9-9-4-9-9 4-9 9-9zM6.7 3.5h4.7c1.8 0 3.2 1.4 3.2 3.1v4.7c0 1.7-1.4 3.1-3.2 3.1H6.7c-1.8 0-3.2-1.4-3.2-3.1V6.7c0-1.8 1.4-3.2 3.2-3.2zM9 6.2c1.6 0 2.9 1.3 2.9 2.9S10.6 12 9 12s-3-1.3-3-2.9 1.3-2.9 3-2.9zm0 1.2c.9 0 1.7.8 1.7 1.7 0 .9-.8 1.7-1.7 1.7-.9 0-1.7-.8-1.7-1.7 0-.9.7-1.7 1.7-1.7zm2.8-1.7c.3 0 .6.2.6.6 0 .3-.2.6-.6.6-.3 0-.6-.2-.6-.6 0-.4.3-.6.6-.6zm-4.6-1h3.7c1.4 0 2.5 1.1 2.5 2.5v3.7c0 1.4-1.1 2.5-2.5 2.5H7.2c-1.4 0-2.5-1.1-2.5-2.5V7.2c-.1-1.4 1.1-2.5 2.5-2.5z`,fillRule:`evenodd`})}),ze=e=>
1(0,G.jsx)(`svg`,{viewBox:`0 0 30 30`,...e,children:(0,G.jsx)(`path`,{d:`M30 15c0 8.3-6.7 15-15 15S0 23.3 0 15 6.7 0 15 0s15 6.7 15 15zM11.3 7.8c0-1.2-1-2.2-2.5-2.2s-2.5.9-2.5 2.2c0 1.2 1 2.2 2.5 2.2s2.5-1 2.5-2.2zm-.7 4.1H6.9v10.6h3.8V11.9zm13.8 5c0-3.4-1.7-5.6-4.4-5.6-1.5 0-2.6.9-3.1 2.3l-.1-1.6H13c0 .4.1 2.5.1 2.5v8.1h3.8V17c0-1.5.7-2.5 1.8-2.5s1.9.6 1.9 2.5v5.6h3.8v-5.7z`})}),Be=e=>(0,G.jsx)(`svg`,{viewBox:`0 0 30 30`,...e,children:(0,G.jsx)(`path`,{d:`M15 30c-1.5 0-2.9-.2-4.3-.6.6-.9 1.2-2 1.5-3.2.2-.7 1-4.1 1-4.1.5 1 2 1.9 3.7 1.9 4.8 0 8.1-4.4 8.1-10.3 0-4.4-3.8-8.6-9.5-8.6-7.1-.1-10.6 5-10.6 9.3 0 2.6 1 4.9 3.1 5.7.3.1.7 0 .8-.4.1-.2.2-.9.3-1.2.1-.4 0-.5-.2-.8-.6-.7-1-1.6-1-3 0-3.8 2.8-7.2 7.4-7.2 4 0 6.2 2.5 6.2 5.8 0 4.3-1.9 8-4.8 8-1.6 0-2.7-1.3-2.4-2.9.5-1.9 1.3-4 1.3-5.3 0-1.2-.7-2.3-2-2.3-1.6 0-2.9 1.7-2.9 3.9 0 1.4.5 2.4.5 2.4S9.5 24 9.3 25.3c-.3 1.1-.4 2.4-.3 3.5-5.3-2.4-9-7.7-9-13.8C0 6.7 6.7 0 15 0s15 6.7 15 15-6.7 15-15 15z`})}),Ve=e=>(0,G.jsx)(`svg`,{viewBox:`0 0 30 30`,...e,children:(0,G.jsx)(`path`,{d:`M15 0C6.7 0 0 6.7 0 15s6.7 15 15 15 15-6.7 15-15S23.3 0 15 0Zm9.6 20c-.1.3-.6.7-2.5.9-.1 0-.2.2-.3.6 0 .1-.1.3-.1.4 0 .1-.1.2-.3.2-.1 0-.2 0-.4-.1-.3-.1-.7-.1-1.1-.1-.3 0-.5 0-.8.1-.5.1-1 .4-1.5.8-.7.5-1.4 1-2.6 1h-.2c-1.1 0-1.9-.5-2.6-1-.5-.3-1-.7-1.5-.8-.3 0-.5-.1-.8-.1-.5 0-.8.1-1.1.1-.2 0-.3.1-.4.1-.1 0-.2 0-.3-.2 0-.2-.1-.3-.1-.4-.1-.4-.1-.6-.3-.6-1.8-.3-2.3-.7-2.5-.9v-.1c0-.1.1-.2.2-.2 2.8-.5 4-3.3 4.1-3.4.2-.3.2-.6.1-.9-.2-.5-.8-.7-1.2-.8-.1 0-.2-.1-.3-.1-.8-.3-.9-.7-.9-.8.1-.3.4-.5.8-.5h.2c.4.2.7.3 1 .3.4 0 .6-.2.6-.2v-.6c-.1-1.3-.2-3 .2-3.9 1.3-2.8 3.9-3 4.7-3h.3c.8 0 3.5.2 4.7 3 .4.9.3 2.6.2 3.9v.6s.2.2.5.2.6-.1.9-.3c.1 0 .2-.1.3-.1.1 0 .2 0 .3.1.3.1.5.3.5.5s-.1.5-.9.8c-.1 0-.2.1-.3.1-.4.1-1 .3-1.2.8-.1.2-.1.5.1.9.1.1 1.3 3 4.1 3.4.1 0 .2.1.2.2.3 0 .3.1.2.1Z`})}),He=e=>(0,G.jsx)(`svg`,{viewBox:`0 0 30 30`,...e,children:(0,G.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M15 30C23.2843 30 30 23.2843 30 15C30 6.71573 23.2843 0 15 0C6.71573 0 0 6.71573 0 15C0 23.2843 6.71573 30 15 30ZM17.9679 11.937C19.1423 12.7643 20.551 13.2076 21.9952 13.2041V10.3838C21.2138 10.3841 20.4497 10.1579 19.7979 9.73365C19.3398 9.44298 18.9467 9.06336 18.6427 8.61802C18.3387 8.17268 18.1302 7.67098 18.0299 7.1436C17.9873 6.90737 17.9669 6.66779 17.9689 6.42789H15.0829V17.7069C15.0829 18.2146 14.92 18.7094 14.6173 19.1206C14.3146 19.5317 13.8877 19.8382 13.3975 19.9962C12.9073 20.1543 12.3789 20.1558 11.8878 20.0006C11.3966 19.8454 10.9679 19.5414 10.6627 19.1321C10.3576 18.7227 10.1916 18.2289 10.1886 17.7211C10.1856 17.2134 10.3456 16.7177 10.6458 16.3048C10.946 15.8919 11.3711 15.583 11.8604 15.4221C12.3496 15.2612 12.878 15.2566 13.37 15.409V12.5068C12.2944 12.3595 11.1987 12.539 10.2295 13.0213C9.26031 13.5037 8.46383 14.2658 7.94658 15.2058C7.42933 16.1458 7.21597 17.2188 7.33504 18.2814C7.4541 19.344 7.89992 20.3455 8.61286 21.1519C9.3258 21.9583 10.2719 22.5312 11.3246 22.794C12.3772 23.0568 13.4863 22.997 14.5035 22.6225C15.5207 22.2479 16.3975 21.5766 17.0166 20.6983C17.6357 19.82 17.9676 18.7766 17.9679 17.7075V11.937Z`})}),Ue=e=>(0,G.jsx)(`svg`,{...e,viewBox:`0 0 19 19`,children:(0,G.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M19 9.5C19 14.7467 14.7467 19 9.5 19C4.25329 19 0 14.7467 0 9.5C0 4.25329 4.25329 0 9.5 0C14.7467 0 19 4.25329 19 9.5ZM8.18721 10.0675L3.64633 3.99603H7.14609L10.123 7.97639L13.8073 3.99603H14.8358L10.5825 8.59099L15.379 15.0039H11.8792L8.64689 10.6819L4.6462 15.0039H3.61771L8.18721 10.0675ZM6.76655 4.75353H5.15877L12.2586 14.2464H13.8663L6.76655 4.75353Z`})}),We=e=>(0,G.jsx)(`svg`,{viewBox:`0 0 30 30`,...e,children:(0,G.jsx)(`path`,{d:`M30 15c0 8.3-6.7 15-15 15S0 23.3 0 15 6.7 0 15 0s15 6.7 15 15zm-5.6 0c0-6.9 0-6.9-9.4-6.9s-9.4 0-9.4 6.9 0 6.9 9.4 6.9 9.4 0 9.4-6.9zm-11.9-3.7 6.3 3.8-6.3 3.8v-7.6z`})});function Ge({className:e,...t}){return(0,G.jsx)(`svg`,{viewBox:`0 0 30 30`,className:p(`bg-black fill-white rounded-full`,e),...t,children:(0,G.jsx)(`path`,{transform:`translate(5, 5)`,d:`M20 7.924v8.862c0 0.982-0.804 1.786-1.786 1.786h-16.429c-0.982 0-1.786-0.804-1.786-1.786v-8.862c0.335 0.368 0.714 0.692 1.127 0.971 1.853 1.261 3.728 2.522 5.547 3.85 0.938 0.692 2.098 1.54 3.315 1.54h0.022c1.217 0 2.377-0.848 3.315-1.54 1.819-1.317 3.694-2.589 5.558-3.85 0.402-0.279 0.781-0.603 1.116-0.971zM20 4.643c0 1.25-0.926 2.377-1.908 3.058-1.741 1.205-3.493 2.411-5.223 3.627-0.725 0.502-1.953 1.529-2.857 1.529h-0.022c-0.904 0-2.132-1.027-2.857-1.529-1.73-1.217-3.482-2.422-5.212-3.627-0.792-0.536-1.92-1.797-1.92-2.813 0-1.094 0.592-2.031 1.786-2.031h16.429c0.971 0 1.786 0.804 1.786 1.786z`})})}var Ke={facebook:Le,twitter:Ue,youtube:We,instagram:Re,linkedin:ze,pinterest:Be,snapchat:Ve,tiktok:He,email:Ge},qe=e=>
1(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`36`,height:`37`,viewBox:`0 0 36 37`,...e,children:[(0,G.jsx)(`circle`,{cx:`18`,cy:`18.6143`,r:`18`,fill:`#E7ECFB`}),(0,G.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16.4664 25.3643V19.2063H14.2495V16.8064H16.4664V15.0366C16.4664 12.9826 17.8084 11.8643 19.7685 11.8643C20.7074 11.8643 21.5144 11.9296 21.7495 11.9588V14.1053L20.3901 14.1059C19.3241 14.1059 19.1177 14.5793 19.1177 15.2742V16.8064H21.66L21.329 19.2063H19.1177V25.3643H16.4664Z`,fill:`#120937`})]}),Je=e=>(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`36`,height:`37`,viewBox:`0 0 36 37`,fill:`none`,...e,children:[(0,G.jsx)(`circle`,{cx:`18`,cy:`18.6143`,r:`18`,fill:`#E7ECFB`}),(0,G.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M13.4102 12.6143C14.1884 12.6143 14.8191 13.2463 14.8191 14.0236C14.8191 14.8018 14.1884 15.4334 13.4102 15.4334C12.6293 15.4334 11.9995 14.8018 11.9995 14.0236C11.9995 13.2463 12.6293 12.6143 13.4102 12.6143ZM16.1521 16.5032H18.4826V17.572H18.5163C18.8405 16.9568 19.6337 16.3083 20.8163 16.3083C23.2766 16.3083 23.7315 17.9281 23.7315 20.035V24.3258H21.3026V20.5218C21.3026 19.6147 21.2849 18.4476 20.039 18.4476C18.7736 18.4476 18.5805 19.4353 18.5805 20.4562V24.3258H16.1521V16.5032ZM12.1929 24.326H14.6268V16.5034H12.1929V24.326Z`,fill:`#120937`})]}),Ye=e=>(0,G.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`36`,height:`37`,viewBox:`0 0 36 37`,fill:`none`,...e,children:[(0,G.jsx)(`circle`,{cx:`18`,cy:`18.6143`,r:`18`,fill:`#E7ECFB`}),(0,G.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M23.3786 17.0672C23.3786 17.9589 23.2031 18.8473 22.851 19.7304C22.5 20.6135 22.0027 21.4212 21.3615 22.1535C20.7202 22.8858 19.8844 23.4781 18.8561 23.9326C17.8279 24.387 16.7074 24.6143 15.4946 24.6143C13.9657 24.6143 12.5505 24.219 11.25 23.4275C11.4784 23.4447 11.6977 23.4533 11.9081 23.4533C13.2097 23.4533 14.3606 23.0743 15.363 22.3172C14.7656 22.3172 14.2335 22.1449 13.7677 21.8003C13.302 21.4546 12.9814 21.013 12.8047 20.4746C12.9814 20.509 13.1659 20.5252 13.3594 20.5252C13.6575 20.5252 13.9219 20.5004 14.1502 20.4498C13.5349 20.3152 13.0376 20.0083 12.6596 19.5279C12.2827 19.0487 12.0937 18.4898 12.0937 17.8501V17.7995C12.0937 17.9007 12.2119 17.9804 12.4492 18.0396C12.6866 18.0978 12.9375 18.1279 13.2007 18.1279C12.7969 17.8749 12.4627 17.555 12.1984 17.1684C11.9351 16.7818 11.8035 16.3693 11.8035 15.931C11.8035 15.4604 11.9261 15.0146 12.1725 14.5935C12.8756 15.4184 13.7239 16.0743 14.7172 16.5621C15.7095 17.051 16.7692 17.3203 17.8942 17.3698C17.8414 17.1684 17.8144 16.966 17.8144 16.7646C17.8144 16.0409 18.0877 15.4184 18.6322 14.8972C19.1767 14.3749 19.8281 14.1143 20.583 14.1143C21.3919 14.1143 22.0691 14.3921 22.6136 14.9467C23.229 14.8293 23.8174 14.6193 24.3799 14.3156C24.1695 14.9392 23.7566 15.427 23.1412 15.7803C23.7037 15.7124 24.2392 15.5703 24.75 15.3506C24.363 15.889 23.8972 16.3521 23.3516 16.7387C23.3696 16.8572 23.3786 16.966 23.3786 17.0672Z`,fill:`#120937`})]}),Xe={...Ke,facebook:qe,linkedin:Je,twitter:Ye};function Ze({listClass:e,itemClass:t,linkClass:n,iconClass:r,articleTitle:i,articleSummary:a,socialLinksFn:o,blogPageType:s}){let c=o(B()),{canonicalUrl:l}=V(),u=(0,W.useId)();return(0,G.jsx)(`ul`,{id:u,className:e,"data-component-name":`social`,children:c.map(({name:e,text:o})=>{let c=s===z.ENGINEERING?Xe[e]:Ke[e];return(0,G.jsx)(`li`,{className:t,children:(0,G.jsxs)(se,{className:n,"aria-describedby":`blog-social-icon-${e}-${u}`,href:L(l,e,i,a),rel:`me nofollow noopener noreferrer`,target:`_blank`,"data-component-name":`social-${e}`,children:[(0,G.jsx)(c,{className:r}),(0,G.jsx)(`span`,{id:`blog-social-icon-${e}-${u}`,className:`sr-only`,children:o})]})},e)})})}var Qe=e=>{let{t}=e;return[`facebook`,`twitter`,`linkedin`].map(e=>({name:e,text:t(`shared/global/translations:social.${e}.text`)}))},$e=({className:e,articleTitle:t,author:n,authorAvatarUrl:r,modifiedAt:i,socialLinksFn:a=Qe,enBlogPath:o,blogPageType:s,metafields:c,showContributorLink:l,enterpriseAuthor:u})=>{let{localizePath:d}=B(),f=s===z.ENTERPRISE,m=`pages${o||`/`}$article/content`,{t:h}=v(m),g=c&&O(c),_={name:g,url:M({localizedBlogPath:d(o),authorName:g})},y=(0,W.useMemo)(()=>A(c||[],n),[n,c]);return(0,G.jsxs)(`div`,{className:p(`border-t tablet-xl:border-[#d4d4d8] my-16 py-6 flex tablet-xl:flex-row justify-between flex-col`,e),children:[(0,G.jsxs)(`div`,{className:`flex items-center tablet-xl:justify-start tablet-xl:flex-row justify-between flex-row-reverse`,children:[(0,G.jsx)(`div`,{className:`h-16 w-16 tablet-xl:mr-4 grow-0 shrink-0 bg-[#D9D9D9] rounded-full overflow-hidden flex justify-center items-center text-white text-xl font-extrabold`,children:f&&u?(0,G.jsx)(ve,{avatarUrl:u?.avatarUrl||``,name:u?.name||``}):(0,G.jsx)(ve,{avatarUrl:r||``,name:n?.name||``})}),(0,G.jsxs)(`div`,{className:`self-center flex flex-col`,children:[(0,G.jsx)(N,{blogPageType:s,enBlogPath:o,authorData:y,ns:m,className:E({blogPageType:s}),showContributorLink:l}),(0,G.jsx)(F,{contributor:_,modifiedAt:i,blogPageType:s,showContributorLink:l,namespace:m})]})]}),(0,G.jsxs)(`div`,{className:`xs:border-b tablet-xl:border-0 pb-4`,children:[(0,G.jsx)(`div`,{className:I({blogPageType:s}),children:h(`authorSection.headingHtml`)}),(0,G.jsx)(Ze,{socialLinksFn:a,listClass:`flex gap-4 mt-4`,linkClass:j({blogPageType:s}),articleTitle:t,blogPageType:s})]})]})},et=t(((e,t)=>{var n=R(),r=ye(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),K=t(((e,t)=>{t.exports=ne()(Object,`create`)})),tt=t(((e,t)=>{var n=K();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),nt=t(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),rt=t(((e,t)=>{var n=K(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),it=t(((e,t)=>{var n=K(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),at=t(((e,t)=>{var n=K(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),ot=t(((e,t)=>
vendor: 2,648 bytes, line 1
1{var n=tt(),r=nt(),i=rt(),a=it(),o=at();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),st=t(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),ct=t(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),q=t(((e,t)=>{var n=ct();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),lt=t(((e,t)=>{var n=q(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),ut=t(((e,t)=>{var n=q();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),dt=t(((e,t)=>{var n=q();function r(e){return n(this.__data__,e)>-1}t.exports=r})),ft=t(((e,t)=>{var n=q();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),pt=t(((e,t)=>{var n=st(),r=lt(),i=ut(),a=dt(),o=ft();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),mt=t(((e,t)=>{var n=ot(),r=pt(),i=te();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),ht=t(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),J=t(((e,t)=>{var n=ht();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),gt=t(((e,t)=>{var n=J();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),_t=t(((e,t)=>{var n=J();function r(e){return n(this,e).get(e)}t.exports=r})),vt=t(((e,t)=>{var n=J();function r(e){return n(this,e).has(e)}t.exports=r})),yt=t(((e,t)=>{var n=J();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),bt=t(((e,t)=>{var n=mt(),r=gt(),i=_t(),a=vt(),o=yt();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),xt=t(((e,t)=>{var n=bt(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}
1i.Cache=n,t.exports=i})),St=t(((e,t)=>{var n=xt(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),Ct=t(((e,t)=>{var n=St(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),wt=t(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),Tt=t(((e,t)=>{var n=ee(),r=wt(),i=R(),a=ye(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),Et=t(((e,t)=>{var n=Tt();function r(e){return e==null?``:n(e)}t.exports=r})),Dt=t(((e,t)=>{var n=R(),r=et(),i=Ct(),a=Et();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),Ot=t(((e,t)=>{var n=ye(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),kt=t(((e,t)=>{var n=Dt(),r=Ot();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),At=n(t(((e,t)=>{var n=kt();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r}))(),1),Y=n(_(),1),jt=S([`pr-8 md:pr-11 md:mr-sm overflow-hidden`,`[&_h4]:text-t7 [&_h4]:mb-2 [&_h4]:mt-md [&_h5]:mb-2 [&_h5]:mt-md [&_h5]:text-t8 [&_h6]:text-t8 [&_h6]:mb-2 [&_h6]:mt-md`],{variants:{isExpanded:{true:`visible h-auto`,false:`invisible h-0`}}});function Mt({content:e,heading:t,id:n,isExpanded:r,toggleFn:i}){return(0,G.jsxs)(`div`,{"data-component-name":`accordion`,className:(0,Y.default)(`border-0 last:border-0 border-b border-solid leading-[1.6] border-shade-25 list-none`,{"is-active":r}),children:[(0,G.jsxs)(`button`,{type:`button`,className:`flex w-full gap-x-sm place-items-center text-left justify-space-between`,"aria-expanded":r,"aria-controls":`panel-${n}`,id:`header-${n}`,onClick:()=>i(!r),onKeyDown:e=>{switch(e.key){case`Enter`:e.preventDefault(),i(!r);case`Space`:i(!r);break;default:break}},children:[(0,G.jsx)(g,{className:(0,Y.default)(`flex w-full cursor-pointer items-center justify-between gap-2 border-0 p-0`),as:`h2`,size:`t5`,children:t}),(0,G.jsx)(h,{className:`size-5`,icon:b.ExpandCollapse,size:20,options:{isExpanded:r}})]}),(0,G.jsx)(`div`,{className:jt({isExpanded:r}),id:`citation-${n}`,role:`region`,"aria-labelledby":`header-${n}`,"aria-hidden":!r,children:(0,G.jsx)(g,{className:`pt-sm`,as:`div`,children:e})})]})}var Nt=({items:e,isExpanded:t,toggleFn:n})=>{let{t:r}=B(),i=(0,W.useMemo)(()=>(0,G.jsx)(`ul`,{className:`ml-6 mt-6 text-body-sm list-disc`,children:e.map(({url:e,text:t},n)=>(0,G.jsxs)(`li`,{className:`mt-3 first:mt-0`,id:`article-source-${n+1}`,children:[(0,G.jsxs)(`span`,{children:[`(`,n+1,`) `]}),(0,G.jsxs)(`a`,{href:e,className:`underline hover:no-underline !font-medium group/link`,itemProp:`citation`,target:`_blank`,rel:`noreferrer`,children:[t,(0,G.jsx)(h,{icon:b.Arrow,size:18,className:`inline-block group-hover/link:rotate-0 transition-transform duration-300 ease-out-cubic rotate-[-45deg] bg-black/10 rounded-full p-[3px] mb-0.5 ml-1`})]})]},`article-source-${n+1}`))}),[e]);return(0,G.jsx)(Mt,{id:`citation-accordion`,isExpanded:t,toggleFn:n,heading:r(`citation.header`),content:i})},Pt=({isExpanded:t,toggleFn:n})=>{let{article:r,settings:i}=e()??{},a=(0,At.default)(i?.citation,r.handle,null);return a&&(0,G.jsx)(`div`,{className:`mb-12 p-8 border-t-2 bg-marketingBg border-blog-highlight`,children:(0,G.jsx)(Nt,{items:a,isExpanded:t,toggleFn:n})})},X=({className:e,title:t,subTitle:n,children:r})=>(0,G.jsx)(`div`,{className:p(`hidden md:block`,e),children:(0,G.jsxs)(`div`,{className:`p-6`,children:[(0,G.jsx)(g,{className:`text-2xl font-sans leading-6 desktop:leading-7 color-black tracking-[-0.02em]`,children:t}),(0,G.jsx)(g,{className:`font-sans leading-4 desktop:leading-7 color-black tracking-[-0.02em] text-2xl mb-9 font-bold`,children:n}),r]})}),Ft=({content:e})=>(0,G.jsx)(`div`,{className:`bg-[#EAE8FF] hidden md:block`,children:(0,G.jsxs)(`div`,{className:`p-6`,children:[(0,G.jsx)(g,{className:`text-2xl font-sans text-[#390278] font-bold mb-4`,children:e.bannerTitle}),(0,G.jsx)(g,{className:`font-sans text-[#212326] text-base mb-4`,children:e.bannerSubTitle}),(0,G.jsx)(oe,{href:be,size:`small`,className:`text-base bg-[#390278] hover:bg-[#390278] active:bg-[#390278] focus:bg-[#390278]`,children:e.buttonText})]})}),It=S([`md:top-[calc(var(--header-height)*2)] md:max-h-[calc(100vh-var(--header-height))]`,`md:overflow-auto md:sticky md:pb-6 pr-2`],{variants:{blogType:{[z.RETAIL]:``,[z.BLOG]:``,[z.PARTNERS]:``,[z.ENTERPRISE
1]:``,[z.ENGINEERING]:`text-engineering-dark-text`}}}),Lt=S([`flex py-5 md:hidden border-y border-shade-20`,`text-[12px] mb-6 md:mb-0 leading-[20px] font-medium`],{variants:{isEnterpriseBlog:{true:`uppercase`,false:`px-6`}}}),Rt=S([`relative overflow-auto`,`before:absolute before:inset-y-0 before:left-0 md:before:bg-shade-20`,`before:w-[1px] before:z-1 my-10 md:mt-0 md:mb-16`],{variants:{isMobileNavOpen:{true:`block`,false:`hidden md:block`},blogPageType:{[z.RETAIL]:``,[z.BLOG]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:``,[z.ENGINEERING]:`md:before:bg-engineering-light-author-text`}}}),Z=S(`hidden md:block`,{variants:{mode:{[z.RETAIL]:`bg-retail-bannerBg`,[z.BLOG]:`bg-blog-bannerBg`,[z.PARTNERS]:`bg-[#eae8ff]`,[z.ENTERPRISE]:`bg-button-dark-primary-bg [&_a]:font-faktum [&_p]:font-faktum [&_p]:leading-7`,[z.ENGINEERING]:`bg-engineering-dark-accent text-engineering-light-text`}}}),zt=S([`pl-2 my-2.5 first:mt-0 last:mb-0 text-body-sm relative z-2`],{variants:{isActive:{true:`pl-[7px] border-l border-l-black font-bold`},blogPageType:{[z.RETAIL]:``,[z.BLOG]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:``,[z.ENGINEERING]:`border-l-engineering-highlight`}}}),Bt=`https://www.shopify.com/careers/disciplines/engineering-data`;function Vt({className:e}){return(0,G.jsx)(`svg`,{className:e,xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,children:(0,G.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.00025 15.9998C7.74425 15.9998 7.48825 15.9018 7.29325 15.7068C6.90225 15.3158 6.90225 14.6838 7.29325 14.2928L11.5862 9.99976L7.29325 5.70676C6.90225 5.31576 6.90225 4.68376 7.29325 4.29276C7.68425 3.90176 8.31625 3.90176 8.70725 4.29276L13.7073 9.29276C14.0982 9.68376 14.0982 10.3158 13.7073 10.7068L8.70725 15.7068C8.51225 15.9018 8.25625 15.9998 8.00025 15.9998Z`,fill:`black`})})}var Q=({className:e,text:t,url:n,target:r,onClick:i})=>(0,G.jsxs)(`a`,{href:n,className:p(`flex justify-between align-middle font-sans leading-6 tracking-[-0.0175rem] !no-underline border-b border-black group`,e),target:r,onClick:i,...r===`_blank`?{rel:`noopener noreferrer`}:{},children:[(0,G.jsx)(`span`,{children:t}),(0,G.jsx)(`span`,{className:`flex justify-center items-center w-6 h-6 ml-4 my-auto [&_svg]:w-6 reduced-motion:group-hover:translate-x-0 transition-all duration-500 will-change-transform group-hover:translate-x-full group-hover:opacity-0`,children:(0,G.jsx)(Vt,{})})]}),Ht=()=>{let{t:e}=B();return(0,G.jsx)(X,{className:Z({mode:z.ENGINEERING}),title:e(`articleNavigation.bannerTitle`),subTitle:e(`articleNavigation.bannerSubTitle`),children:(0,G.jsx)(Q,{text:e(`articleNavigation.buttonText`),url:Bt,target:`_blank`})})},Ut=[`cs`,`da`,`de`,`es`,`fi`,`fr`,`it`,`ja`,`ko`,`nb`,`nl`,`pl`,`pt-BR`,`pt-PT`,`sv`,`th`,`tr`,`zh-CN`],Wt=[`en`,`en-GB`,`en-AU`,`en-CA`,`en-IN`,`en-PH`],Gt=`Dropshipping`,Kt=`signup_types%5B%5D=dropshipping`,qt=()=>{let{article:t}=e(),{site:n}=V(),r=!!t?.tags.some(e=>e?.toLowerCase()===Gt.toLowerCase()),i=Ut.includes(n.locale),a=Wt.includes(n.locale);return{addDropshippingSignUpType:(i||a)&&r,addDropshippingHeroMessaging:i&&r,dropshippingSignUpType:Kt}},Jt=({contentNavigationLinks:t,blogPageType:n,enBlogPath:r})=>{let i=(0,W.useRef)(null),a=(0,W.useRef)(null),[o,s]=(0,W.useState)([]),{t:c}=v(`pages${r}$article/content`),{localizePath:l}=B(),{getContent:u}=d(),f=u(`nav.talkToSales`),p=u(`globalNav.signupTextTryShopify`),{signupText:g}=m(),{signupUrl:_}=ae(),[y,x]=(0,W.useState)(null),[S,C]=(0,W.useState)(!1),{content:w,partnersArticleContent:T}=e(),E=n===z.ENTERPRISE,{addDropshippingSignUpType:D,dropshippingSignUpType:O}=qt(),k=(0,W.useCallback)(()=>{let e=[];t?.forEach(t=>{let{targetOffsetTop:n}=F(t.href);n&&e.push(n)}),s(t=>t.length===e.length&&t.every((t,n)=>t===e[n])?t:e)},[t]),A=(0,W.useCallback)(e=>{let{targetOffsetTop:t,targetElement:n}=F(e);location.hash=e,n&&(window.scrollTo({top:t-150+1,behavior:`instant`}),setTimeout(()=>{window.scrollBy(0,-1)},0)),i.current=n,a.current=t},[]),j=(0,W.useCallback)(()=>{let e=window.scrollY,t=o.length-1;if(e<o[0])x(0);else if(e>o[t])x(t);else for(let t=0;t<=o.length&&e+150>=o[t];t++)x(t);let n=i.current?.offsetTop;n&&n!==a.current&&(a.current=n,window.requestAnimationFrame(()=>window.scrollTo({top:n-150,behavior:`instant`}))),a.current&&window.scrollY>=a.current&&(a.current=null,i.current=null)},[o]),M=(0,W.useCallback)(()=>
1{j(),k()},[j,k]),N=(0,W.useRef)(j),P=(0,W.useRef)(M);(0,W.useEffect)(()=>{N.current=j,P.current=M},[j,M]),(0,W.useEffect)(()=>{A(location.hash)},[A]),(0,W.useEffect)(()=>{k()},[k]),(0,W.useEffect)(()=>{let e=()=>N.current(),t=()=>P.current();return window.addEventListener(`scroll`,e),window.addEventListener(`resize`,t),()=>{window.removeEventListener(`scroll`,e),window.removeEventListener(`resize`,t)}},[]),(0,W.useEffect)(()=>{o.length>0&&N.current()},[o]);let F=e=>{let t=document?.getElementById(e.replace(`#`,``));return{targetElement:t,targetOffsetTop:t?.offsetTop}},{bannerTitle:I,bannerSubTitle:L}=c(`articleNavigation`),R=n===z.RETAIL;w&&(I=R?w.articleBanner.bannerTitle:w.articleNavigation.bannerTitle,L=R?w.articleBanner.bannerSubTitle:w.articleNavigation.bannerSubTitle);let ee=D?`${_}&${O}`:_;return(0,G.jsx)(G.Fragment,{children:(0,G.jsxs)(`nav`,{className:It({blogType:n}),children:[t&&t.length!==0&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:Lt({isEnterpriseBlog:E}),onClick:()=>{C(e=>!e)},children:[c(`articleNavigation.title`),(0,G.jsx)(h,{icon:b.Chevron,size:20,className:(0,Y.default)(`ml-auto transition rotate-180`,{"rotate-0":S})})]}),(0,G.jsx)(`div`,{className:`mb-4 uppercase hidden md:block`,children:c(`articleNavigation.title`)}),(0,G.jsx)(`ul`,{className:Rt({isMobileNavOpen:S,blogPageType:n}),children:t?.map((e,t)=>(0,G.jsx)(`li`,{className:zt({isActive:t===y,blogPageType:n}),children:(0,G.jsx)(`a`,{href:e.href,onClick:t=>{t.preventDefault();let n=e.href;n&&A(n)},children:e.text})},`content-nav-item-${t}`))})]}),(()=>{switch(n){case z.PARTNERS:return(0,G.jsx)(Ft,{content:T?.sideCta??c(`articleNavigation`)});case z.ENGINEERING:return(0,G.jsx)(Ht,{});case z.RETAIL:let e=l(`/pos/request-info`);return(0,G.jsx)(X,{className:Z({mode:n}),title:I,subTitle:L,children:(0,G.jsx)(Q,{text:f,url:e})});case z.BLOG:return(0,G.jsx)(X,{className:Z({mode:n}),title:w.articleNavigation.bannerTitle,subTitle:w.articleNavigation.bannerSubTitle,children:(0,G.jsx)(Q,{text:g,url:ee})});case z.ENTERPRISE:return(0,G.jsx)(X,{className:Z({mode:n}),title:I,subTitle:L,children:(0,G.jsx)(Q,{text:p,url:ee})});default:return null}})()]})})},Yt=n(a(),1),Xt={selector:`.consent-gate script[data-src], .consent-gate iframe[data-src]`,transformation:e=>{let t=e,n=t.getAttribute(`data-src`),r=t.closest(`.consent-gate`);return!n||!r?null:(t.src=n,t.removeAttribute(`data-src`),r.replaceWith(...r.childNodes),{component:null,node:t})}};function Zt(e,t){let[n,r]=(0,W.useState)([]),{store:i}=o(),a=i?.isConsentRequired,s=i?.canLoadAnalytics,c=i?.canLoadMarketing,l=(0,W.useRef)(t);return(0,W.useEffect)(()=>{let n=l.current!==t;if(l.current=t,n&&r([]),a!==void 0&&(!a||s&&c)){let t=e.current;if(!t)return;let{selector:n,transformation:i}=Xt,a=Array.from(t.querySelectorAll(n)).filter(e=>!e.hasAttribute(`data-consent-processed`)).map(e=>{let t=i(e);return t&&e.setAttribute(`data-consent-processed`,`true`),t}).filter(e=>e!==null);a.length>0&&r(e=>[...e,...a])}},[a,s,c,t,e]),n}var Qt={selector:`[data-guide]`,transformation:e=>{let t=e.getAttribute(`data-guide`),n=e.getAttribute(`data-guide-image`);return{component:t&&n?(0,G.jsx)($t,{type:t,image:n}):null,node:e}}};function $t({type:t,image:n}){let{blogHandle:i,url:a}=e(),o=D(i),{t:c,images:l}=B(),{t:d}=v(`pages${o}/$article/guide_ctas`),[f,p]=(0,W.useState)(!1),[m,h]=(0,W.useState)(!1),[_,y]=(0,W.useState)(``),b=(0,W.useRef)(null),S=(0,W.useId)(),C=(0,W.useCallback)(()=>{p(!1)},[p]),w=(0,W.useCallback)(async e=>{e.preventDefault();try{if(!(await fetch(`/blog/api/guide-cta`,{method:`POST`,body:new FormData(b.current||void 0)})).ok)throw Error(`Failed to submit guide CTA subscription`);h(!0)}catch{y(c(`subscribe.guidesCta.error`))}},[c]),T=_e().split(`-`)[0];return(0,G.jsxs)(`div`,{className:`flex font-sans flex-col md:flex-row bg-[#F4F4EE] p-8`,children:[(0,G.jsx)(`div`,{className:`flex self-center md:w-32 shrink-0`,children:(0,G.jsx)(`img`,{alt:`presentation`,role:`presentation`,src:n,className:`w-32 h-32`})}),(0,G.jsxs)(`div`,{className:`w-full md:pl-8`,children:[(0,G.jsx)(g,{className:`!mb-2 !mt-0 text-base md:text-t6 text-black !font-medium`,children:d(`guidesCta.${t}.heading`)}),(0,G.jsx)(g,{className:`!mb-0 text-sm`,children:d(`guidesCta.${t}.content`)}),(0,G.jsx)(ge,{className:`mt-6`,onClick:()=>p(!0),children:d(`guidesCta.${t}.cta`)})]}),(0,G.jsx)(fe,{closeLabel:c(`shared/global/translations:ariaLabels.modal.close`),handleClose:C,id:`collective`,isActive:f,modalSize:s.Full,"aria-label":c(`shared/global/translations:ariaLabels.videoModal`),children:(0,G.jsxs)(u,{className:`h-full bg-white rounded-lg text-black`,children:[(0,G.jsx)(x,{start:1,span:{xs:12,md:4},children:(0,G.jsx)(`div`,{className:`flex justify-center items-center h-full`,children:(0,G.jsx)(`img`,{alt:`presentation`,className:`p-6 md:p-0`,role:`presentation`,src:[`photography`,`seo`].includes(t)?l[`guides-modal-${t}`]:l[`guides-modal-default`]})})}),(0,G.jsx)(x,{start:{xs:1,md:5},span:{xs:12,md:7},className:`p-6 md:py-10 justify-center place-items-center flex`,children:m?(0,G.jsxs)(`div`,{children:[(0,G.jsx)(g,{as:`h3`,className:`text-xl mb-4`,children:d(`guidesCta.${t}.modal_success_headline`)||c(`subscribe.guidesCta.success.heading`)}),(0,G.jsx)(g,{as:`p`,className:`text-base`,children:c(`subscribe.guidesCta.success.subhead`)})]}):(0,G.jsxs)(`div`,{children:[(0,G.jsx)(g,{as:`h3`,className:`text-xl`,children:d(`guidesCta.${t}.modal_headline`)}),(0,G.jsx)(g,{as:`p`,className:`text-base`,children:d(`guidesCta.modal.subhead`)}),(0,G.jsxs)(r,{className:`my-4 text-center`,onSubmit:w,ref:b,children:[(0,G.jsx)(`input`,{type:`hidden`,name:`locale`,value:T}),(0,G.jsx)(`input`,{type:`hidden`,name:`content`,value:t}),(0,G.jsx)(`input`,{type:`hidden`,name:`signup_page`,value:a}),(0,G.jsxs)(`div`,{className:`flex flex-col md:flex-row justify-center items-center md:justify-start [&>div:first-child]:w-full`,children:[(0,G.jsx)(xe,{type:`email`,name:`email`,autoComplete:`email`,placeholder:c(`shared/global/translations:signup.placeholder`),id:`SubscribeEmail-${S}`,className:`max-w-full w-full`,error:_}),(0,G.jsx)(ge,{className:`max-w-full w-full md:w-40 mb-4 ml-0 md:ml-4 rounded-md h-[58px]`,type:`submit`,children:c(`subscribe.guidesCta.submit`)})]})]}),(0,G.jsx)(g,{as:`p`,className:`text-sm`,children:d(`guidesCta.modal.disclaimer`)})]})})]})})]})}var en={selector:`[data-subscribe]`,transformation:e=>({component:(0,G.jsx)(tn,{}),node:e})};function tn(){let{t:e}=B();return(0,G.jsx)(`div`,{className:`mb-12`,children:(0,G.jsx)(U,{mode:`dark`,buttonText:e(`subscribe.guidesCta.submit`),placeholder:e(`shared/global/translations:signup.placeholder`),label:e(`shared/global/translations:signup.label`),successMessage:{heading:e(`subscribe.guidesCta.success.heading`),contentHtml:e(`subscribe.guidesCta.success.subhead`)},className:pe(),inputWrapperClass:me()})})}var $={effect:`fade`,delaySequence:[`delay-0`,`delay-100`,`delay-200`,`delay-300`,`delay-400`,`delay-500`,`delay-600`,`delay-700`,`delay-800`,`delay-900`],intersectionObserverOptions:{rootMargin:`-50px`,threshold:0},stagger:!0},nn={fade:{static:`transition-opacity ease-base duration-700 opacity-0`,animated:`opacity-100`},rise:{static:`transition-opacity-transform ease-base duration-700 opacity-0 translate-y-5`,animated:`translate-y-0 opacity-100`},slide:{static:`transition-opacity-transform ease-base duration-700 opacity-0 translate-x-5`,animated:`translate-x-0 opacity-100`}};function rn({effect:e=$.effect,customAnimation:t={static:``,animated:``},intersectionObserverOptions:n=$.intersectionObserverOptions,ref:r}){let i=e===`custom`?t:nn[e],a=de(!1),o=a?i.animated:i.static,s=p(o,i.animated),[c,l]=(0,W.useState)(o);return a&&c!==s&&l(s),ie(r,(0,W.useCallback)(e=>
1{e.forEach(e=>{a||c===s||e.isIntersecting&&l(s)})},[s,c,a]),n),{animationClassName:c}}var an=(0,W.createContext)({animationClassName:``,delayClassNames:[]}),on=({children:e,value:t})=>(0,G.jsx)(an.Provider,{value:t,children:e}),sn=()=>(0,W.useContext)(an);function cn({effect:e=$.effect,children:t,className:n,customAnimation:r,delaySequence:i=$.delaySequence,intersectionObserverOptions:a=$.intersectionObserverOptions,stagger:o=$.stagger}){let s=(0,W.useRef)(null),{animationClassName:c}=rn({effect:e,customAnimation:r,intersectionObserverOptions:a,ref:s});return(0,G.jsx)(`div`,{ref:s,className:n,children:(0,G.jsx)(on,{value:{animationClassName:c,delayClassNames:o?i:[]},children:t})})}function ln({children:e,className:t,index:n=0}){let{animationClassName:r,delayClassNames:i}=sn();return(0,G.jsx)(`div`,{className:p(i?.[n]??``,t,r),children:e})}var un=S(`rounded-full bg-marketingBg mb-6 px-4 py-2.5`,{variants:{blogType:{[z.BLOG]:``,[z.RETAIL]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:``,[z.ENGINEERING]:`[&_a]:text-engineering-light-text`}}}),dn=e=>p(un(e)),fn={selector:`#text-cta`,transformation:e=>({component:(0,G.jsx)(pn,{}),node:e})};function pn(){let t=e(),n=t?.blogHandle,r=n===z.ENTERPRISE,i=t?.textCtaData??t?.content?.textCta??{},a=r&&`plusTrial`in i,o=a?i.plusTrial??{}:i,{getContent:s}=d(),c=s(`globalNav.signupTextTryShopify`),l=s(`signup.buttonTextStartFree`),{plusSignupUrl:u}=Oe();if(!o.textWithLogo)return null;let{textWithLogo:f,emailPlaceholder:m,emailDisclaimer:h}=o,_=a,v=(0,Y.default)(`[&_label]:peer-placeholder-shown:-translate-y-4.75`,`[&_label]:sm:peer-placeholder-shown:-translate-y-4`,`[&_label]:peer-focus:-translate-y-6`,`[&_label]:sm:peer-focus:-translate-y-6.5`,`**:data-[component-name='message']:mb-0`,`**:data-[component-name='message']:ml-6`);return(0,G.jsx)(cn,{effect:`fade`,children:(0,G.jsx)(ln,{className:p(dn({blogType:n}),`rounded-3xl no-underline p-4`,`blog-cta-container`),children:(0,G.jsxs)(`div`,{"data-component-name":`blog-cta-tailored-text`,children:[(0,G.jsx)(g,{size:`t7`,className:`font-bold mt-0 mb-2! ml-6 blog-cta-shopify-logo text-black tracking-normal`,children:f}),_?(0,G.jsx)(mn,{buttonText:c,message:h,label:m,plusSignupUrl:u,className:v}):(0,G.jsx)(De,{button:{children:l},message:h,label:m,className:v})]})})})}function mn({buttonText:e,message:t,label:n,plusSignupUrl:r,className:i}){let{getContent:a}=d(),o=a(`signup.placeholder`),{site:s}=V(),{getSignupURL:l}=y(),u=(0,W.useRef)(null);Ce(u);let f=`enterprise-text-cta-${(0,W.useId)()}`,[m,h]=(0,W.useState)(),g=(0,W.useMemo)(()=>{if(!(typeof window>`u`))return Te(new URL(window.location.href,`https://www.shopify.com`).searchParams)},[]);(0,W.useEffect)(()=>{let e=l({url:r});g&&e.searchParams.append(`signup_types[]`,g),h(e)},[l,r,g]);let _=(0,W.useCallback)(e=>{e.preventDefault();let t=u.current?.value,n=l({url:r,email:t});g&&n.searchParams.append(`signup_types[]`,g),Se({email:t,languageCode:s?.languageCode,locale:s?.locale}),window.location.href=n.toString()},[l,r,g,s?.languageCode,s?.locale]),v=n||o;return(0,G.jsx)(`div`,{"data-component-name":`email-form`,className:`flex justify-center`,children:(0,G.jsxs)(`form`,{noValidate:!0,action:re,className:p(i,`flex w-full flex-col justify-center`),onSubmit:_,method:`post`,children:[m&&(0,G.jsx)(we,{signupUrl:m}),(0,G.jsx)(Ee,{placeholder:v,autoComplete:`email`,ref:u,id:f,label:v,message:t,mode:`light`,type:`email`,button:{type:`submit`,size:`small`,children:e,componentName:c,mode:`light`,role:`link`}})]})})}var hn={selector:`.truncated-text`,transformation:e=>({component:(0,G.jsx)(gn,{node:e}),node:e})},gn=({node:e})=>{let t=document.getElementById(H),n=e.querySelector(`.truncated-text__toggle`),r=(0,W.useCallback)(()=>{t?.classList.remove(`[&_.truncated-text]:max-h-[300px]`,`[&_.truncated-text::before]:content-[""]`),n?.classList.add(`hidden`)},[t?.classList,n?.classList]);return(0,W.useEffect)(()=>(n?.addEventListener(`click`,r),()=>n?.removeEventListener(`click`,r)),[n,r]),null},_n={selector:`[data-component="youtube-facade"]`,transformation:e=>{let t=new URL(e.getAttribute(`data-src`)||``,`https://www.youtube-nocookie.com`),n=t.pathname.split(`/`).pop(),r=t.searchParams.toString(),i=e.getAttribute(`data-title`);return{component:(0,G.jsx)(vn,{videoId:n??``,title:i??void 0,params:r??void 0}),node:e}}};function vn({videoId:e,title:t,params:n}){let[r,i]=(0,W.useState)(!1),a=(0,W.useRef)(null);ie(a,e=>{e[0].isIntersecting&&i(!0)},{threshold:.1});let o=(0,W.useMemo)(()=>{let e=n?new URLSearchParams(n):new URLSearchParams;return e.set(`autoplay`,`0`),e},[n]),s=(0,W.useMemo)(()=>(0,G.jsx)(`iframe`,{credentialless:!0,title:t??`YouTube video`,className:`w-full h-full aspect-video`,src:`https://www.youtube-nocookie.com/embed/${e}?${o.toString()}`,allowFullScreen:!0}),[e,o,t]);if(r)return s;{let n=t??`YouTube video`;return(0,G.jsx)(`a`,{ref:a,className:`w-full aspect-video relative bg-cover bg-center block `,href:`https://www.youtube-nocookie.com/watch?v=${e}`,"aria-label":n,title:n,style:{backgroundImage:`url('https://i.ytimg.com/vi/${e}/hqdefault.jpg')`},children:(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`absolute top-1/2 left-1/2 w-[70px] h-[46px] bg-[#212121] z-10 opacity-80 rounded-[14%] transition-all duration-200 ease-[
1cubic-bezier(0,0,0.2,1)] hover:bg-red-500 hover:opacity-100 transform -translate-x-1/2 -translate-y-1/2 cursor-pointer`,children:(0,G.jsx)(`div`,{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-0 h-0 border-l-[19px] border-t-[11px] border-b-[11px] border-transparent border-l-white`})})})}}var yn={selector:`[data-citation-link]`,transformation:e=>{let t=e.getAttribute(`data-citation-link`);return{component:t?(0,G.jsx)(bn,{link:t}):null,node:e}}};function bn({link:e}){return(0,G.jsxs)(`sup`,{children:[`(`,(0,G.jsx)(`a`,{href:`#article-source-${e}`,children:e}),`)`]})}var xn=new Set([`gist.github.com`].map(e=>e.toLowerCase())),Sn=0,Cn={selector:`.script-sandbox script[data-sandbox-src]`,transformation:e=>{let t=e,n=t.getAttribute(`data-sandbox-src`),r=t.closest(`.script-sandbox`);if(!n||!r)return null;try{let e=new URL(n,`https://www.shopify.com`);if(!xn.has(e.hostname.toLowerCase()))return console.error(`[ScriptSandbox] Invalid host:`,e.hostname),null}catch{return console.error(`[ScriptSandbox] Invalid URL:`,n),null}let i=document.createElement(`iframe`);i.sandbox.add(`allow-scripts`),i.setAttribute(`credentialless`,`true`),i.style.width=`100%`,i.style.border=`0`,i.style.overflow=`hidden`;let a=`sandbox-${++Sn}`;i.setAttribute(`data-sandbox-id`,a),i.srcdoc=` 2 <!DOCTYPE html> 3 <html> 4 <head> 5 <meta charset="utf-8"> 6 <style> 7 body { margin: 0; padding: 0; } 8 </style> 9 </head> 10 <body> 11 <script src="${encodeURI(n)}"><\/script> 12 <script> 13 // Auto-resize iframe to content height 14 (function() { 15 let lastHeight = 0; 16 17 function sendHeight() { 18 try { 19 const height = Math.max( 20 document.body.scrollHeight, 21 document.body.offsetHeight, 22 document.documentElement.scrollHeight, 23 document.documentElement.offsetHeight 24 ); 25 26 // Only send if height changed to avoid spam 27 if (height !== lastHeight) { 28 lastHeight = height; 29 // Use '*' as targetOrigin because sandboxed iframes have null origin 30 window.parent.postMessage( 31 {type: 'sandbox-resize', iframeId: '${a}', height: height}, 32 '*' 33 ); 34 } 35 } catch (e) { 36 console.error('[ScriptSandbox] Failed to send resize message:', e); 37 } 38 } 39 40 // Send initial height on load 41 window.addEventListener('load', sendHeight); 42 43 // Watch for DOM changes (gists load content dynamically) 44 const observer = new MutationObserver(sendHeight); 45 observer.observe(document.body, { 46 childList: true, 47 subtree: true, 48 attributes: true, 49 characterData: true 50 }); 51 52 // Fallback: poll for height changes for first few seconds 53 let pollCount = 0; 54 const pollInterval = setInterval(function() { 55 sendHeight(); 56 pollCount++; 57 if (pollCount >= 20) { // Poll for ~2 seconds 58 clearInterval(pollInterval); 59 } 60 }, 100); 61 })(); 62 <\/script> 63 </body> 64 </html> 65 `,i.onerror=()=>{console.error(`[ScriptSandbox] Failed to load iframe:`,n)};let o=e=>{!i.contentWindow||e.source!==i.contentWindow||e.data?.type===`sandbox-resize`&&e.data?.iframeId===a&&typeof e.data?.height==`number`&&(i.style.height=`${e.data.height}px`)};window.addEventListener(`message`,o);let s=new MutationObserver(e=>{e.forEach(e=>{e.removedNodes.forEach(e=>{e===i&&(window.removeEventListener(`message`,o),s.disconnect())})})});if(r.parentNode)s.observe(r.parentNode,{childList:!0}),r.parentNode.replaceChild(i,r);else return console.error(`[ScriptSandbox] No parent node for sandbox container`),null;return{component:null,node:i}}},wn=new WeakMap,Tn=0;function En(e){let t=wn.get(e);return t||(t=`portal-${Tn++}`,wn.set(e,t)),t}var Dn={selector:`[data-email-signup]`,transformation:e=>({component:(0,G.jsx)(On,{subscriptionId:e.getAttribute(`data-subscription-id`)||void 0}),node:e})};function On({subscriptionId:t}){let n=e(),r=n.content?.emailSignup,i=n.article.tags?.some(e=>e.toLowerCase()===`retail`)??!1;if(!r)return null;let{title:a,description:o,placeholder:s,buttonText:c,disclaimer:l}=r.subscribeBanner||{},{heading:u,contentHtml:d}=r.successMessage||{};return(0,G.jsxs)(`div`,{className:`marketing-block marketing-block--light marketing-block--padded my-12`,children:[a?(0,G.jsx)(`p`,{className:`heading--4`,children:a}):null,o?(0,G.jsx)(`p`,{children:o}):null,(0,G.jsx)(`div`,{className:`mt-4`,children:(0,G.jsx)(U,{mode:`light`,buttonText:c,placeholder:s,subscriptionId:t,successMessage:{heading:u||``,contentHtml:d||``}
65,formWrapperClass:pe(),inputWrapperClass:me(),disclaimer:l,isRetailArticle:i})})]})}function kn({content:e}){let t=(0,W.useRef)(null),[n,r]=(0,W.useState)([]),i=Zt(t,e);return(0,W.useEffect)(()=>{let e=t.current;if(!e)return;let n=[];[Qt,en,fn,hn,_n,yn,Dn,Cn].forEach(({selector:t,transformation:r})=>{let i=Array.from(e.querySelectorAll(t)).map(r).filter(e=>e!==null);n.push(...i)}),r(e=>[...e,...n])},[e]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:`hidden leadpage-container leadpage__image leadpage__content marketing-button hide--mobile block--bordered`}),(0,G.jsx)(`div`,{ref:t,dangerouslySetInnerHTML:{__html:e}}),[...n,...i].map(({component:e,node:t})=>(0,Yt.createPortal)(e,t,En(t)))]})}var An=f(`[&_input]:rounded-full [&_input]:border-shade-3 [&_input]:mb-1 [&_input]:pl-4 [&_input]:border-solid [&_input]:border`,`[&_input]:border-shade-30 [&_input]:text-xs tablet-xl:[&_input]:text-base [&_div]:text-xs tablet-xl:[&_div]:text-base`,`[&_button]:bg-black [&_button]:text-white [&_button]:h-14 [&_button]:text-lg [&_button]:text-lg`,`[&_button]:hover:bg-[#3f3f46] [&_button]:active:bg-[#71717a]`),jn=S(`text-xl mb-2 `,{variants:{isEnterpriseBlog:{false:`font-sans`,true:`font-medium font-faktum text-[24px]`}}}),Mn=({className:e,subscriptionId:t,enBlogPath:n,blogPageType:r,componentName:i})=>{let{t:a}=v(`pages${n}$article/content`),o=r===z.ENTERPRISE,s=r===z.RETAIL,{site:c}=V(),l=c.languageCode===`en`&&r===z.BLOG,u=a(s?`subscribeBanner.retail.title`:`subscribeBanner.title`),d=a(s?`subscribeBanner.retail.description`:`subscribeBanner.description`);return(0,G.jsxs)(`div`,{className:e,"data-priority":`2`,"data-component-name":i,children:[(0,G.jsx)(g,{className:jn({isEnterpriseBlog:o}),children:l?a(`keepUpWithTerms.title`):u}),(0,G.jsx)(g,{className:p(`text-sm mb-4`,o?`font-sans`:``),children:l?a(`keepUpWithTerms.description`):d}),(0,G.jsx)(U,{...a(`subscribeBanner`),inputWrapperClass:An,subscriptionId:t,blogType:r}),(0,G.jsx)(g,{className:p(`text-xs mt-2 text-shade-60`,o?`font-sans`:``),children:a(l?`keepUpWithTerms.hint`:`subscribeBanner.hint`)})]})},Nn=({className:e,imageWidthPadding:t,imageSrc:n,imageAlt:r,title:i,buttonText:a,buttonHint:o,href:s,titleStyle:c,blogPageType:l,componentName:u})=>{let d=l===z.RETAIL?(0,G.jsx)(Q,{url:s,text:o}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(oe,{href:s,size:`small`,className:`text-base`,children:a}),(0,G.jsx)(g,{className:`text-[0.625rem] text-black pt-2`,children:o})]});return(0,G.jsxs)(`div`,{className:e,"data-priority":`1`,"data-component-name":u,children:[(0,G.jsx)(`div`,{className:(0,Y.default)(t&&`p-4 pb-0`),children:(0,G.jsx)(`img`,{src:n,alt:r})}),(0,G.jsxs)(`div`,{className:`p-4`,children:[(0,G.jsx)(g,{className:p(`color-black tracking-[-0.02em] text-2xl font-sans`,c),children:i}),d]})]})},Pn=S(``,{variants:{blogType:{[z.BLOG]:`font-sans`,[z.RETAIL]:`font-sans`,[z.PARTNERS]:`font-sans`,[z.ENTERPRISE]:`font-faktum`,[z.ENGINEERING]:`font-sans text-[#E7ECFB]`}}}),Fn=S(`text-base uppercase mb-6`,{variants:{blogType:{[z.BLOG]:``,[z.RETAIL]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:`font-faktum`,[z.ENGINEERING]:`font-medium`}}}),In=S(`mb-4 pl-2 border-l border-[#CAD4D7] inline-block`,{variants:{blogType:{[z.BLOG]:``,[z.RETAIL]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:`font-medium font-faktum`,[z.ENGINEERING]:`border-engineering-highlight`}}}),Ln=S(`uppercase text-xs mb-2 block pt-2 font-bold [&_a]:no-underline [&_a]:hover:text-link-light-hover`,{variants:{blogType:{[z.BLOG]:``,[z.RETAIL]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:`font-normal font-faktum`,[z.ENGINEERING]:`[&_a]:hover:text-inherit`}}}),Rn=e=>p(Ln(e)),zn=S(`text-base block hover:underline hover:underline-offset-4 font-normal`,{variants:{blogType:{[z.BLOG]:``,[z.RETAIL]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:`font-medium font-faktum`,[z.ENGINEERING]:`text-engineering-dark-text`}}}),Bn=({className:e,storefrontArticles:t,enBlogPath:n,blogPageType:r})=>{let{t:i}=v(`pages${n}$article/content`),{localizePath:a}=B();return(0,G.jsxs)(`div`,{className:p(Pn({blogType:r}),e),"data-priority":`0`,children:[(0,G.jsx)(g,{className:Fn({blogType:r}),children:i(`popularPostsTitle`)}),t&&t.length>0&&t.map(e=>{let t=ce(e.tags);return(0,G.jsxs)(`span`,{className:In({blogType:r}),children:[(0,G.jsx)(`span`,{className:Rn({blogType:r}
65),children:t&&(0,G.jsx)(`a`,{href:a(le(n,t)),"data-component-name":`blog-popular-post-${t}`,children:t})}),(0,G.jsx)(`a`,{href:a(n+e.handle),"data-component-name":`blog-popular-post-${e.handle}`,children:(0,G.jsx)(g,{as:`span`,className:zn({blogType:r}),children:e.title})})]},e.handle)})]})},Vn=S([`font-bold text-lg text-legacy-gray-90 !font-sans`],{variants:{blogPageType:{[z.BLOG]:``,[z.RETAIL]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:`text-legacy-gray-90 [&_>div]:!text-legacy-gray-90 [&_a]:text-legacy-gray-90 [&_span]:text-legacy-gray-90`,[z.ENGINEERING]:`text-engineering-dark-text`}}}),Hn=({popularPosts:e,enBlogPath:t,contentHeight:n,author:r,modifiedAt:i,settings:a,blogPageType:o,metafields:s,timeToRead:c,showContributorLink:l,editionsPromotionData:u})=>{let{signupText:d}=m(),{signupUrl:f,signupName:p}=ae(),{t:h}=v(`pages${t}$article/content`),{localizePath:g}=B(),{images:_,subscription:y}=a,b=s&&O(s),x={name:b,url:M({localizedBlogPath:g(t),authorName:b})},S=![z.PARTNERS,z.ENGINEERING].includes(o),C=o!==z.ENGINEERING&&!k(s||[]);(0,W.useEffect)(()=>{let e=document.querySelector(`#blog-side-banners`),t=(e,t)=>(e.getAttribute(`data-priority`)??0)<(t.getAttribute(`data-priority`)??0)?-1:+((e.getAttribute(`data-priority`)??0)>(t.getAttribute(`data-priority`)??0));if(e&&n){let r=[...e.children],i=Math.floor(n/1e3),a=r.sort(t);a.slice(0,i).forEach(e=>{e.classList.remove(`hidden`)}),a.slice(i).forEach(e=>{e.classList.add(`hidden`)})}},[n]);let T=o===z.RETAIL?`mb-9 font-medium`:`mb-4 uppercase font-semibold`,E=A(s||[],r),{buttonText:D,buttonHint:j}=(()=>{switch(o){case z.RETAIL:return{buttonText:d,buttonHint:h(`rightColSideBannerButtonHintRetail`)};case z.ENTERPRISE:return{buttonText:h(`rightColSideBannerButtonText`),buttonHint:h(`rightColSideBannerButtonHint`)};default:return{buttonText:d,buttonHint:h(`rightColSideBannerButtonHint`)}}})(),P=(0,G.jsx)(Nn,{componentName:`blog-CTA-seasonal-email`,className:`bg-[#EEFAB3] mt-[640px] hidden`,title:h(`rightColSideBannerTitle`),buttonText:D,buttonHint:j,href:w({blogPageType:o,signupUrl:f,localizePath:g}),imageSrc:_.rightColSideBannerImg,imageAlt:p,imageWidthPadding:!0,titleStyle:T,blogPageType:o}),F=u?.isPromoted&&u?.isSupported&&o!==z.ENGINEERING;return(0,G.jsxs)(`div`,{className:`h-full overflow-hidden`,id:`blog-side-banners-col`,children:[(0,G.jsx)(N,{blogPageType:o,enBlogPath:t,authorData:E,modifiedAt:i,contributor:x,timeToRead:c,ns:`pages${t||`/`}$article/content`,className:Vn({blogPageType:o}),showContributorLink:l}),(0,G.jsxs)(`div`,{id:`blog-side-banners`,children:[F&&(0,G.jsx)(ke,{mode:`vertical`,imageUrl:u.imageUrl||``,imageAlt:u.imageAlt||``,url:u.url||``}),C&&(0,G.jsx)(Mn,{className:`mt-[640px] border-t border-shade-30 pt-6 hidden`,subscriptionId:y?.settings?.subscriptionId,enBlogPath:t,blogPageType:o,componentName:`blog-CTA-sidebar-email`}),e.length>0&&(0,G.jsx)(Bn,{blogPageType:o,storefrontArticles:e.slice(0,Math.round(e.length/2)),enBlogPath:t,className:`mt-[640px]`}),S&&P,e.length>1&&(0,G.jsx)(Bn,{blogPageType:o,storefrontArticles:e.slice(Math.round(e.length/2)),enBlogPath:t,className:`mt-[640px]`})]})]})},Un=({className:e,content:t,title:n,authorAvatarUrl:r,author:i,modifiedAt:a,popularPosts:o,enBlogPath:s,contentNavigationLinks:c,settings:l,blogPageType:d,metafields:f,showContributorLink:m,enterpriseAuthor:h,editionsPromotionData:g})=>{let[_,v]=(0,W.useState)(null),y=P(t),b=d===z.ENGINEERING,[S,C]=(0,W.useState)(!1),w=e=>{let t=document?.getElementById(e.replace(`#`,``));return{targetElement:t,targetOffsetTop:t?.offsetTop}},T=(0,W.useCallback)(e=>{let{targetOffsetTop:t,targetElement:n}=w(e);n&&window.scrollTo({top:t-150,behavior:`smooth`})},[]),E=(0,W.useCallback)(e=>{let t=e.target;t?.href?.includes(`#article-source-`)&&(e.preventDefault(),C(!0),location.hash=t?.hash||``,T(location.hash))},[T]);return(0,W.useEffect)(()=>{let e=document.getElementById(H)?.clientHeight;e&&e!==_&&v(e),location.hash.includes(`article-source-`)&&(C(!0),T(location.hash))},[t,_,T]),(0,G.jsxs)(u,{className:p(`block tablet-xl:grid gap-y-0 gap-x-12`,e),children:[(0,G.jsx)(x,{className:`nav-drawer md:pb-20 pt-10 desktop:pt-16`,span:{xs:12,md:4,lg:3},"data-component-name":`blog-left-sidebar`,children:(0,G.jsx)(Jt,{contentNavigationLinks:c,blogPageType:d,enBlogPath:s})}),(0,G.jsxs)(x,{span:{xs:12,md:8,lg:6},children:[(0,G.jsx)(`div`,{id:H,className:Ie({blogType:d}),itemProp:`articleBody`,onClick:E,children:(0,G.jsx)(kn,{content:t})}),(0,G.jsx)(Pt,{isExpanded:S,toggleFn:C}),(i||d===z.ENTERPRISE)&&(0,G.jsx)($e,{showContributorLink:m,author:i,authorAvatarUrl:r,modifiedAt:a,articleTitle:n,blogPageType:d,enBlogPath:s,metafields:f,enterpriseAuthor:h})]}),(0,G.jsx)(x,{span:{xs:12,lg:3},className:`hidden lg:block relative`,"data-component-name":`blog-right-sidebar`,children:(0,G.jsx)(`div`,{className:`tablet-xl:pt-10 desktop:pt-16 pb-6 absolute h-full max-h-full tot-0 left-0`,children:(0,G.jsx)(Hn,{popularPosts:o,contentHeight:_,enBlogPath:s,author:i,modifiedAt:a,settings:l,blogPageType:d,metafields:f,timeToRead:b?y:null,showContributorLink:m,editionsPromotionData:g})})})]})},Wn=S(``,{variants:{mode:{default:[`[&_span]:font-sans`,`[&_span]:text-left tablet-xl:[&_span]:text-[40px] [&_span]:leading-[48px] [&_span]:font-medium [&_span]:tracking-normal`,`[&_p]:text-white [&_p]:text-left [&_p]:text-lg [&_p]:leading-[26px] [&_p]:font-normal [&_p]:tracking-tight [&_p]:pb-6`],enterprise:[`[&_span]:font-factum`,`[&_span]:text-left [&_span]:text-[28px] [&_p]:leading-[36px] desktop:[&_span]:text-[40px] [&_span]:leading-[48px] [&_span]:font-normal [&_span]:tracking-normal`,`[&_p]:text-white [&_p]:text-left [&_p]:text-body-base [&_p]:leading-[26px] desktop:[&_p]:text-[18px] [&_p]:font-normal [&_p]:tracking-tight [&_p]:pb-6`]}}}),Gn=f(`[&_p]:text-left [&_p]:text-xs [&_p]:leading-[18px] [&_p]:pt-xs [&_button]:mt-[3px]`),Kn=S(`grid`,{variants:{mode:{default:[`md:grid-cols-2`],enterprise:[`tablet:grid-cols-2`]}}}),qn=S(`h-full w-full`,{variants:{mode:{default:[`object-cover absolute top-0 left-0 bottom-0`],enterprise:[``]}}}),Jn=S(`flex`,{variants:{mode:{default:[`bg-black`],enterprise:[`bg-section-dark-bg items-center`,`[&_form]:w-auto [&_p]:w-auto [&_form]:max-w-[406px] [&_p]:max-w-[406px]`,`[&_button[type="submit"]]:btn-primary [&_button[type="submit"]]:mt-0 [&_form>div]:items-center`,`[&_form>div+div]:hidden [&_form>div>input+div]:inline-block`]}}}),Yn=S(`text-left desktop:mx-10`,{variants:{mode:{default:[`self-center py-16 md:py-28 mx-10 md:mx-0 md:px-4 desktop:px-8`],enterprise:[`mx-0 py-8 px-4 tablet:py-10 tablet:px-8`]}}});function Xn({heading:e,subhead:t,disclaimer:n,conversionCta:r,subscriptionId:i,imageSrc:a,mode:o=`default`,blogType:s=z.BLOG}){return(0,G.jsxs)(`div`,{className:Kn({mode:o}),children:[(0,G.jsx)(`div`,{className:`relative overflow-hidden`,children:(0,G.jsx)(T,{src:a,alt:`subscription banner`,className:qn({mode:o})})}),(0,G.jsx)(`div`,{className:Jn({mode:o}),children:(0,G.jsx)(he,{headingHtml:e,subheadHtml:t,disclaimerHtml:n,buttons:[],headingClassName:Wn({mode:o}),ctaClassName:Gn,className:Yn({mode:o}),cta:r,mode:`dark`,center:!1,subscriptionId:i,blogType:s})})]})}function Zn({podcastData:e}){if(!e)return null;let t={"@context":`https://schema.org`,"@type":`PodcastEpisode`,name:e.name,description:e.description,datePublished:e.datePublished,duration:e.duration,url:e.url};return(0,G.jsx)(`script`,{type:`application/ld+json`,dangerouslySetInnerHTML:{__html:JSON.stringify(t)},suppressHydrationWarning:!0})}var Qn=({componentSelector:e,articleContentHtml:t})=>{let n=(0,W.useRef)(!1);(0,W.useEffect)(()=>
65{if(n.current)return;let r=()=>{if(!n.current){let t=document.querySelector(e);n.current=!0,t?.removeAttribute(`data-click-enabled`)}};return t&&e&&document.querySelector(e)&&document?.addEventListener(`click`,r),()=>document.removeEventListener(`click`,r)},[t,e])},$n=S([`py-10 tablet:text-center desktop:pt-16`],{variants:{isImageVisible:{true:`desktop:pb-16`,false:`pb-0 md:pb-4`}}}),er=S([`uppercase text-shade-100`,`font-sans text-[12px] leading-[14px] tracking-[0.01em] font-semibold`,`tablet-xl:font-sans tablet-xl:text-[11px] tablet-xl:leading-[13px] tablet:tracking-[0.5px] tablet:font-bold`],{variants:{isImageVisible:{true:`pb-2`,false:`pb-4`},blogType:{[z.BLOG]:``,[z.RETAIL]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:``,[z.ENGINEERING]:`text-engineering-dark-text`}}}),tr=e=>p(er(e)),nr=S([`font-medium tracking-[-0.02em]`,`text-[28px] leading-9`,`tablet-xl:text-[32px] tablet-xl:leading-10`,`tablet-xl:text-[40px] tablet-xl:leading-[48px]`],{variants:{blogType:{[z.BLOG]:``,[z.RETAIL]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:``,[z.ENGINEERING]:`text-engineering-dark-text`}}}),rr=S([`font-normal tracking-[-0.02em]`,`text-[18px] leading-[26px]`,`tablet-xl:text-[20px] tablet-xl:leading-7`,`desktop:text-[22px] desktop:leading-8`,`mt-4`],{variants:{isImageVisible:{true:`desktop:mt-4`,false:`desktop:mt-2`},blogType:{[z.BLOG]:``,[z.RETAIL]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:`font-sans`,[z.ENGINEERING]:`text-engineering-dark-text`}}}),ir=S([`font-bold sm:justify-center !text-lg text-legacy-gray-90`],{variants:{blogType:{[z.BLOG]:`last:[&_>div]:justify-start sm:last:[&_>div]:justify-center`,[z.RETAIL]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:`text-base mb-2 [&_>div]:!text-legacy-gray-90 [&_a]:text-legacy-gray-90 [&_span]:text-legacy-gray-90 last:[&_>div]:my-0 text-center`,[z.ENGINEERING]:`text-engineering-dark-text`}}}),ar=S(`no-underline hover:text-link-light-hover topic-link`,{variants:{blogType:{[z.BLOG]:``,[z.RETAIL]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:``,[z.ENGINEERING]:`hover:text-inherit`}}}),or=e=>p(ar(e)),sr=e=>{let t=new URL(e,`https://www.shopify.com`);return t.searchParams.set(`originalWidth`,`1848`),t.searchParams.set(`originalHeight`,`782`),t.toString()};function cr({article:e,enBlogPath:t,blogLinkText:n,blogType:r}){let{localizePath:i}=B(),a=ce(e.tags),o=!!e.imageUrl&&!e.imageClass?.includes(`hidden`),s=r===z.ENTERPRISE,c=A(e.metafields||[],e.authorV2),l=new Date(e.modifiedAt),u=new Date(e.publishedAt),d=l.getDate()===u.getDate()&&l.getFullYear()===u.getFullYear(),f=e.metafields&&O(e.metafields),p={name:f,url:M({localizedBlogPath:i(t),authorName:f})};return(0,G.jsxs)(`div`,{className:`relative`,children:[(0,G.jsx)(`div`,{className:$n({isImageVisible:o}),"data-mode":`light`,children:(0,G.jsxs)(`div`,{className:`container desktop:w-9/12 desktop:mx-auto`,children:[(0,G.jsxs)(`div`,{className:tr({isImageVisible:o,blogType:r}),children:[(0,G.jsx)(`a`,{href:i(t),className:or({blogType:r}),children:n}),a&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(g,{as:`span`,className:`px-2.5 text-xs`,children:`|`}),(0,G.jsx)(`a`,{href:i(s?`${t}topics/${e.topicHandle}`:le(t,a)),className:or({blogType:r}),children:a})]})]}),(0,G.jsx)(g,{as:`h1`,className:nr({blogType:r}),itemProp:`headline`,children:e.title}),(e.excerpt||e.seo?.description)&&(0,G.jsx)(g,{as:`p`,className:rr({isImageVisible:o,blogType:r}),children:e.excerpt||e.seo?.description}),(0,G.jsx)(`div`,{className:`lg:hidden mt-4 tablet-xl:mt-12`,children:(0,G.jsx)(N,{blogPageType:r,enBlogPath:t,authorData:c,modifiedAt:s?``:e.modifiedAt,ns:`pages${t}$article/content`,className:ir({blogType:r}),showContributorLink:d,contributor:p})})]})}),o&&(0,G.jsx)(`div`,{className:`tablet:container desktop:w-9/12 desktop:mx-auto overflow-hidden flex justify-center`,children:e.imageUrl&&(0,G.jsx)(T,{src:sr(e.imageUrl),loading:`eager`,alt:e.imageAltText||``,className:e.imageClass||``})})]})}var lr=S(`overflow-hidden lg:hidden tablet-xl:pt-0 pt-0 [&_h5]:uppercase`,{variants:{blogType:{[z.BLOG]:`[&_.popular-posts]:border-t-2`,[z.RETAIL]:`[&_.popular-posts]:border-t-2`,[z.PARTNERS]:`[&_.popular-posts]:border-t-2`,[z.ENTERPRISE
65]:`bg-white [&_h3]:uppercase [&_h3]:font-faktum [&_h3]:!font-normal [&_h3]:!text-sm [&_article]:border-t [&_article]:border-shade-30`,[z.ENGINEERING]:[ue.title,`[&_.blogPost>div:first-child>a:not(:hover)]:text-engineering-highlight`]}}}),ur=S(`featured-blogs gap-y-0 pb-0 pt-36`,{variants:{blogType:{[z.BLOG]:``,[z.RETAIL]:``,[z.PARTNERS]:``,[z.ENTERPRISE]:`bg-white`,[z.ENGINEERING]:`bg-transparent`}}}),dr=`[data-component-name='blog-show-ai-summary-button']`;function fr({article:e,enBlogPath:t,popularPosts:n,contentNavigationLinks:r,articleContentHtml:i,blogLinkText:a,settings:o,blogPageType:s,header:c,enterpriseAuthor:l,editionsPromotionData:u,shareImage:d,dataSourceIndicator:f}){let{t:p}=v(`pages${t}$article/content`),{localizePath:m}=B();Qn({componentSelector:dr,articleContentHtml:i});let{subscription:h,images:g}=o,_=`${m(t)}/${e.handle}`,y=s===z.ENTERPRISE,b=s===z.ENGINEERING,x=s===z.RETAIL,S=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`meta`,{itemProp:`mainEntityOfPage`,content:_}),(0,G.jsx)(`meta`,{itemProp:`dateModified`,content:new Date(e.modifiedAtRaw).toISOString()}),e.createdAtRaw&&(0,G.jsx)(`meta`,{itemProp:`datePublished`,content:new Date(e.createdAtRaw).toISOString()}),d&&(0,G.jsx)(`meta`,{itemProp:`image`,content:d})]}),{site:w}=V(),T=w.languageCode===`en`&&s===z.BLOG,E=()=>x?{...p(`subscription`),heading:p(`subscribeBanner.retail.title`),subhead:p(`subscribeBanner.retail.description`),disclaimer:p(`keepUpWithTerms.hint`)}:T?{...p(`subscription`),heading:p(`keepUpWithTerms.title`),subhead:p(`keepUpWithTerms.description`),disclaimer:p(`keepUpWithTerms.hint`)}:p(`subscription`),D=new Date(e.modifiedAt),O=new Date(e.publishedAt),A=D.getDate()===O.getDate()&&D.getFullYear()===O.getFullYear(),j=k(e.metafields||[]);return(0,G.jsxs)(C,{className:ur({blogType:s}),componentName:e.handle,children:[c,(0,G.jsxs)(`article`,{id:`article`,itemScope:!0,itemType:`https://schema.org/Article`,className:`featured-blogs__section`,children:[S,e.podcastData&&(0,G.jsx)(Zn,{podcastData:e.podcastData}),(0,G.jsx)(cr,{blogType:s,blogLinkText:a,article:e,enBlogPath:t}),f&&(0,G.jsx)(`div`,{className:`container mb-8 mt-4`,children:f}),(0,G.jsx)(Un,{content:i,title:e.title,author:e.author?{name:e.author.name,email:e.author.email}:void 0,modifiedAt:e.modifiedAt,authorAvatarUrl:e.author?.avatarUrl,popularPosts:n,enBlogPath:t,contentNavigationLinks:r,settings:o,blogPageType:s,articleHandle:e.handle,metafields:e.metafields,showContributorLink:A,enterpriseAuthor:l,editionsPromotionData:u}),(0,G.jsxs)(`div`,{itemProp:`publisher`,itemScope:!0,itemType:`https://schema.org/Organization`,children:[(0,G.jsx)(`meta`,{itemProp:`name`,content:`Shopify`}),(0,G.jsxs)(`div`,{itemProp:`logo`,itemScope:!0,itemType:`https://schema.org/ImageObject`,children:[(0,G.jsx)(`meta`,{itemProp:`url`,content:`https://cdn.shopify.com/assets/images/logos/shopify_logo_black.png`}),(0,G.jsx)(`meta`,{itemProp:`width`,content:`210`}),(0,G.jsx)(`meta`,{itemProp:`height`,content:`60`})]})]})]}),n.length>0&&(0,G.jsx)(Ae,{blogPageType:`article`,blogType:s,primaryArticles:n,enBlogPath:t,heading:p(`popularPostsTitle`),headingTag:y?`h3`:`h5`,carouselName:`popular-posts`,className:lr({blogType:s}),mode:`default`,blogCardMode:y?`light`:void 0}),!b&&!j&&(0,G.jsx)(Xn,{...E(),subscriptionId:h?.settings?.subscriptionId,imageSrc:g.subscription.image.en,blogType:s,mode:s===z.ENTERPRISE?z.ENTERPRISE:`default`})]})}var pr=S(`fixed top-0 left-0 h-[6px] z-50`,{variants:{blogType:{[z.BLOG]:`bg-blog-highlight`,[z.RETAIL]:`bg-retail-highlight`,[z.PARTNERS]:`bg-partners-highlight`,[z.ENTERPRISE]:`bg-[#cdf986]`,[z.ENGINEERING]:`bg-engineering-highlight`}},defaultVariants:{blogType:z.BLOG}}),mr=({blogPageType:e})=>{let[t,n]=(0,W.useState)(null),r=(0,W.useRef)(null);(0,W.useEffect)(()=>{let e=()=>{r.current!==null&&window.cancelAnimationFrame(r.current),r.current=window.requestAnimationFrame(i)};return window.addEventListener(`scroll`,e),window.addEventListener(`resize`,e),i(),()=>{window.removeEventListener(`scroll`,e),window.removeEventListener(`resize`,e),r.current!==null&&window.cancelAnimationFrame(r.current)}},[]);let i=()=>{let e=document.getElementById(H),t=window?.scrollY,r=e?.scrollHeight||1;n((100*t/r).toFixed(2))};return(0,G.jsx)(`div`,{className:pr({blogType:e}),style:{width:`${t}%`}})};export{Dn as a,yn as c,fn as d,en as f,Ke as g,qt as h,Zn as i,_n as l,Zt as m,fr as n,En as o,Qt as p,Qn as r,Cn as s,mr as t,hn as u}; 66//# sourceMappingURL=TopScrollbar-mhvnYh3Y.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.