PageSourceSearch

https://www.stickermule.com/core/_next/static/chunks/8367-5093abcb07e8b248.js

js stickermule.com collected 2026-10-01 07:46:40 UTC 46,282 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8367],{17963:function(e,t,i){i.d(t,{h:function(){return StoreVisibilityModal}});var n=i(85893),a=i(5379),s=i.n(a),r=i(2031),l=i(67294),o=i(95081),c=i(26955),d=i(18449),u=i(12080),m=i(52874),p=i(55761),x=i(98576),f=i(72407),y=i(6589),h=i(59348),b=i(44771),g=i(63246),_=i(26749),j=i(6420),v=i(20773),k=i(82729),w=i(68806),P=i(50319),S=i(36225);function _templateObject(){let e=(0,k._)(["\n  mutation UpdateStoreVisibility(\n    $userId: ID!\n    $isHidden: Boolean!\n    $reason: String!\n  ) {\n    stores {\n      updateStoreVisibility(\n        userId: $userId\n        isHidden: $isHidden\n        reason: $reason\n      )\n    }\n  }\n"]);return _templateObject=function(){return e},e}let C=(0,w.Ps)(_templateObject()),useUpdateStoreVisibilityMutation=()=>(0,P.D)(C,{context:{clientName:S.bd},awaitRefetchQueries:!0});var I=i(6812);function useStoreVisibilityLog_templateObject(){let e=(0,k._)(["\n  query STORE_VISIBILITY_LOG_QUERY($userId: ID!) {\n    storeVisibilityLogs(userId: $userId) {\n      id\n      reason\n      isHidden\n      createdAt\n    }\n  }\n"]);return useStoreVisibilityLog_templateObject=function(){return e},e}let N=(0,w.Ps)(useStoreVisibilityLog_templateObject()),useStoreVisibilityLog=e=>{let{variables:t,skip:i=!1}=e;return(0,I.a)(N,{context:{clientName:S.bd},variables:t,fetchPolicy:"network-only",skip:i})};var R=i(37183),A=i(90386);function useStoreReorderCandidatesPreview_templateObject(){let e=(0,k._)(["\n  query REORDER_CANDIDATES_PREVIEW_FOR_STORE_QUERY(\n    $spreeUserId: ID\n    $limit: Int!\n    $offset: Int!\n  ) {\n    reorderCandidatesOnUserProfile(spreeUserId: $spreeUserId) {\n      items(limit: $limit, offset: $offset) {\n        name\n        artworkUrl\n      }\n    }\n  }\n"]);return useStoreReorderCandidatesPreview_templateObject=function(){return e},e}let z=(0,w.Ps)(useStoreReorderCandidatesPreview_templateObject()),useStoreReorderCandidatesPreview=e=>(0,I.a)(z,{variables:{spreeUserId:e,limit:8,offset:0},context:{clientName:S.bd},fetchPolicy:"cache-first"}),StorePreview=e=>{var t,i;let{spreeId:a,vanityName:r,backgroundImage:l,avatar:o,name:c,fullName:u}=e,{baseColors:m,fontSizes:p}=(0,y.F)(),{data:x,loading:f}=useStoreReorderCandidatesPreview(a);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{"aria-hidden":!0,className:s().dynamic([["24c18f5c395f091d",[m.primary]]])+" container",children:[f&&(0,n.jsx)("div",{className:s().dynamic([["24c18f5c395f091d",[m.primary]]])+" loading",children:(0,n.jsx)(b.LoadingSpinner,{size:30})}),!f&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:s().dynamic([["24c18f5c395f091d",[m.primary]]])+" cover",children:l&&(0,n.jsx)("img",{alt:"",sizes:"270px",src:l,className:s().dynamic([["24c18f5c395f091d",[m.primary]]])})}),(0,n.jsx)(R.qE,{alt:r,className:"avatar",size:"md",src:o,userName:c||u,variant:A.DV[1]}),(0,n.jsx)("div",{className:s().dynamic([["24c18f5c395f091d",[m.primary]]])+" nameContainer",children:(0,n.jsx)(d.H3,{fontSize:p.p,fontSizeMediumUp:p.p,children:c||u})}),(0,n.jsx)("div",{className:s().dynamic([["24c18f5c395f091d",[m.primary]]])+" artworks",children:null==x?void 0:null===(i=x.reorderCandidatesOnUserProfile)||void 0===i?void 0:null===(t=i.items)||void 0===t?void 0:t.map(e=>(0,n.jsx)("img",{alt:e.name,src:e.artworkUrl,className:s().dynamic([["24c18f5c395f091d",[m.primary]]])+" artwork"},e.artworkUrl))})]})]}),(0,n.jsx)(s(),{id:"24c18f5c395f091d",dynamic:[m.primary],children:".container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;margin:auto;max-width:270px;max-height:250px;border:1px solid rgba(196,196,196,.5);-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;overflow:hidden;padding-bottom:12px}.container.__jsx-style-dynamic-selector .avatarContainer{margin-top:-48px}.container.__jsx-style-dynamic-selector .avatarContainer>div{border:2px solid white}.loading.__jsx-style-dynamic-selector{height:250px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;
1-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.cover.__jsx-style-dynamic-selector{height:90px;background-color:".concat(m.primary,";width:100%;-webkit-border-radius:8px 8px 0px 0px;-moz-border-radius:8px 8px 0px 0px;border-radius:8px 8px 0px 0px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.cover.__jsx-style-dynamic-selector img.__jsx-style-dynamic-selector{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;-webkit-border-radius:8px 8px 0px 0px;-moz-border-radius:8px 8px 0px 0px;border-radius:8px 8px 0px 0px}.nameContainer.__jsx-style-dynamic-selector{width:100%;padding:0 12px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.nameContainer.__jsx-style-dynamic-selector h3{margin:0;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.artworks.__jsx-style-dynamic-selector{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 12px}.artwork.__jsx-style-dynamic-selector{width:100%;height:auto;aspect-ratio:1;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;padding:4px;-o-object-fit:contain;object-fit:contain;background:#f2f2f2;height:55px}")})]})};var B=i(73227);let StoreVisibilityModal=e=>{var t,i,a,k,w,P,S,C,I;let{onClose:N,onUndo:R,vanityName:A}=e,{t:z}=(0,r.$)(),{textColors:O,space:U}=(0,y.F)(),{addToast:E}=(0,h.e1)(),[F,D]=(0,l.useState)(!1),[$,G]=(0,l.useState)(""),T=(0,u.M)(),{data:V}=(0,g.kP)(),{data:M,loading:L}=(0,j.G)(A,{fetchPolicy:"cache-first"}),H=null==M?void 0:null===(i=M.userProfile)||void 0===i?void 0:null===(t=i.store)||void 0===t?void 0:t.isHidden,[W]=useUpdateStoreVisibilityMutation(),{data:q,loading:X}=useStoreVisibilityLog({variables:{userId:null==M?void 0:null===(a=M.userProfile)||void 0===a?void 0:a.spreeId},skip:!(null==M?void 0:null===(k=M.userProfile)||void 0===k?void 0:k.spreeId)}),handleSubmit=async(e,t)=>{let{reason:i}=t;G(""),D(!0);let a=!H;try{var s,r,l;let{data:e,errors:t}=await W({variables:{userId:null==M?void 0:null===(s=M.userProfile)||void 0===s?void 0:s.spreeId,reason:i,isHidden:a},refetchQueries:[{query:j.S,variables:{vanityName:A}},{query:_.w,variables:{vanityName:V.user.vanityName}}]}),o=(null==e?void 0:null===(r=e.stores)||void 0===r?void 0:r.updateStoreVisibility)&&!(null==t?void 0:t.length);if(!o)throw Error(null==t?void 0:null===(l=t[0])||void 0===l?void 0:l.message);a&&E({title:null,type:"success",message:(0,n.jsxs)(n.Fragment,{children:["Store hidden from feed."," ",R&&(0,n.jsx)(f.z,{appearance:"anchor",onClick:R,style:{color:"inherit",textDecoration:"underline"},children:"Undo"})]}),timeout:5e3}),N()}catch(e){G(e.message)}D(!1)},Q=(0,v.j)(null==M?void 0:null===(w=M.userProfile)||void 0===w?void 0:w.backgroundImage,o.eM.cover[0]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(c.u,{"aria-labelledby":T,onClose:N,children:[L&&(0,n.jsx)("div",{className:s().dynamic([["ecdff9089fb79c9c",[O.light,U[4],U[4]]]])+" loading",children:(0,n.jsx)(b.LoadingSpinner,{size:30})}),!L&&(0,n.jsxs)("div",{className:s().dynamic([["ecdff9089fb79c9c",[O.light,U[4],U[4]]]])+" container",children:[(0,n.jsx)(d.H2,{id:T,margin:"0 0 4px 0",children:z(H?"store_visibility.Show_store":"store_visibility.Hide_store")}),(0,n.jsx)(d.P,{className:"description",children:z(H?"store_visibility.show_description":"store_visibility.hide_description")}),L&&(0,n.jsx)("div",{className:s().dynamic([["ecdff9089fb79c9c",[O.light,U[4],U[4]]]])+" loading",children:(0,n.jsx)(b.LoadingSpinner,{size:30})}),(0,n.jsx)("div",{className:s().dynamic([["ecdff9089fb79c9c",[O.light,U[4],U[4]]]])+" storePreview",children:(0,n.jsx)(StorePreview,{avatar:null==M?void 0:null===(P=M.userProfile)||void 0===P?void 0:P.avatar,backgroundImage:Q,fullName:null==M?void 0:null===(S=M.userProfile)||void 0===S?void 0:S.fullName,name:null==M?void 0:null===(C=M.userProfile)||void 0===C?void 0:C.name,spreeId:null==M?void 0:null===(I=M.userProfile)||void 0===I?void 0:I.spreeId,vanityName:A})}),(0,n.jsxs)(m.l0,{onSubmit:handleSubmit,children:[(0,n.jsx)(m.gN,{label:(0,n.jsx)(p._,{htmlFor:"reason",children:z("Reason")}),children:(0,n.jsx)(x.II,{id:"reason",name:"reason",required:!0})}),(0,n.jsxs)("div",{className:s().dynamic([["ecdff9089fb79c9c",[O.light,U[4],U[4]]]])+" storeVisibilityLog",children:[X&&(0,n.jsx)("div",{className:s().dynamic([["ecdff9089fb79c9c",[O.light,U[4],U[4]]]])+" loading",children:(0,n.jsx)(b.LoadingSpinner,{size:30})}),!X&&(0,n.jsx)(B.s,{type:"store",visibilityLogs:null==q?void 0:q.storeVisibilityLogs})]}),!!$&&(0,n.jsx)(m.Xq,{margin:"32px 0 0 0",children:$}),(0,n.jsx)("div",{className:s().dynamic([["ecdff9089fb79c9c",[O.light,U[4],U[4]]]])+" actions",children:(0,n.jsx)(f.z,{className:"toggleStoreButton",loading:F,size:"md",type:"submit",isFullWidth:!0,children:z(H?"store_visibility.Show_store":"store_visibility.Hide_store")})})]})]})]}),(0,n.jsx)(s(),{id:"ecdff9089fb79c9c",dynamic:[O.light,U[4],U[4]],children:".description.__jsx-style-dynamic-selector{color:".concat(O.light,"}.loading.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;
1-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.storePreview.__jsx-style-dynamic-selector,.storeVisibilityLog.__jsx-style-dynamic-selector{margin-bottom:").concat(U[4],"}.actions.__jsx-style-dynamic-selector{margin-top:12px}.actions.__jsx-style-dynamic-selector .toggleStoreButton,.actions.__jsx-style-dynamic-selector .toggleStoreButton:hover,.actions.__jsx-style-dynamic-selector .toggleStoreButton:focus{background-color:#f8da52;color:#5f4a15}.container.__jsx-style-dynamic-selector .field{margin-bottom:").concat(U[4],"}")})]})}},85983:function(e,t,i){i.d(t,{l:function(){return IssuePayment}});var n=i(85893),a=i(5379),s=i.n(a),r=i(67294),l=i(2031),o=i(94184),c=i.n(o),d=i(72407),u=i(52874),m=i(34827),p=i(50977),x=i(18449),f=i(98576),y=i(55761),h=i(82729),b=i(68806),g=i(50319),_=i(36225);function _templateObject(){let e=(0,h._)(["\n  mutation IssuePaymentMutation(\n    $recipientId: ID!\n    $amount: Float!\n    $reason: String!\n  ) {\n    stores {\n      issuePayment(recipientId: $recipientId, amount: $amount, reason: $reason)\n    }\n  }\n"]);return _templateObject=function(){return e},e}let j=(0,b.Ps)(_templateObject()),useIssuePayment=()=>(0,g.D)(j,{context:{clientName:_.bd},awaitRefetchQueries:!0});var v=i(48140),k=i(6812);function useWalletPayments_templateObject(){let e=(0,h._)(["\n  query WALLET_PAYMENTS_QUERY($userId: ID!) {\n    walletPayments(userId: $userId) {\n      payments {\n        id\n        amountInUsd\n        issuedAt\n        reason\n      }\n    }\n  }\n"]);return useWalletPayments_templateObject=function(){return e},e}let w=(0,b.Ps)(useWalletPayments_templateObject()),useWalletPayments=e=>{var t,i,n;let{data:a,previousData:s,loading:r,error:l,refetch:o}=(0,k.a)(w,{variables:{userId:e},context:{clientName:_.bd}}),c=null!==(n=null==a?void 0:null===(t=a.walletPayments)||void 0===t?void 0:t.payments)&&void 0!==n?n:null==s?void 0:null===(i=s.walletPayments)||void 0===i?void 0:i.payments;return{payments:c,total:100,loading:r,error:l,refetch:o}};var P=i(35354);let PaymentsHistory=e=>{let{payments:t}=e,{t:i}=(0,l.$)(),{localizeDate:a}=(0,P.bU)(),[o,c]=(0,r.useState)(!1),formatDate=e=>a(e,{year:"2-digit",month:"numeric",day:"numeric",timeZone:"UTC"});return t&&0!==t.length?o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"jsx-78c4b830841efe6b list",children:[(0,n.jsx)("h4",{className:"jsx-78c4b830841efe6b",children:"Activity"}),(0,n.jsx)(d.z,{appearance:"anchor",onClick:()=>c(!1),children:i("Hide")})]}),(0,n.jsx)("ul",{className:"jsx-78c4b830841efe6b",children:t.map(e=>(0,n.jsxs)("li",{className:"jsx-78c4b830841efe6b",children:[(0,n.jsxs)("div",{className:"jsx-78c4b830841efe6b amount",children:["$",e.amountInUsd.toFixed(2)]}),(0,n.jsxs)("div",{className:"jsx-78c4b830841efe6b",children:[(0,n.jsx)("span",{className:"jsx-78c4b830841efe6b reason",children:e.reason||i("Admin_deposit")}),(0,n.jsx)("span",{className:"jsx-78c4b830841efe6b issuedDate",children:i("issue_payment.Issued_{date}",{date:formatDate(new Date(e.issuedAt))})})]})]},e.id))}),(0,n.jsx)(s(),{id:"78c4b830841efe6b",children:"ul.jsx-78c4b830841efe6b{list-style-type:none;padding:0;margin:0}li.jsx-78c4b830841efe6b{display:grid;grid-gap:20px;grid-template-columns:minmax(52px,auto)1fr;border-top:1px solid#e5e5e5;padding:10px 0}li.jsx-78c4b830841efe6b:last-child{border-bottom:1px solid#e5e5e5}.list.jsx-78c4b830841efe6b{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:6px}.list.jsx-78c4b830841efe6b span.jsx-78c4b830841efe6b{font-weight:bold;display:flex 6px}.reason.jsx-78c4b830841efe6b{display:block;margin-bottom:8px}.issuedDate.jsx-78c4b830841efe6b{display:block;color:#757575;font-style:italic}h4.jsx-78c4b830841efe6b{margin:0}"})]}):(0,n.jsxs)("div",{className:"jsx-282ddaf79f922c91",children:[(0,n.jsx)(d.z,{appearance:"anchor",onClick:()=>c(!0),children:i("issue_payment.See_all_activity")}),(0,n.jsx)("span",{className:"jsx-282ddaf79f922c91",children:i("issue_payment.Last_payment_{date}",{date:formatDate(new Date(t[0].issuedAt))})}),(0,n.jsx)(s(),{id:"282ddaf79f922c91",children:"div.jsx-282ddaf79f922c91{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;
1-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}span.jsx-282ddaf79f922c91{color:#757575;font-style:italic}"})]}):null},AmountButton=e=>{let{amount:t,onClick:i}=e;return(0,n.jsxs)(d.z,{onClick:()=>i(t),size:"sm",variant:"colorless",isFullWidth:!0,children:["$",t]})},IssuePayment=e=>{let{spreeUserId:t}=e,{t:i}=(0,l.$)(),a=(0,r.useRef)(),[o,h]=(0,r.useState)(!1),[b,g]=(0,r.useState)(null),[_,j]=(0,r.useState)(null),[k]=useIssuePayment(),{payments:w,refetch:P,loading:S}=useWalletPayments(t),handleAmountButtonClick=e=>{a.current.value=e.toFixed(2)},handleError=e=>{g(e),(0,p.e)(e.message)},handleSubmit=async(e,n)=>{let{amount:a,reason:s}=n,r=e.target,l={recipientId:t,amount:parseFloat(a),reason:s};try{var o,c,d,u;h(!0);let e=await k({variables:l});(null===(c=e.data)||void 0===c?void 0:null===(o=c.stores)||void 0===o?void 0:o.issuePayment)?(await P(),j(i("issue_payment.success")),r.reset()):(null===(d=e.errors)||void 0===d?void 0:d.length)>0?handleError(Error(null===(u=e.errors)||void 0===u?void 0:u[0].message)):handleError(Error(i("issue_payment.failure"))),h(!1)}catch(e){handleError(e),h(!1)}};return(0,n.jsxs)(n.Fragment,{children:[b&&(0,n.jsx)(m.T,{onClose:()=>g(null),variant:"danger",shouldActAsToast:!0,children:b.message}),_&&(0,n.jsx)(m.T,{onClose:()=>j(null),variant:"success",autoClose:!0,shouldActAsToast:!0,children:_}),(0,n.jsx)(x.H2,{children:i("issue_payment.header")}),(0,n.jsx)("p",{className:s().dynamic([["54c5d4c55415b2a0",[v.eR.light]]])+" description",children:i("issue_payment.description")}),(0,n.jsxs)(u.l0,{onSubmit:handleSubmit,children:[(0,n.jsxs)(u.gN,{label:(0,n.jsx)(y._,{htmlFor:"amount",children:i("Amount")}),children:[(0,n.jsx)(f.II,{ref:a,defaultValue:"",leftAddOn:{variant:"contained",content:(0,n.jsx)(n.Fragment,{children:"$"})},max:2e4,min:.1,name:"amount",type:"number",required:!0}),(0,n.jsxs)("div",{className:s().dynamic([["54c5d4c55415b2a0",[v.eR.light]]])+" amountButtons",children:[(0,n.jsx)(AmountButton,{amount:10,onClick:handleAmountButtonClick}),(0,n.jsx)(AmountButton,{amount:25,onClick:handleAmountButtonClick}),(0,n.jsx)(AmountButton,{amount:50,onClick:handleAmountButtonClick}),(0,n.jsx)(AmountButton,{amount:100,onClick:handleAmountButtonClick})]})]}),(0,n.jsxs)("div",{className:s().dynamic([["54c5d4c55415b2a0",[v.eR.light]]])+" options",children:[(0,n.jsx)(u.gN,{label:(0,n.jsx)(y._,{htmlFor:"reason",children:i("Reason")}),children:(0,n.jsx)(f.II,{name:"reason",type:"text",required:!0})}),(0,n.jsx)("p",{className:s().dynamic([["54c5d4c55415b2a0",[v.eR.light]]])+" hint",children:i("issue_payment.reason_hint")})]}),(0,n.jsx)("div",{className:s().dynamic([["54c5d4c55415b2a0",[v.eR.light]]])+" "+(c()("paymentsHistory",{show:!S})||""),children:!S&&(0,n.jsx)(PaymentsHistory,{payments:w})}),(0,n.jsx)("div",{className:s().dynamic([["54c5d4c55415b2a0",[v.eR.light]]])+" actions",children:(0,n.jsx)(d.z,{className:"submitButton",loading:o,size:"md",type:"submit",isFullWidth:!0,children:i("issue_payment.submit")})})]}),(0,n.jsx)(s(),{id:"54c5d4c55415b2a0",dynamic:[v.eR.light],children:".hint.__jsx-style-dynamic-selector,.description.__jsx-style-dynamic-selector{color:".concat(v.eR.light,"}.amountButtons.__jsx-style-dynamic-selector{display:grid;grid-gap:12px;grid-template-columns:repeat(4,1fr);margin-top:12px}.amountButtons.__jsx-style-dynamic-selector button{background:none;font-weight:normal}.options.__jsx-style-dynamic-selector{>\n          display: grid;grid-template-columns:repeat(2,1fr);grid-gap:16px;margin:0 0 5px 0}.paymentsHistory.__jsx-style-dynamic-selector{margin-bottom:30px;margin-top:10px;opacity:0;-webkit-transition:opacity 300ms ease-out;-moz-transition:opacity 300ms ease-out;-o-transition:opacity 300ms ease-out;transition:opacity 300ms ease-out}.show.__jsx-style-dynamic-selector{opacity:1}.actions :global(.submitButton), \n        .actions :global(.submitButton):hover, \n        .actions :global(.submitButton):focus, {background-color:#f8da52;color:#5f4a15}")})]})}},45250:function(e,t,i){i.d(t,{O:function(){return IssueStoreCredit}});var n=i(85893),a=i(5379),s=i.n(a),r=i(67294),l=i(2031),o=i(94184),c=i.n(o),d=i(6589),u=i(72407),m=i(94392),p=i(52874),x=i(34827),f=i(50977),y=i(18449),h=i(98576),b=i(55761),g=i(55922),_=i(30354),j=i(35354);
1let PreviousStoreCredits=e=>{let{storeCredits:t}=e,{t:i}=(0,l.$)(),{localizeDate:a}=(0,j.bU)(),[o,c]=(0,r.useState)(!1),formatDate=e=>a(e,{year:"2-digit",month:"numeric",day:"numeric",timeZone:"UTC"}),creditSummary=e=>{let t=formatDate(new Date(e.createdAt)),n=formatDate(new Date(e.expiresOn)),a="$".concat(e.remainingAmount.toFixed(2));return[i("issue_store_credit.issued_{date}",{date:t}),i("issue_store_credit.expiration_{date}",{date:n}),i("issue_store_credit.{amount}_remaining",{amount:a})].join(" - ")};if(!t||0===t.length)return null;let{length:d}=t;if(!o){let e=t.length>1?i("issue_store_credit.See_{amount}_previous_credits",{amount:d}):i("issue_store_credit.See_previous_credit");return(0,n.jsxs)("div",{className:"jsx-282ddaf79f922c91",children:[(0,n.jsx)(u.z,{appearance:"anchor",onClick:()=>c(!0),children:e}),(0,n.jsx)("span",{className:"jsx-282ddaf79f922c91",children:i("issue_store_credit.Last_credit_{date}",{date:formatDate(new Date(t[0].createdAt))})}),(0,n.jsx)(s(),{id:"282ddaf79f922c91",children:"div.jsx-282ddaf79f922c91{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}span.jsx-282ddaf79f922c91{color:#757575;font-style:italic}"})]})}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"jsx-e56c375360ac6882 list",children:[(0,n.jsx)("span",{className:"jsx-e56c375360ac6882",children:i("issue_store_credit.Previous_credit",{count:d})}),(0,n.jsx)(u.z,{appearance:"anchor",onClick:()=>c(!1),children:i("Hide")})]}),(0,n.jsx)("ul",{className:"jsx-e56c375360ac6882",children:t.map(e=>(0,n.jsxs)("li",{className:"jsx-e56c375360ac6882",children:[(0,n.jsxs)("div",{className:"jsx-e56c375360ac6882 amount",children:["$",e.amount.toFixed(2)]}),(0,n.jsxs)("div",{className:"jsx-e56c375360ac6882",children:[e.reason&&(0,n.jsx)("span",{className:"jsx-e56c375360ac6882 reason",children:e.reason}),(0,n.jsx)("span",{className:"jsx-e56c375360ac6882 summary",children:creditSummary(e)})]})]},e.id))}),(0,n.jsx)(s(),{id:"e56c375360ac6882",children:"ul.jsx-e56c375360ac6882{list-style-type:none;padding:0;margin:0}li.jsx-e56c375360ac6882{display:grid;grid-gap:20px;grid-template-columns:minmax(52px,auto)1fr;border-top:1px solid#e5e5e5;padding:10px 0}li.jsx-e56c375360ac6882:last-child{border-bottom:1px solid#e5e5e5}.list.jsx-e56c375360ac6882{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:6px}.list.jsx-e56c375360ac6882 span.jsx-e56c375360ac6882{font-weight:bold;display:flex 6px}.reason.jsx-e56c375360ac6882{display:block;margin-bottom:8px}.summary.jsx-e56c375360ac6882{display:block;color:#757575;font-style:italic}"})]})},AmountButton=e=>{let{amount:t,onClick:i}=e;return(0,n.jsxs)(u.z,{onClick:()=>i(t),size:"sm",variant:"colorless",isFullWidth:!0,children:["$",t]})},IssueStoreCredit=e=>{let{spreeId:t}=e,{t:i}=(0,l.$)(),{baseColors:a}=(0,d.F)(),o=(0,r.useRef)(),[j,v]=(0,r.useState)(!1),[k,w]=(0,r.useState)(null),[P,S]=(0,r.useState)(null),[C]=(0,_.il)(),{userStoreCredits:I,loading:N,refetch:R}=(0,_.H9)(t,{limit:5}),A=new Date;A.setDate(A.getDate()+90);let handleAmountButtonClick=e=>{o.current.value=e.toFixed(2)},handleError=e=>{w(e),(0,f.e)(e.message)},handleSubmit=async(e,n)=>{let{amount:a,expiresOn:s,reason:r}=n,l=e.target;try{v(!0),await C({userId:t,amount:parseFloat(a),expiresOn:s,reason:r}),await R(),S(i("issue_store_credit.issue_success")),l.reset(),v(!1)}catch(e){handleError(e),v(!1)}};return(0,n.jsxs)(n.Fragment,{children:[k&&(0,n.jsx)(x.T,{onClose:()=>w(null),variant:"danger",shouldActAsToast:!0,children:k.message}),P&&(0,n.jsx)(x.T,{onClose:()=>S(null),autoClose:!0,shouldActAsToast:!0,children:P}),(0,n.jsx)(y.H2,{children:i("issue_store_credit.header")}),(0,n.jsxs)(p.l0,{onSubmit:handleSubmit,children:[(0,n.jsxs)(p.gN,{label:(0,n.jsx)(b._,{htmlFor:"amount",children:i("Amount")}),children:[(0,n.jsxs)("div",{className:s().dynamic([["2a637408201c3285",[a.lightestGray,a.lightGray]]])+" amountInput",children:[(0,n.jsx)("span",{className:s().dynamic([["2a637408201c3285",[a.lightestGray,a.lightGray]]]),children:"$"}),(0,n.jsx)(h.II,{ref:o,defaultValue:"10.00",inputSize:"sm",name:"amount",type:"text",required:!0})]}),(0,n.jsxs)("div",{className:s().dynamic([["2a637408201c3285",[a.lightestGray,a.lightGray]]])+" amountButtons",children:[(0,n.jsx)(AmountButton,{amount:10,onClick:handleAmountButtonClick}),(0,n.jsx)(AmountButton,{amount:25,onClick:handleAmountButtonClick}),(0,n.jsx)(AmountButton,{amount:50,onClick:handleAmountButtonClick}),(0,n.jsx)(AmountButton,{amount:100,onClick:handleAmountButtonClick})]})]}),(0,n.jsxs)("div",{className:s().dynamic([["2a637408201c3285",[a.lightestGray,a.lightGray]]])+" options",children:[(0,n.jsx)(p.gN,{label:(0,n.jsx)(b._,{htmlFor:"expiresOn",children:i("issue_store_credit.Expires_on")}),children:(0,n.jsx)(m.W,{min:(0,g.p6)(new Date),name:"expiresOn",value:(0,g.p6)(A)})}),(0,n.jsx)(p.gN,{label:(0,n.jsx)(b._,{htmlFor:"reason",children:i("Reason")}),children:(0,n.jsx)(h.II,{name:"reason",type:"text"})})]}),(0,n.jsx)("div",{className:s().dynamic([["2a637408201c3285",[a.lightestGray,a.lightGray]]])+" "+(c()("previousCredits",{show:!N}
1)||""),children:!N&&(0,n.jsx)(PreviousStoreCredits,{storeCredits:I})}),(0,n.jsx)("div",{className:s().dynamic([["2a637408201c3285",[a.lightestGray,a.lightGray]]])+" actions",children:(0,n.jsx)(u.z,{className:"creditButton",loading:j,size:"md",type:"submit",isFullWidth:!0,children:i("issue_store_credit.Issue_credit")})})]}),(0,n.jsx)(s(),{id:"2a637408201c3285",dynamic:[a.lightestGray,a.lightGray],children:".amountInput.__jsx-style-dynamic-selector{position:relative}.amountInput.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector{position:absolute;color:#757575;font-weight:bold;background:".concat(a.lightestGray,";padding:9px 14px 10px;top:1px;left:1px;-webkit-border-top-left-radius:3px;-moz-border-radius-topleft:3px;border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-bottomleft:3px;border-bottom-left-radius:3px;border-right:1px solid ").concat(a.lightGray,";height:-webkit-calc(100% - 2px);height:-moz-calc(100% - 2px);height:calc(100% - 2px)}.amountInput.__jsx-style-dynamic-selector input.sm{padding-left:47px}.amountButtons.__jsx-style-dynamic-selector{display:grid;grid-gap:12px;grid-template-columns:repeat(4,1fr);margin-top:12px}.amountButtons.__jsx-style-dynamic-selector button{background:none;font-weight:normal}.options.__jsx-style-dynamic-selector{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:16px;margin:0 0 5px 0}.previousCredits.__jsx-style-dynamic-selector{margin-bottom:30px;opacity:0;-webkit-transition:opacity 300ms ease-out;-moz-transition:opacity 300ms ease-out;-o-transition:opacity 300ms ease-out;transition:opacity 300ms ease-out}.show.__jsx-style-dynamic-selector{opacity:1}.actions.__jsx-style-dynamic-selector .creditButton,.actions.__jsx-style-dynamic-selector .creditButton:hover,.actions.__jsx-style-dynamic-selector .creditButton:focus{background-color:#f8da52;color:#5f4a15}")})]})}},32477:function(e,t,i){i.d(t,{S:function(){return useUserProSubscription}});var n=i(95273),a=i(16083);let useUserProSubscription=function(e){let{skip:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.i)({operation:()=>(0,a.mB)(e),deps:[e],enabled:!t&&!!e})}},95081:function(e,t,i){i.d(t,{eM:function(){return l}});var n,a,s=i(2624),r=i(90386);(n=a||(a={})).JPEG="image/jpeg",n.PNG="image/png",n.WEBP="image/webp",n.GIF="image/gif",n.AVIF="image/avif",n.BMP="image/bmp",n.HEIC="image/heic",n.SVG="image/svg+xml",n.PSD="image/vnd.adobe.photoshop",n.X_PHOTOSHOP="application/x-photoshop",n.TIFF="image/tiff",n.X_MS_BMP="image/x-ms-bmp",n.ICON="image/x-icon",n.WBMP="image/vnd.wap.wbmp",n.JNG="image/x-jng",n.PDF="application/pdf",n.POSTSCRIPT="application/postscript",n.EPS="application/eps",n.ILLUSTRATOR="application/illustrator",n.MSWORD="application/msword",n.POWERPOINT="application/vnd.ms-powerpoint",n.EXCEL="application/vnd.ms-excel",n.ODG="application/vnd.oasis.opendocument.graphics",n.ODP="application/vnd.oasis.opendocument.presentation",n.ODS="application/vnd.oasis.opendocument.spreadsheet",n.ODT="application/vnd.oasis.opendocument.text",n.PPTX="application/vnd.openxmlformats-officedocument.presentationml.presentation",n.XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",n.DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",n.DOC="application/msword",n.RAR="application/x-rar-compressed",n.ZIP="application/zip",n.JSON="application/json",n.OTF="font/otf",n.TTF="font/ttf",n.TXT="text/plain",n.CSV="text/csv",n.HTML="text/html",n.XML="text/xml";let l={[s.__.Avatar]:r.DV,[s.__.Cover]:[{width:1200,height:300},{width:2400,height:600}],[s.__.Meta]:[{width:1200,height:675}],[s.__.StoreImage]:[{width:400,height:400},{width:600,height:600},{width:900,height:900}],[s.__.StoreVideo]:[{width:960,height:540},{width:1920,height:1080}],[s.__.CustomerShippedItem]:[{width:600,height:600},{width:1200,height:1200}]};a.JPEG,a.PNG,a.WEBP,a.AVIF,a.PDF,a.JPEG,a.PNG,a.JPEG,a.PNG,a.TIFF,a.ZIP,a.JPEG,a.PNG,a.SVG,a.TIFF,a.ILLUSTRATOR,a.PDF,a.POSTSCRIPT,a.EPS,a.PSD,a.X_PHOTOSHOP},16083:function(e,t,i){i.d(t,{Gg:function(){return getSession},Kq:function(){return removeUserCommissionsProgram},et:function(){return getUserProfile},h8:function(){return deleteUser},lm:function(){return revokeUserIdentityVerification},mB:function(){return getUserProSubscription},ow:function(){return getProfileReferrer},pS:function(){return updateUserReferral},uK:function(){return getUserProAnalytics},ut:function(){return getReferralHistory}});
1var n=i(94700),a=i(88098);let getUserProfile=(e,t)=>a.uF.get("/users/".concat(encodeURIComponent(e),"/profile"),{req:t}),getSession=e=>a.uF.get("/session",{req:e}),getUserProSubscription=async(e,t)=>{let i=(0,n.Q)("/users/".concat(e,"/subscriptions/pro"));return a.uF.get(i,{req:t})},getUserProAnalytics=(e,t)=>a.uF.get("/users/".concat(e,"/subscriptions/pro/analytics"),{req:t}),getProfileReferrer=e=>a.uF.get("/users/".concat(encodeURIComponent(e),"/referral")),deleteUser=e=>a.qo.post("/users/".concat(e,"/delete")),removeUserCommissionsProgram=e=>a.qo.post("/users/".concat(e,"/commissions/delete")),revokeUserIdentityVerification=e=>a.qo.post("/users/".concat(e,"/identity/verification/delete")),getReferralHistory=e=>a.qo.get("/users/".concat(encodeURIComponent(e),"/referral/history")),updateUserReferral=(e,t)=>a.qo.post("/users/".concat(encodeURIComponent(e),"/referral"),t)},30354:function(e,t,i){i.d(t,{il:function(){return useIssueStoreCredit},WR:function(){return useReorderCandidates},H9:function(){return useUserStoreCredits}});var n=i(95273),a=i(6051);let useUserStoreCredits=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{limit:i,offset:s}=t,{data:r,loading:l,error:o,refetch:c}=(0,n.i)({operation:()=>(0,a.Nc)(e,{limit:i,offset:s}),deps:[e,i,s]});return{userStoreCredits:null==r?void 0:r.data,total:null==r?void 0:r.totalCount,loading:l,error:o,refetch:c}};i(663);var s=i(47978);let useIssueStoreCredit=()=>(0,s.B)({operation:a.xV,throwOnError:!0});var r=i(67294),l=i(66252),o=i(35354),c=i(50977),d=i(86011),u=i(85826);let findMatchingReorderItem=async(e,t)=>{let{locale:i,permalink:n,selectedUniqueArtwork:a,configuration:s,productId:r}=t;if(!a.latestArtworkId||s.instructions&&""!==s.instructions)return null;let l=await (0,u.fE)(e,{locale:i,permalink:n,artworkIds:[a.latestArtworkId]});return l.find(e=>e.color===s.color&&e.position===s.position&&e.hasDrilledHoles===s.hasDrilledHoles&&e.hasPunchHole===s.hasPunchHole&&e.isDoubleSided===s.isDoubleSided&&e.printStyle===s.printStyle&&e.packagingTapePrintStyle===s.packagingTapePrintStyle&&((0,d.L_)(r)||dimensionsWithinRange(e,s)))||null},measurementWithinRange=(e,t)=>
1e>=t-.05&&e<=t+.05,dimensionsWithinRange=(e,t)=>measurementWithinRange(e.height,t.height)&&measurementWithinRange(e.width,t.width),useReorderCandidates=e=>{let{permalink:t,productId:i,productDimensions:n}=e,a=(0,l.x)(),{locale:s}=(0,o.bU)(),[d,u]=(0,r.useState)(!0),[m,p]=(0,r.useState)(!1),[x,f]=(0,r.useState)(null),y=(0,r.useCallback)(()=>f(null),[]),fetchReorderCandidates=async(e,r)=>{if(e){p(!0);try{let l=await findMatchingReorderItem(a,{locale:s,permalink:t,selectedUniqueArtwork:e,configuration:{...r,...n},productId:i});f(l),u(!!l)}catch(e){(0,c.e)("[fetchReorderCandidates] ".concat(e.message)),f(null),u(!1)}finally{p(!1)}}};return{isFetchingReorderCandidates:m,reorderItem:x,allowReorder:d,setAllowReorder:u,clearReorderItem:y,fetchReorderCandidates}};i(70060),i(9572)},70060:function(e,t,i){i.d(t,{V:function(){return useProductAnalytics}});var n=i(67294),a=i(6812),s=i(11163),r=i(36225),l=i(79213),o=i(48553),c=i(70237),d=i(6109),u=i(63246),m=i(67468);let getProductNames=e=>{var t,i;let n=(null==e?void 0:null===(t=e.products)||void 0===t?void 0:t[0])||(null==e?void 0:null===(i=e.productAliases)||void 0===i?void 0:i[0]);return n?{...n,related:n.related.map(e=>{var t,i;let{name:n,...a}=e;return{name:n,permalink:null!==(i=null!==(t=a.permalink)&&void 0!==t?t:a.aliasPermalink)&&void 0!==i?i:a.aliasCategoryPermalink,isProduct:!!a.permalink}})}:null};var p=i(82729),x=i(68806);function _templateObject(){let e=(0,p._)(['\n  query PRODUCT_NAMES_QUERY($permalinks: [String!]!, $isAlias: Boolean!) {\n    products(locale: "en", permalinks: $permalinks) @skip(if: $isAlias) {\n      ','\n    }\n    productAliases(locale: "en", permalinks: $permalinks)\n      @include(if: $isAlias) {\n      ',"\n    }\n  }\n"]);return _templateObject=function(){return e},e}let f="\n  name\n  permalink\n  related {\n    ... on Product {\n      name\n      permalink: permalink\n    }\n    ... on ProductAlias {\n      name\n      aliasPermalink: permalink\n    }\n    ... on ProductAliasCategory {\n      name\n      aliasCategoryPermalink: permalink\n    }\n  }\n",y=(0,x.Ps)(_templateObject(),f,f),useProductAnalytics=e=>{let{englishPermalink:t,isAlias:i=!1}=e,{query:p}=(0,s.useRouter)(),x=(0,o.z$)(),{data:f}=(0,u.kP)(),{setNode:h,isIntersecting:b}=(0,d.U)(),{isPermalinkForProduct:g}=(0,m.X)(),{data:_}=(0,a.a)(y,{variables:{permalinks:[t],isAlias:i},context:{clientName:r.wP},skip:!t,ssr:!1}),j=(0,n.useMemo)(()=>getProductNames(_),[_]);(0,n.useEffect)(()=>{var e,t;if(!x||!j||!f)return;let n=(0,l.U)({englishPermalink:j.permalink,isSample:j.permalink.includes("sample"),isGiftCard:j.permalink.includes("gift-card")});x.track("Product Viewed",{category:n,sku:j.permalink,name:j.name,url:i?"".concat("https://www.stickermule.com","/uses/").concat(j.permalink):"".concat("https://www.stickermule.com","/products/").concat(j.permalink),products:[{affiliation:"Sticker Mule",product_id:j.permalink,name:j.name,category:n}],items:[{affiliation:"Sticker Mule",item_id:j.permalink,item_name:j.name,item_category:n}],hashedEmail:(0,c.UC)(null==f?void 0:null===(e=f.user)||void 0===e?void 0:e.email),hashedPhone:(0,c.X1)(null==f?void 0:null===(t=f.user)||void 0===t?void 0:t.phone),fbc:(0,c.hN)(p),fbp:(0,c.Ms)(),_clear:!0})},[x,j,i,p,f]),(0,n.useEffect)(()=>{x&&j&&b&&x.track("Product List Viewed",{item_list_id:"related-to-".concat(j.permalink),item_list_name:"Related to ".concat(j.name),items:j.related.map(e=>({affiliation:"Sticker Mule",item_id:e.permalink,item_name:e.name,item_category:(0,l.U)({englishPermalink:e.permalink,isSample:e.permalink.includes("sample"),isGiftCard:e.permalink.includes("gift-card")})})),_clear:!0})},[x,j,b]);let v=(0,n.useCallback)(e=>{if(!x||!j)return;let t=j.related.find(t=>g(t,e));x.track("Product Clicked",{item_list_id:"related-to-".concat(j.permalink),item_list_name:"Related to ".concat(j.name),items:[{affiliation:"Sticker Mule",item_id:t.permalink,item_name:t.name,item_category:(0,l.U)({englishPermalink:t.permalink,isSample:t.permalink.includes("sample"),isGiftCard:t.permalink.includes("gift-card")})}],_clear:!0})},[x,j,g]);return{relatedItemsRef:h,handleRelatedItemClick:v}}},9572:function(e,t,i){i.d(t,{y:function(){return useProductCategoryAnalytics}});var n=i(67294),a=i(6812),s=i(36225),r=i(79213),l=i(48553),o=i(6109),c=i(67468);let getProductCategoryNames=e=>{var t,i;let n=null==e?void 0:null===(t=e.productCategories)||void 0===t?void 0:t[0];if(n)return{...n,products:n.products.map(e=>({...e,isProduct:!0})),related:n.related.map(e=>{var t,i;let{name:n,...a}=e;return{name:n,permalink:null!==(i=null!==(t=a.permalink)&&void 0!==t?t:a.aliasPermalink)&&void 0!==i?i:a.aliasCategoryPermalink,isProduct:!!a.permalink}})};let a=null==e?void 0:null===(i=e.productAliasCategories)||void 0===i?void 0:i[0];return a?{...a,products:a.aliases.map(e=>{let{name:t,permalink:i,product:n}=e;return{...n,name:t||n.name,permalink:i||n.permalink,isProduct:!i}}),related:a.related.map(e=>{var t,i;let{name:n,...a}=e;return{name:n,permalink:null!==(i=null!==(t=a.permalink)&&void 0!==t?t:a.aliasPermalink)&&void 0!==i?i:a.aliasCategoryPermalink,isProduct:!!a.permalink}})}:null};var d=i(82729),u=i(68806);
1function _templateObject(){let e=(0,d._)(['\n  query PRODUCT_CATEGORY_NAMES_QUERY(\n    $permalinks: [String!]!\n    $isAlias: Boolean!\n  ) {\n    productCategories(locale: "en", permalinks: $permalinks)\n      @skip(if: $isAlias) {\n      ','\n      products {\n        name\n        permalink\n      }\n    }\n    productAliasCategories(locale: "en", permalinks: $permalinks)\n      @include(if: $isAlias) {\n      ',"\n      aliases {\n        name\n        permalink\n        product {\n          name\n          permalink\n        }\n      }\n    }\n  }\n"]);return _templateObject=function(){return e},e}let m="\n  name\n  permalink\n  related {\n    ... on Product {\n      name\n      permalink: permalink\n    }\n    ... on ProductAlias {\n      name\n      aliasPermalink: permalink\n    }\n    ... on ProductAliasCategory {\n      name\n      aliasCategoryPermalink: permalink\n    }\n  }\n",p=(0,u.Ps)(_templateObject(),m,m),useProductCategoryAnalytics=e=>{let{englishPermalink:t,isAlias:i=!1}=e,d=(0,l.z$)(),{setNode:u,isIntersecting:m}=(0,o.U)(),{isPermalinkForProduct:x}=(0,c.X)(),{data:f}=(0,a.a)(p,{variables:{permalinks:[t],isAlias:i},context:{clientName:s.wP},skip:!t,ssr:!1}),y=(0,n.useMemo)(()=>getProductCategoryNames(f),[f]);(0,n.useEffect)(()=>{var e;d&&(null==y?void 0:null===(e=y.products)||void 0===e?void 0:e.length)&&d.track("Product List Viewed",{item_list_id:y.permalink,item_list_name:y.name,items:y.products.map(e=>({affiliation:"Sticker Mule",item_id:e.permalink,item_name:e.name,item_category:(0,r.U)({englishPermalink:e.permalink,isSample:e.permalink.includes("sample"),isGiftCard:e.permalink.includes("gift-card")})})),_clear:!0})},[d,y]),(0,n.useEffect)(()=>{var e;d&&(null==y?void 0:null===(e=y.related)||void 0===e?void 0:e.length)&&m&&d.track("Product List Viewed",{item_list_id:"related-to-".concat(y.permalink),item_list_name:"Related to ".concat(y.name),items:y.related.map(e=>({affiliation:"Sticker Mule",item_id:e.permalink,item_name:e.name,item_category:(0,r.U)({englishPermalink:e.permalink,isSample:e.permalink.includes("sample"),isGiftCard:e.permalink.includes("gift-card")})})),_clear:!0})},[d,y,m]);let h=(0,n.useCallback)(e=>{if(!d||!y)return;let t=y.products.find(t=>x(t,e));d.track("Product Clicked",{item_list_id:y.permalink,item_list_name:y.name,items:[{affiliation:"Sticker Mule",item_id:t.permalink,item_name:t.name,item_category:(0,r.U)({englishPermalink:t.permalink,isSample:t.permalink.includes("sample"),isGiftCard:t.permalink.includes("gift-card")})}],_clear:!0})},[d,y,x]),b=(0,n.useCallback)(e=>{if(!d||!y)return;let t=y.related.find(t=>x(t,e));d.track("Product Clicked",{item_list_id:"related-to-".concat(y.permalink),item_list_name:"Related to ".concat(y.name),items:[{affiliation:"Sticker Mule",item_id:t.permalink,item_name:t.name,item_category:(0,r.U)({englishPermalink:t.permalink,isSample:t.permalink.includes("sample"),isGiftCard:t.permalink.includes("gift-card")})}],_clear:!0})},[d,y,x]);return{relatedItemsRef:u,handleItemClick:h,handleRelatedItemClick:b}}},67468:function(e,t,i){i.d(t,{X:function(){return useProductPermalinkMatcher}});var n=i(67294),a=i(35354);let useProductPermalinkMatcher=()=>{let{localizePermalink:e}=(0,a.bU)(),t=(0,n.useCallback)((t,i)=>{let n=e("/".concat(t.isProduct?"products":"uses","/").concat(t.permalink)),a=n.replace(/\/(products|uses)\//gi,"");return a===i},[e]);return{isPermalinkForProduct:t}}},663:function(e,t,i){i.d(t,{l:function(){return useShippingEligibility}});var n=i(95273),a=i(28735);let useShippingEligibility=e=>{let t=[...new Set(e)].filter(e=>!!(null==e?void 0:e.length)).sort(),i=t.join(","),{data:s,loading:r,error:l}=(0,n.i)({operation:()=>(0,a.Ul)(t),deps:[i],enabled:t.length>0}),o=(null!=s?s:[]).filter(e=>{let{allowFreeShipping:t}=e;return!t}).map(e=>{let{permalinkId:t}=e;return t});return{nonFreeShippingPermalinkIds:o,allowsFreeShipping:e=>!o.includes(e),hasNonFreeShippingProduct:o.length>0,hasFreeShippingProduct:t.some(e=>!o.includes(e)),isEligibilityResolved:null!==s,loading:r,error:l}}},6023:function(e,t,i){i.d(t,{a:function(){return useBecomeUserMutation}});var n=i(50319),a=i(69967),s=i(36225);let useBecomeUserMutation=()=>(0,n.D)(a.sG,{context:{clientName:s.bd}})},94392:function(e,t,i){i.d(t,{W:function(){return DateInput}});var n=i(85893),a=i(5379),s=i.n(a),r=i(67294),l=i(2031),o=i(94184),c=i.n(o),d=i(65150),u=i(76205),m=i(94240),p=i(55922),x=i(89450),f=i(98576),y=i(4309),h=i(52874),b=i(73935),g=i(67714),_=i(72986);let useCalendarPanel=e=>{let{isVisible:t,anchorRef:i,panelRef:a,calendarPanelProps:l}=e,{zIndexes:o,colors:c,radius:d,space:u}=(0,x.k)(),[m,p]=(0,r.useState)(!1),f=(0,r.useRef)(null);return(0,r.useEffect)(()=>{p(!0)},[]),(0,r.useEffect)(()=>{let e=i.current;e&&(f.current=e.closest("[data-global-layer]"))},[i,m,t]),(0,g.P)(a),(0,r.useEffect)(()=>{let e=a.current,n=i.current;if(!e||!n)return()=>{};if(!t)return e.style.top="-9999px",e.style.left="-9999px",()=>{};let updatePosition=()=>{let t=n.getBoundingClientRect(),i=e.getBoundingClientRect(),{scrollX:a,scrollY:s}=window,{body:r}=document,l=r.classList.contains("noScroll"),o=l?s+Math.abs(parseInt(r.style.top,10)||0):s;e.style.top="".concat(t.bottom+o+8,"px"),e.style.left="".concat(t.right+a-i.width,"px")}
1,s=null;"undefined"!=typeof ResizeObserver&&(s=new ResizeObserver(updatePosition)).observe(n);let r=requestAnimationFrame(updatePosition);return window.addEventListener("scroll",updatePosition,!0),window.addEventListener("resize",updatePosition),()=>{cancelAnimationFrame(r),window.removeEventListener("scroll",updatePosition,!0),window.removeEventListener("resize",updatePosition),s&&(s.unobserve(n),s.disconnect())}},[t,a,i]),{calendarPanel:f.current&&m?(0,n.jsxs)(n.Fragment,{children:[(0,b.createPortal)((0,n.jsx)("div",{ref:a,"aria-hidden":!t,className:s().dynamic([["8a1959106eb50c3a",[o.flyOutPanels,u["3x"],c.neutral.bg,d.sm]]])+" panel",children:(0,n.jsx)(_.g,{...l,isVisible:t})}),f.current),(0,n.jsx)(s(),{id:"8a1959106eb50c3a",dynamic:[o.flyOutPanels,u["3x"],c.neutral.bg,d.sm],children:".panel.__jsx-style-dynamic-selector{position:absolute;top:-9999px;left:-9999px;z-index:".concat(o.flyOutPanels,";opacity:1;pointer-events:auto;padding:").concat(u["3x"],";background:").concat(c.neutral.bg,";-webkit-border-radius:").concat(d.sm,";-moz-border-radius:").concat(d.sm,";border-radius:").concat(d.sm,';-webkit-box-shadow:0 2px 6px rgba(0,0,0,.2);-moz-box-shadow:0 2px 6px rgba(0,0,0,.2);box-shadow:0 2px 6px rgba(0,0,0,.2)}.panel[aria-hidden="true"].__jsx-style-dynamic-selector{opacity:0;pointer-events:none}')})]}):null}},DateInput=e=>{var t;let{name:i,onChange:a,value:o,min:b,max:g,validators:_=[],disabled:j,defaultValue:v,autoClose:k=!1,inputSize:w,...P}=e,{size:S}=(0,r.useContext)(h.zb),{t:C}=(0,l.$)(),{dateValidator:I,maxDateValidator:N,minDateValidator:R}=(0,d.t)(),{space:A}=(0,x.k)(),[z,B]=(0,r.useState)(!1),[O,U]=(0,r.useState)(o||v),[E,F]=(0,r.useState)(O?new Date(O):null),D=(0,r.useRef)(null),$=(0,r.useRef)(null),G=(0,r.useRef)(null);(0,u.N)(z,B,[$,G]),(0,m.u)(z,B,D);let T=(0,r.useCallback)(e=>{U(e),null==a||a(e);let[t]=I(e);t&&(null==F||F(new Date(e)))},[I,a]);(0,r.useEffect)(()=>{T(o||v)},[T,o,v]);let V=[I,b&&R(b),g&&N(g),..._].filter(Boolean),M=(0,n.jsx)("button",{ref:D,"aria-label":C("Pick_a_date"),className:"calendarButton",disabled:j,onClick:()=>B(e=>!e),type:"button",children:(0,n.jsx)(y.Q,{configuration:"square",size:w})}),{calendarPanel:L}=useCalendarPanel({isVisible:z,anchorRef:D,panelRef:G,calendarPanelProps:{boundaries:{min:b,max:g},onDateSelect:e=>{let t=(0,p.p6)(e);if(null==a||a(t),U(t),null==F||F(e),k){var i;B(!1),null===(i=D.current)||void 0===i||i.focus()}},selectedDate:E}}),H=null!==(t=null!=w?w:S)&&void 0!==t?t:"sm";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:$,className:s().dynamic([["f5033f9e4bf5cff9",[A[2],A["2x"],A[2],A["2x"],A["2x"],A["3x"],A["2x"],A["3x"],A["4x"],A["4x"],A["4x"],A["4x"],A["5x"],A["5x"],A["5x"],A["5x"]]]])+" "+(c()("wrapper",H)||""),children:(0,n.jsx)(f.II,{"aria-autocomplete":"none",disabled:j,inputSize:H,name:i,onChange:e=>{let{target:t}=e;return T(t.value)},placeholder:"mm/dd/yyyy",rightAddOn:{variant:"contained",content:M},validators:V,value:null!=O?O:"",...P,type:"text"})}),L,(0,n.jsx)(s(),{id:"f5033f9e4bf5cff9",dynamic:[A[2],A["2x"],A[2],A["2x"],A["2x"],A["3x"],A["2x"],A["3x"],A["4x"],A["4x"],A["4x"],A["4x"],A["5x"],A["5x"],A["5x"],A["5x"]],children:".wrapper.__jsx-style-dynamic-selector{position:relative}.wrapper.__jsx-style-dynamic-selector .calendarButton{background:transparent;border:none;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.wrapper.xs.__jsx-style-dynamic-selector .calendarButton{margin:-".concat(A[2]," -").concat(A["2x"],";padding:").concat(A[2]," ").concat(A["2x"],"}.wrapper.sm.__jsx-style-dynamic-selector .calendarButton{margin:-").concat(A["2x"]," -").concat(A["3x"],";padding:").concat(A["2x"]," ").concat(A["3x"],"}.wrapper.md.__jsx-style-dynamic-selector .calendarButton{margin:-").concat(A["4x"]," -").concat(A["4x"],";padding:").concat(A["4x"]," ").concat(A["4x"],"}.wrapper.lg.__jsx-style-dynamic-selector .calendarButton{margin:-").concat(A["5x"]," -").concat(A["5x"],";padding:").concat(A["5x"]," ").concat(A["5x"],"}.wrapper.__jsx-style-dynamic-selector .calendarButton[disabled]{cursor:default}")})]})}},4309:function(e,t,i){i.d(t,{Q:function(){return CalendarIcon}});var n=i(85893),a=i(94184),s=i.n(a),r=i(81060);let CalendarIcon=e=>{let{size:t,configuration:i,color:a,className:l,...o}=e,{className:c,styles:d,svgProps:u}=(0,r.Z)({size:t,color:a,configuration:i});return(0,n.jsxs)("span",{className:s()(c,l),children:[(0,n.jsx)("svg",{...u,...o,viewBox:"0 0 448 512",children:(0,n.jsx)("path",{d:"M128 16c-18 0-32 14-32 32v32H64c-35 0-64 29-64 64v48h448v-48c0-35-29-64-64-64h-32V48c0-18-14-32-32-32s-32 14-32 32v32H160V48c0-18-14-32-32-32M0 240v192c0 35 29 64 64 64h320c35 0 64-29 64-64V240z"})}),d]})}},98371:function(e,t,i){i.d(t,{YC:function(){return sortByKey},yo:function(){return chunk}});let deepClone=e=>e.map(e=>Array.isArray(e)?deepClone(e):e),sortByKey=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ASC",n=deepClone(e);return n.sort((e,n)=>e[t]<n[t]?"ASC"===i?-1:1:e[t]>n[t]?"ASC"===i?1:-1:0)},chunk=(e,t)=>e.length<=t?[e]:[e.slice(0,t),...chunk(e.slice(t),t)]}}]);

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.