1import{B as e,H as t,z as n}from"./chunk-62JRHF6Z-CS0B5gRj.js";import{t as r}from"./jsx-runtime-Dv7-ob3D.js";import{T as i,h as a,m as o,x as s}from"./Wrapper-Qou99p7r.js";import{C as c,_t as l,ft as u,gt as d,ht as f,mt as p,n as m,pt as h,ut as g}from"./I18N-DbcewOge.js";import{_,v}from"./NavigationSearch-DXn_9sL1.js";import{a as y,c as b,d as x,f as S,i as C,l as w,n as T,u as ee}from"./style-BjFV1eZC.js";var E=e(((e,t)=>{t.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}})),D=t(n()),O=t(E()),k=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function A(e){var t={type:`tag`,name:``,voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(O.default[n[1]]||e.charAt(e.length-2)===`/`)&&(t.voidElement=!0),t.name.startsWith(`!--`))){var r=e.indexOf(`-->`);return{type:`comment`,comment:r===-1?``:e.slice(4,r)}}for(var i=new RegExp(k),a=null;(a=i.exec(e))!==null;)if(a[0].trim())if(a[1]){var o=a[1].trim(),s=[o,``];o.indexOf(`=`)>-1&&(s=o.split(`=`)),t.attrs[s[0]]=s[1],i.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var j=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,M=/^\s*$/,N=Object.create(null);function P(e,t){switch(t.type){case`text`:return e+t.content;case`tag`:return e+=`<`+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+`="`+e[n]+`"`);return t.length?` `+t.join(` `):``}(t.attrs):``)+(t.voidElement?`/>`:`>`),t.voidElement?e:e+t.children.reduce(P,``)+`</`+t.name+`>`;case`comment`:return e+`<!--`+t.comment+`-->`}}var F={parse:function(e,t){t||={},t.components||=N;var n,r=[],i=[],a=-1,o=!1;if(e.indexOf(`<`)!==0){var s=e.indexOf(`<`);r.push({type:`text`,content:s===-1?e:e.substring(0,s)})}return e.replace(j,function(s,c){if(o){if(s!==`</`+n.name+`>`)return;o=!1}var l,u=s.charAt(1)!==`/`,d=s.startsWith(`<!--`),f=c+s.length,p=e.charAt(f);if(d){var m=A(s);return a<0?(r.push(m),r):((l=i[a]).children.push(m),r)}if(u&&(a++,(n=A(s)).type===`tag`&&t.components[n.name]&&(n.type=`component`,o=!0),n.voidElement||o||!p||p===`<`||n.children.push({type:`text`,content:e.slice(f,e.indexOf(`<`,f))}),a===0&&r.push(n),(l=i[a-1])&&l.children.push(n),i[a]=n),(!u||n.voidElement)&&(a>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(a--,n=a===-1?r:i[a]),!o&&p!==`<`&&p)){l=a===-1?r:i[a].children;var h=e.indexOf(`<`,f),g=e.slice(f,h===-1?void 0:h);M.test(g)&&(g=` `),(h>-1&&a+l.length>=0||g!==` `)&&l.push({type:`text`,content:g})}}),r},stringify:function(e){return e.reduce(function(e,t){return e+P(``,t)},``)}},I=(e,t)=>{if(!e)return!1;let n=e.props?.children??e.children;return t?n.length>0:!!n},L=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?z(t):t},R=e=>Array.isArray(e)&&e.every(D.isValidElement),z=e=>Array.isArray(e)?e:[e],B=(e,t)=>{let n={...t};return n.props=Object.assign(e.props,t.props),n},V=(e,t,n,r)=>{if(!e)return``;let i=``,a=z(e),o=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return a.forEach((e,a)=>{if(f(e)){i+=`${e}`;return}if((0,D.isValidElement)(e)){let{props:s,type:c}=e,l=Object.keys(s).length,u=o.indexOf(c)>-1,d=s.children;if(!d&&u&&!l){i+=`<${c}/>`;return}if(!d&&(!u||l)||s.i18nIsDynamicList){i+=`<${a}></${a}>`;return}if(u&&l===1&&f(d)){i+=`<${c}>${d}</${c}>`;return}let p=V(d,t,n,r);i+=`<${a}>${p}</${a}>`;return}if(e===null){d(n,`TRANS_NULL_VALUE`,`Passed in a null value as child`,{i18nKey:r});return}if(p(e)){let{format:t,...a}=e,o=Object.keys(a);if(o.length===1){let e=t?`${o[0]}, ${t}`:o[0];i+=`{{${e}}}`;return}d(n,`TRANS_INVALID_OBJ`,`Invalid child - Object should only have keys {{ value, format }} (format is optional).`,{i18nKey:r,child:e});return}d(n,`TRANS_INVALID_VAR`,`Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`,{i18nKey:r,child:e})}),i},H=(e,t,n,r,i,a)=>{if(t===``)return[];let o=r.transKeepBasicHtmlNodesFor||[],s=t&&new RegExp(o.map(e=>`<${e}`).join(`|`)).test(t);if(!e&&!s&&!a)return[t];let c={},l=e=>{z(e).forEach(e=>{f(e)||(I(e)?l(L(e)):p(e)&&!(0,D.isValidElement)(e)&&Object.assign(c,e))})};l(e);let u=F.parse(`<0>${t}</0>`),d={...c,...i}
1,m=(e,t,n)=>{let r=L(e),i=g(r,t.children,n);return R(r)&&i.length===0||e.props?.i18nIsDynamicList?r:i},h=(e,t,n,r,i)=>{e.dummy?(e.children=t,n.push((0,D.cloneElement)(e,{key:r},i?void 0:t))):n.push(...D.Children.map([e],e=>{let n={...e.props};return delete n.i18nIsDynamicList,(0,D.createElement)(e.type,{...n,key:r,ref:e.ref},i?null:t)}))},g=(t,i,c)=>{let l=z(t);return z(i).reduce((t,i,u)=>{let _=i.children?.[0]?.content&&n.services.interpolator.interpolate(i.children[0].content,d,n.language);if(i.type===`tag`){let a=l[parseInt(i.name,10)];c.length===1&&!a&&(a=c[0][i.name]),a||={};let v=Object.keys(i.attrs).length===0?a:B({props:i.attrs},a),y=(0,D.isValidElement)(v),b=y&&I(i,!0)&&!i.voidElement,x=s&&p(v)&&v.dummy&&!y,S=p(e)&&Object.hasOwnProperty.call(e,i.name);if(f(v)){let e=n.services.interpolator.interpolate(v,d,n.language);t.push(e)}else if(I(v)||b)h(v,m(v,i,c),t,u);else if(x)h(v,g(l,i.children,c),t,u);else if(Number.isNaN(parseFloat(i.name)))if(S)h(v,m(v,i,c),t,u,i.voidElement);else if(r.transSupportBasicHtmlNodes&&o.indexOf(i.name)>-1)if(i.voidElement)t.push((0,D.createElement)(i.name,{key:`${i.name}-${u}`}));else{let e=g(l,i.children,c);t.push((0,D.createElement)(i.name,{key:`${i.name}-${u}`},e))}else if(i.voidElement)t.push(`<${i.name} />`);else{let e=g(l,i.children,c);t.push(`<${i.name}>${e}</${i.name}>`)}else if(p(v)&&!y){let e=i.children[0]?_:null;e&&t.push(e)}else h(v,_,t,u,i.children.length!==1||!_)}else if(i.type===`text`){let e=r.transWrapTextNodes,o=a?r.unescape(n.services.interpolator.interpolate(i.content,d,n.language)):n.services.interpolator.interpolate(i.content,d,n.language);e?t.push((0,D.createElement)(e,{key:`${i.name}-${u}`},o)):t.push(o)}return t},[])};return L(g([{dummy:!0,children:e||[]}],u,z(e||[]))[0])},U=(e,t,n)=>{let r=(0,D.cloneElement)(e,{key:e.key||t});if(!r.props||!r.props.children||n.indexOf(`${t}/>`)<0&&n.indexOf(`${t} />`)<0)return r;function i(){return(0,D.createElement)(D.Fragment,null,r)}return(0,D.createElement)(i)},W=(e,t)=>e.map((e,n)=>U(e,n,t)),G=(e,t)=>{let n={};return Object.keys(e).forEach(r=>{Object.assign(n,{[r]:U(e[r],r,t)})}),n},te=(e,t,n,r)=>e?Array.isArray(e)?W(e,t):p(e)?G(e,t):(l(n,`TRANS_INVALID_COMPONENTS`,`<Trans /> "components" prop expects an object or array`,{i18nKey:r}),null):null;function ne({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a={},values:o,defaults:s,components:c,ns:d,i18n:p,t:m,shouldUnescape:g,..._}){let v=p||u();if(!v)return l(v,`NO_I18NEXT_INSTANCE`,`Trans: You need to pass in an i18next instance using i18nextReactModule`,{i18nKey:r}),e;let y=m||v.t.bind(v)||(e=>e),b={...h(),...v.options?.react},x=d||y.ns||v.options?.defaultNS;x=f(x)?[x]:x||[`translation`];let S=V(e,b,v,r),C=s||S||b.transEmptyNodeValue||r,{hashTransKey:w}=b,T=r||(w?w(S||C):S||C);v.options?.interpolation?.defaultVariables&&(o=o&&Object.keys(o).length>0?{...o,...v.options.interpolation.defaultVariables}:{...v.options.interpolation.defaultVariables});let ee=o||t!==void 0&&!v.options?.interpolation?.alwaysFormat||!e?a.interpolation:{interpolation:{...a.interpolation,prefix:`#$?`,suffix:`?$#`}},E={...a,context:i||a.context,count:t,...o,...ee,defaultValue:C,ns:x},O=T?y(T,E):C,k=H(te(c,O,v,r)||e,O,v,b,E,g),A=n??b.defaultTransParent;return A?(0,D.createElement)(A,_,k):k}function K({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a={},values:o,defaults:s,components:c,ns:l,i18n:d,t:f,shouldUnescape:p,...m}){let{i18n:h,defaultNS:_}=(0,D.useContext)(g)||{},v=d||h||u(),y=f||v?.t.bind(v);return ne({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:a,values:o,defaults:s,components:c,ns:l||y?.ns||_||v?.options?.defaultNS,i18n:v,t:f,shouldUnescape:p,...m})}var re=e(((e,t)=>{function n(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}t.exports=n})),q=t(o(),1),ie=t(re(),1),J=({localizedBlogPath:e,authorName:t})=>{if(!t)return;let n=t?.toLowerCase()?.replaceAll(` `,`-`);return`${e.replace(/\/$/,``)}/authors/${n}`};function ae(e,t,n,r){let i=encodeURIComponent(e),a=n.replaceAll(` `,`+`);switch(t){case`facebook`:return`https://www.facebook.com/sharer/sharer.php?u=${i}`;case`twitter`:return`https://twitter.com/intent/tweet?text=${a}&url=${i}&via=Shopify`;case`linkedin`:return`https://www.linkedin.com/shareArticle?mini=true&source=Sh
1opify&title=${a}&url=${i}`;case`email`:return`mailto:?subject=${a}&body=${a}%0A${i}%0A%0A${r}`}}function oe(e){let t=e?.find(e=>e?.key===`second_author`)?.value||``;return typeof t==`string`?t:``}var se=e=>e===c.ENTERPRISE?`/enterprise/blog`:e===c.ENGINEERING?`/blog`:`/${e}${e===`partners`?`/blog`:``}`,ce=(e,t)=>e.split(` `).slice(0,t).join(` `),le=({blogPageType:e,signupUrl:t,localizePath:n})=>{switch(e){case c.ENTERPRISE:return n(`/solutions/retail/enterprise`);case c.RETAIL:return n(`/pos?itcat=retailblog&itterm=seasonal_ad`);default:return t}},ue=e=>e.split(` `).map(e=>e[0]).join(``),de=250,fe=e=>{if(!e)return 0;let t=(0,ie.default)(e.split(` `)).length;return Math.ceil(t/de)},pe=e=>e?.find(e=>e?.key===`hide_subscribe_modules`)?.value===`true`||!1,Y=r();function me({className:e}){return(0,Y.jsx)(`svg`,{className:e,xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,children:(0,Y.jsx)(`g`,{id:`Spot Icons`,children:(0,Y.jsx)(`path`,{id:`Fill`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.9908 5.63498C11.2162 5.82378 11.2464 6.15942 11.0584 6.3852L7.68058 10.2963C7.59169 10.4044 7.4644 10.4734 7.32502 10.4883H7.27169C7.14013 10.4876 7.01355 10.4382 6.91613 10.3496L4.96058 8.57187C4.7604 8.35605 4.77284 8.01862 4.98867 7.81809C5.17782 7.64245 5.46547 7.62751 5.67169 7.78253L7.2148 9.18698L10.237 5.70253C10.4262 5.47676 10.7625 5.44725 10.9883 5.6364C10.9894 5.63711 10.9901 5.63782 10.9908 5.63854V5.63498ZM6.23663 2.12251C6.07378 2.12251 5.91769 2.1986 5.81814 2.33442L5.13405 3.26989C4.93529 3.54153 4.65974 3.73922 4.33725 3.84233L3.22685 4.19682C3.01174 4.26544 2.86774 4.46171 2.86809 4.685L2.87023 5.83984C2.87129 6.17442 2.76605 6.49478 2.56623 6.76607L1.87823 7.69869C1.74525 7.87896 1.74525 8.12144 1.87823 8.30171L2.56623 9.23469C2.76605 9.50562 2.87129 9.82598 2.87023 10.1609L2.86809 11.3154C2.86774 11.5387 3.01174 11.735 3.22649 11.8036L4.33761 12.1584C4.65974 12.2612 4.93529 12.4592 5.13405 12.7305L5.81814 13.666C5.95041 13.847 6.18294 13.9223 6.39841 13.8523L7.50774 13.4935C7.82952 13.3894 8.17014 13.3894 8.49263 13.4935L9.60161 13.8523C9.81529 13.922 10.0492 13.847 10.1819 13.666L10.866 12.7305C11.0647 12.4592 11.3403 12.2612 11.6628 12.1581L12.7732 11.8036C12.9883 11.735 13.1323 11.5387 13.1319 11.3154L13.1298 10.1606C13.1287 9.82598 13.234 9.50562 13.4338 9.23469L14.1218 8.30171C14.2548 8.12144 14.2548 7.87896 14.1218 7.69869L13.4338 6.76571C13.234 6.49478 13.1287 6.17442 13.1298 5.83949L13.1319 4.68536C13.1323 4.46171 12.9883 4.26544 12.7735 4.19718L11.6624 3.84233C11.3403 3.73922 11.0647 3.54153 10.866 3.26989L10.1819 2.33442C10.0492 2.15344 9.81636 2.07807 9.60161 2.14811L8.49263 2.50687C8.17014 2.61104 7.82952 2.61104 7.50738 2.50687L6.39841 2.14811C6.34507 2.13069 6.29032 2.12251 6.23663 2.12251ZM6.23485 14.9337C5.73708 14.9337 5.25885 14.7008 4.95414 14.2845L4.27005 13.3494C4.20499 13.2605 4.11503 13.1958 4.00979 13.1623L2.89903 12.8075C2.24161 12.5977 1.80037 11.9972 1.80179 11.3138L1.80392 10.1593C1.80392 10.0495 1.76979 9.94492 1.70437 9.85674L1.01672 8.92341C0.609254 8.37158 0.609254 7.62954 1.01672 7.07701L1.70437 6.14438C1.76979 6.05621 1.80392 5.95132 1.80392 5.84181L1.80179 4.68696C1.80037 4.00358 2.24161 3.40341 2.89903 3.19327L4.00979 2.83878C4.11503 2.80501 4.20499 2.7403 4.27005 2.65141L4.95414 1.7163C5.35948 1.1627 6.07272 0.932296 6.72979 1.14563L7.83912 1.50438C7.94472 1.53852 8.05601 1.53852 8.16054 1.50438H8.1609L9.27023 1.14563C9.92659 0.932296 10.6402 1.16234 11.0459 1.7163L11.73 2.65141C11.795 2.7403 11.885 2.80501 11.9902 2.83843L13.101 3.19327C13.7584 3.40341 14.1997 4.00358 14.1982 4.68696L14.1961 5.84145C14.1961 5.95132 14.2302 6.05621 14.2957 6.14438L14.9833 7.07736C15.3908 7.62954 15.3908 8.37158 14.9833 8.92376L14.2957 9.85639C14.2302 9.94492 14.1961 10.0495 14.1961 10.159L14.1982 11.3138C14.1997 11.9972 13.7584 12.5977 13.101 12.8075L11.9902 13.162C11.885 13.1958 11.795 13.2605 11.73 13.3494L11.0459 14.2845C10.6405 14.8381 9.92659 15.0678 9.27023 14.8555L8.1609 14.4964C8.0553 14.4626 7.94401 14.4626 7.83948 14.4964L6.72979 14.8555C6.56623 14.9081 6.39948 14.9337 6.23485 14.9337Z`,fill:`black`})})})}var he=s([`text-lg font-sans leading-[18px] font-bold mb-2`],{variants:{blogPageType:{[c.BLOG]:`items-baseline`,[c.RETAIL
1]:`items-baseline`,[c.PARTNERS]:`items-baseline`,[c.ENTERPRISE]:`font-sans [&_>div]:!text-legacy-gray-90 [&_a]:text-legacy-gray-90 [&_span]:text-legacy-gray-90 items-baseline`,[c.ENGINEERING]:`text-engineering-dark-text`}}}),ge=s([`gap-x-1`],{variants:{hasPrefixValue:{true:``,false:`flex flex-wrap`}}}),_e=s([`text-body-sm text-shade-50`],{variants:{blogPageType:{[c.BLOG]:``,[c.RETAIL]:``,[c.PARTNERS]:``,[c.ENTERPRISE]:`text-button-light-secondary-border-active`,[c.ENGINEERING]:`font-normal text-engineering-dark-accent`}}}),X=e=>i(_e(e)),ve=s(``,{variants:{blogPageType:{[c.BLOG]:`font-bold text-legacy-gray-90`,[c.RETAIL]:`font-bold text-legacy-gray-90`,[c.PARTNERS]:`font-bold text-legacy-gray-90`,[c.ENTERPRISE]:`no-underline text-section-dark-text`,[c.ENGINEERING]:`font-bold text-engineering-dark-text`}}}),ye=s([`flex items-center gap-x-1 justify-center lg:justify-start`],{variants:{hasPrefixValue:{true:`mt-3 mb-1 text-body-sm flex-wrap`,false:``}}}),be=s(`font-bold text-xs font-sans uppercase mt-4 tablet-xl:mt-0 tablet-xl:text-right`,{variants:{blogPageType:{[c.BLOG]:``,[c.RETAIL]:``,[c.PARTNERS]:``,[c.ENTERPRISE]:``,[c.ENGINEERING]:`text-engineering-dark-accent`}}}),xe=s(`block h-9 w-9 fill-black hover:fill-shade-7`,{variants:{blogPageType:{[c.BLOG]:``,[c.RETAIL]:``,[c.PARTNERS]:``,[c.ENTERPRISE]:``,[c.ENGINEERING]:`fill-[#E7ECFB]`}}}),Se=e=>i(xe(e)),Ce=({author:e,ns:t,enBlogPath:n,upliftMigration:r=!1})=>{let{localizePath:a}=m(),o=e?.prefix?.includes(`written`)?`writtenBy`:`author`,s=J({localizedBlogPath:a(n),authorName:e?.name});return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(K,{i18nKey:e.prefix,ns:t}),` `,(0,Y.jsx)(K,{i18nKey:`authorSection.byAuthor`,values:{authorName:e.name},ns:t,context:s&&`withLink`,components:{wrapper:(0,Y.jsx)(`span`,{itemProp:o,itemScope:!0,itemType:`https://schema.org/Person`}),url:(0,Y.jsx)(`a`,{href:s,className:i(`no-underline`,r&&`text-black/60 hover:text-link-light-hover active:text-link-light-active focus-visible:text-black/60`),itemProp:`url`}),name:(0,Y.jsx)(`span`,{itemProp:`name`})}})]})};function Z({contributor:e,modifiedAt:t,blogPageType:n,showContributorLink:r,namespace:i}){let{t:a}=m(),o=e?.name&&e?.url,s=!o&&t&&r===!0,c=!o&&t&&r===!1;return(0,Y.jsxs)(Y.Fragment,{children:[o&&t&&(0,Y.jsx)(`div`,{className:X({blogPageType:n}),children:(0,Y.jsx)(K,{i18nKey:`authorSection.updatedOnByAuthor`,values:{authorName:e?.name,updatedOn:t},ns:i,context:e?.url&&`withLink`,components:{wrapper:(0,Y.jsx)(`span`,{itemProp:`url`,itemScope:!0,itemType:`https://schema.org/Person`}),name:(0,Y.jsx)(`a`,{href:e?.url,className:`no-underline`,itemProp:`url`}),updatedDate:(0,Y.jsx)(`time`,{})}})}),s&&(0,Y.jsxs)(`div`,{className:X({blogPageType:n}),children:[a(`authorSection.publishedOn`),` `,(0,Y.jsx)(`time`,{children:t})]}),c&&(0,Y.jsxs)(`div`,{className:X({blogPageType:n}),children:[a(`authorSection.updatedOn`),` `,(0,Y.jsx)(`time`,{children:t})]})]})}var Q=({ns:e,className:t,enBlogPath:n,authorData:r,modifiedAt:a,blogPageType:o,timeToRead:s,contributor:c,showContributorLink:l,upliftMigration:u=!1})=>{let{localizePath:d}=m();if(!r.length)return null;let[f,...p]=r,h=f?.prefix?.includes(`reviewed`)?`reviewedBy`:`author`,g=J({localizedBlogPath:d(n),authorName:f?.name}),_=f?.isDisabledAuthor,v=(0,Y.jsxs)(Y.Fragment,{children:[f.prefix&&(0,Y.jsxs)(`span`,{children:[(0,Y.jsx)(K,{i18nKey:f.prefix,ns:e}),` `]}),_?(0,Y.jsx)(K,{i18nKey:`authorSection.byAuthor`,values:{authorName:f.name},ns:e,components:{wrapper:(0,Y.jsx)(`span`,{itemProp:h,itemScope:!0,itemType:`https://schema.org/Person`}),name:(0,Y.jsx)(`span`,{itemProp:`name`})}}):(0,Y.jsx)(K,{i18nKey:`authorSection.byAuthor`,values:{authorName:f.name},ns:e,context:g&&`withLink`,components:{wrapper:(0,Y.jsx)(`span`,{itemProp:h,itemScope:!0,itemType:`https://schema.org/Person`}),url:(0,Y.jsx)(`a`,{href:g,className:i(`no-underline`,u&&`text-black/60 hover:text-link-light-hover active:text-link-light-active focus-visible:text-black/60`),itemProp:`url`}),name:(0,Y.jsx)(`span`,{itemProp:`name`})}})]}),y=(0,Y.jsx)(K,{i18nKey:`authorSection.timeToRead`,values:{minutes:s},ns:e}),b=a?(0,Y.jsxs)(Y.Fragment,{children:[` ⢠`,y]}):y;return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`div`,{className:i(ge({hasPrefixValue:p.length>0&&!!p[0].prefix}),t),children:[v,p?.map((t,r)=>(0,Y.jsx)(D.Fragment,{children:t.name&&(0,Y.jsxs)(`div`,{className:ye({hasPrefixValue:!!t.prefix}),children:[!t.prefix&&(0,Y.jsx)(`span`,{children:` / `}),t.prefix?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(me,{}),(0,Y.jsx)(Ce,{author:t,ns:e,enBlogPath:n,upliftMigration:u})]}):(0,Y.jsx)(`a`,{href:J({localizedBlogPath:d(n),authorName:t?.name}),className:i(!u&&ve({blogPageType:o}),u&&`text-black/60 hover:text-link-light-hover active:text-link-light-active focus-visible:text-black/60`),children:(0,Y.jsx)(`span`,{children:`${t?.name}`})})]})},`${t.slug||t.name}-${r}`))]}),(0,Y.jsx)(Z,{contributor:c,modifiedAt:a,blogPageType:o,showContributorLink:l,namespace:e}),Number(s)>0&&(0,Y.jsx)(`span`,{className:X({blogPageType:o}),children:b})]})},we=new Set([`alt`,`crossOrigin`,`decoding`,`height`,`loading`,`referrerPolicy`,`sizes`,`src`,`srcSet`,`useMap`,`width`,`className`,`id`,`style`,`title`,`tabIndex`,`role`,`aria-label`,`aria-labelledby`,`aria-hidden`,`aria-role`,`aria-controls`,`aria-expanded`]);function Te(e){let t={};for(let n in e)we.has(n)&&(t[n]=e[n]);return t}function $({alt:e=``,decoding:t=`async`,fetchPriority:n,height:r,loading:i=`lazy`,sizes:a,src:o,srcSet:s,srcSetOptions:c={intervals:15,startingWidth:200,incrementSize:200},width:l,...u}){let{searchParams:d}=new URL(o,`https://www.shopify.com`),f=d?.get(`originalWidth`),p=d?.get(`originalHeight`),m=parseInt(f||`0`,10)||0,h=parseInt(p||`0`,10)||0,{intervals:g,startingWidth:_,incrementSize:v}=c,y=(0,D.useMemo)(()=>{let e=[];for(let t=0;t<g;t++){let n=t*v+_;n<m?e.push(n):t=g}return e},[g,_,v,m]),b=(0,D.useMemo)(()=>y.map(e=>`${o}&width=${e} ${e}w`).join(`, `),[y,o]),x=Te(u);return f&&p&&m&&h&&o?(0,Y.jsx)(`img`,{...x,src:o,alt:e,loading:i,decoding:t,width:l||m,height:r||h,srcSet:s||b||void 0,sizes:a||void 0,fetchpriority:n}):null}function Ee(e){return{authorData:e?.find(e=>e?.key===`authors`),reviewerData:e?.find(e=>e?.key===`reviewed_by`)}}function De(e,t){return Array.isArray(e?.value)?e.value:e?.references?.edges.map((e,n)=>({name:e.node.field.value,slug:e.node.handle,isDisabledAuthor:n===0&&t?.isDisabledAuthor}))||[]}function Oe(e){let t=e?.value||``;return{name:t,prefix:t?`authorSection.reviewed`:``}}function ke(e,t){let{authorData:n,reviewerData:r}=Ee(e),i=De(n,t),a=Oe(r);return i.length?[...i,a]:[{name:t?.name||``,slug:``,isDisabledAuthor:t?.isDisabledAuthor,prefix:a.name?`authorSection.written`:``},a]}function Ae({href:e,className:t,target:n,children:r,ariaLabel:i}){return e?(0,Y.jsx)(`a`,{href:e,className:t,"aria-label":i,rel:n===`_blank`?`noopener noreferrer`:``,target:n,children:r}):(0,Y.jsx)(`div`,{className:t,children:r})}var je=287,Me=1396,Ne=`(min-width: 1025px) 50vw, 100vw`,Pe={intervals:15,startingWidth:200,incrementSize:200};
1function Fe(e,t,n,r){typeof n==`number`?e.set(t,n.toString()):e.has(t)||e.set(t,r.toString())}function Ie(e,{smallImage:t=!1}={}){if(!e.imageUrl)return;let n=new URL(e.imageUrl,`https://www.shopify.com`),r=t?674:Me;return n.searchParams.set(`width`,r.toString()),Fe(n.searchParams,`originalWidth`,e.image?.width,674),Fe(n.searchParams,`originalHeight`,e.image?.height,je),n.toString()}function Le(e){let{searchParams:t}=new URL(e,`https://www.shopify.com`),n=parseInt(t.get(`originalWidth`)||`0`,10)||0;if(!n)return[];let{intervals:r,startingWidth:i,incrementSize:a}=Pe,o=[];for(let e=0;e<r;e++){let t=e*a+i;if(t<n)o.push(t);else break}return o}function Re(e,t){return`${e}&width=${t}`}function ze(e){if(!e)return[];let t=Ie(e);if(!t)return[];let n=Le(t);return n.length===0?[{tagName:`link`,rel:`preload`,as:`image`,fetchpriority:`high`,href:t}]:[{tagName:`link`,rel:`preload`,as:`image`,fetchpriority:`high`,href:Re(t,n[n.length-1]),imageSrcSet:n.map(e=>`${Re(t,e)} ${e}w`).join(`, `),imageSizes:Ne}]}var Be={hero:`678 / 287`,"grid-3":`457 / 202`,"grid-4":`674 / 287`,noImage:`1`};function Ve(e){if(`metafields`in e)return e}function He(e,t,n){if(`path`in e&&e.path!==void 0)return e.path;if(`handle`in e)return n(t+e.handle)}function Ue(e){return`disableTopicLink`in e&&!!e.disableTopicLink}function We(e){let t=`excerpt`in e?e.excerpt:void 0,n=`seo`in e?e.seo?.description:void 0;return t||n}function Ge(e){return`authorV2`in e?e.authorV2:void 0}function Ke(e){return`image`in e?e.image:void 0}function qe({article:e,enBlogPath:t,type:n=`noImage`,className:r,preferredTag:o,blogType:s,translationNamespace:l,target:u=`_self`,loadingImg:d=`lazy`,fetchPriority:f,mode:p,smallImage:h=!1,upliftMigration:g=!1}){let{localizePath:E}=m(),O=n===`hero`,k=g?(0,q.default)(`uppercase font-sans text-shade-100 hover:text-link-light-hover`,O||n===`grid-3`?`text-sm font-bold leading-none tracking-normal`:`text-xs font-bold leading-none tracking-normal`):void 0,A=g?`pb-2`:S,j=i((0,q.default)(`no-underline`,ee({blogType:s,mode:p})),k),M=`text-t7`;O?M=`text-t3`:n===`grid-3`&&(M=`text-t4`);let N=g?(0,q.default)(`pb-4 hover:underline font-sans text-shade-100`,M,M===`text-t7`&&`font-[450]`):x({type:n,blogType:s,mode:p}),P=g?`text-body-base text-black/60 pb-4`:(0,q.default)(`text-base desktop:text-body-base pb-4 leading-6 desktop:leading-[1.8rem] desktop:tracking-[-.02em]`,y({blogType:s,mode:p})),F=g?`font-sans text-body-sm mb-2 text-black/60`:T({isMobileHidden:!1,blogType:s,mode:p}),I=g?`font-sans text-body-sm text-black/60`:(0,q.default)(`font-sans font-normal text-shade-60`,C({blogType:s,mode:p})),L=s===c.ENTERPRISE,R=Ve(e),z=He(e,t,E),B=Ue(e),V=(0,D.useMemo)(()=>ke(R?.metafields??[],Ge(e)),[e,R]);if(!e)return null;let H=_(e.tags);o&&(H=e.tags.find(e=>e?.toLowerCase()===o.toLowerCase())||H);let U=()=>o?.startsWith(`/`)?o:E(v(t,L&&o?o:H)),W=h?674:Me,G=Ie({imageUrl:e.imageUrl,image:Ke(e)},{smallImage:h})||``;return(0,Y.jsxs)(`article`,{className:(0,q.default)(`article--index`,{"article--index--featured":O},r),children:[n!==`noImage`&&e.imageUrl&&(0,Y.jsx)(Ae,{href:z,className:i((0,q.default)(`overflow-hidden`),w({blogType:s})),target:u,children:(0,Y.jsx)($,{width:W/2,loading:d,src:G,alt:e.imageAltText||e.title,fetchPriority:f,sizes:O?`(min-width: 1025px) 50vw, 100vw`:void 0,style:{aspectRatio:Be[n]},className:b({type:n})})}),(0,Y.jsxs)(`div`,{className:`blogPost pt-4`,children:[H&&(0,Y.jsx)(`div`,{className:A,children:B?(0,Y.jsx)(`span`,{className:j,children:H}):(0,Y.jsx)(`a`,{href:U(),className:j,children:H})}),(0,Y.jsx)(`div`,{className:i(N),children:(0,Y.jsx)(`a`,{className:i(N),href:z,rel:u===`_blank`?`noopener noreferrer`:``,target:u,children:e.title})}),O?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:i(P),children:We(e)}),(0,Y.jsxs)(`div`,{className:`flex self-center flex-col`,children:[(0,Y.jsx)(Q,{blogPageType:s,ns:l||`pages${t}content`,enBlogPath:t,authorData:V,className:i(F),upliftMigration:g}),e.modifiedAt&&(0,Y.jsx)(a,{size:`body-sm`,className:i(I),children:e.modifiedAt})]})]}):(0,Y.jsx)(a,{size:`body-sm`,className:i(I),children:e.modifiedAt})]})]})}export{le as _,$ as a,he as c,se as d,oe as f,ue as g,pe as h,ke as i,Se as l,J as m,ze as n,Q as o,fe as p,Ae as r,Z as s,qe as t,be as u,ae as v,ce as y}; 2//# sourceMappingURL=BlogCard-Ck5K30NR.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.