PageSourceSearch

https://olm-frontend.vercel.app/_next/static/chunks/pages/product/[slug]-76f1f6ed976b8209.js

js olm-frontend.vercel.app collected 2026-10-03 07:28:16 UTC 46,733 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2915],{30454:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/[slug]",function(){return n(26451)}])},87513:function(e,t,n){"use strict";var r=n(85893),i=n(85129);t.Z=function(e){var t=e.product;return i.a8?null:(0,r.jsxs)("div",{className:"my-2 py-2 bg-gray-100",children:[(0,r.jsx)("a",{target:"_blank",href:"".concat("https://develop.openlettermarketing.com/","wp-admin/post.php?post=").concat(t.id,"&action=edit"),rel:"noreferrer",children:"Edit"}),(0,r.jsx)("a",{target:"_blank",href:"https://olm-frontend.vercel.app/product/".concat(t.slug),rel:"noreferrer",className:"ml-4",children:"Show live app"}),(0,r.jsx)("a",{target:"_blank",href:"https://openlettermarketing.com/product/".concat(t.slug),rel:"noreferrer",className:"ml-4",children:"Show live site"})]})}},72620:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(85893),i=n(36160),a=function(){return(0,r.jsxs)("button",{"data-button-id":"add-to-cart",type:"submit",className:"inline-flex items-center justify-center rounded-full bg-[linear-gradient(90deg,#ED5C2F,#F28230)] px-[22px] py-3 text-[14.5px] font-semibold text-white shadow-[0_6px_16px_rgba(237,92,47,0.28)] transition-[transform,box-shadow,filter] duration-150 hover:shadow-[0_10px_22px_rgba(237,92,47,0.34)] active:translate-y-[1px] focus:outline-none focus-visible:ring-4 focus-visible:ring-[#F28230]/15","aria-haspopup":"listbox","aria-expanded":"true","aria-labelledby":"listbox-label",children:[(0,r.jsx)(i.Z,{className:"h-[18px] w-[18px]"}),(0,r.jsx)("span",{className:"ml-2",children:"Add to cart"})]})}},72668:function(e,t,n){"use strict";var r=n(85893),i=n(96486),a=n(99109),o=n(48448),l=n(85129),s=n(32994);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){u(e,t,n[t])}))}return e}t.Z=function(e){var t,n,d,f,m,p,v,h,x=e.productCsvs,g=e.validateProductCsv,b=void 0===g||g,y=e.quantity,j=e.minQuantity,w=e.total,N=e.register,k=e.price,S=e.isCampaignProduct,C=e.getMultiPlier,T=e.getValues,A=e.watch,E=e.cyoPrice,_=e.isListSourceProduct,P=void 0!==_&&_,F=e.addOnProducts,q=void 0===F?[]:F,D=C?C():1,M=(null===(t=e.variation)||void 0===t?void 0:t.item)||e.variation,O=Boolean((null===e||void 0===e||null===(n=e.variation)||void 0===n||null===(d=n.item)||void 0===d?void 0:d.slug)||(null===e||void 0===e||null===(f=e.variation)||void 0===f?void 0:f.slug))&&String((null===e||void 0===e||null===(m=e.variation)||void 0===m||null===(p=m.item)||void 0===p?void 0:p.slug)||(null===e||void 0===e||null===(v=e.variation)||void 0===v?void 0:v.slug)).includes("create-your-own-campaign"),I=Number(j)>0?Number(j):(0,a.BN7)(M),L=E||k,R=A?A():T(),B=!(0,i.isEmpty)(null===R||void 0===R?void 0:R[a.efU.name]),U=!b||x.length>0||B,G="undefined"!==typeof w?parseFloat(w):y*L*D,V=c({},R,{quantity:y,product:{name:(null===M||void 0===M?void 0:M.name)||""}}),H=(0,s.Le)(V,{addOnProducts:q}).filter((function(e){return e.option_name!==a.PU6.name})),K=function(e){var t;return e.option_name===a.Du3.name?Number((0,a.aS7)(e.product,e.quantity,1))*Number(e.quantity||0):parseFloat((null===e||void 0===e?void 0:e[o.nr])||(null===e||void 0===e||null===(t=e.product)||void 0===t?void 0:t.price)||0)*Number((null===e||void 0===e?void 0:e.quantity)||0)},Q=(G+H.reduce((function(e,t){return e+K(t)}),0)).toFixed(2),W=(u(h={},a.Du3.name,a.Du3.label),u(h,a.oK0.name,a.oK0.label),u(h,a.MXX.name,a.MXX.label),h),Z=function(e){return e.option_name===a.KGH.name?"".concat(a.KGH.label,": ").concat(e[a.KGH.name]||a.KGH.defaultValue):W[e.option_name]||e.option_name},$=O?Object.values((0,a.f5q)(R)):[];return U?U&&(0,r.jsxs)("div",{className:"mt-[18px] rounded-xl border border-[#ECE6DC] bg-white px-[22px] py-5 shadow-[0_1px_2px_rgba(26,29,35,0.04),0_8px_24px_rgba(26,29,35,0.06)]",children:[(0,r.jsx)("h3",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[0.05em] text-gray-500",children:O?"Campaign summary":"Order summary"}),!P&&(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-3 py-[7px] text-[14.5px]",children:[(0,r.jsxs)("span",{className:"block min-w-0 text-gray-500",children:[(0,r.jsx)("span",{className:"truncate",children:O?"Recipients (".concat(I," Min)"):"Quantity (".concat(I," Min)")}),(0,r.jsxs)("span",{className:"font-semibold text-[#ED5C2F]",children:[" ","*"]})]}),(0,r.jsx)("span",{className:"block text-[14.5px] font-semibold text-[#1A1D23]",children:(0,l.jg)(y)})]}),(0,r.jsx)("input",c({type:"hidden"},N("quantity"),{value:y})),(0,r.jsxs)("div",{className:"text-sm",children:[S&&(0,r.jsxs)(r.Fragment,{children:[O&&(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-3 py-[7px] text-[14.5px]",children:[(0,r.jsx)("span",{className:"block min-w-0 truncate text-gray-500",children:"Touches"}),(0,r.jsx)("span",{className:"block text-[14.5px] font-semibold text-[#1A1D23]",children:(0,l.jg)(D)})]}),O&&$.map((function(e,t){return(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-3 py-[7px] text-[12.5px] text-gray-500",children:[(0,r.jsx)("span",{className:"block min-w-0 truncate",children:"Touch ".concat(t+1," \xb7 ").concat(e)}),(0,r.jsxs)("span",{className:"block whitespace-nowrap font-semibold text-[#1A1D23]",children:[(0,l.xG)(L,2),"/pc"]})]},"".concat(e,"-").concat(t))}))]}),(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-3 py-[7px] text-[14.5px]",children:[(0,r.jsx)("span",{className:"block min-w-0 truncate text-gray-500",children:O?"Per recipient":"Each"}),(0,r.jsx)("span",{className:"block text-[14.5px] font-semibold text-[#1A1D23]",children:(0,l.xG)(L,2)})]}),S&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-3 py-[7px] text-[14.5px]",children:[(0,r.jsx)("span",{className:"block min-w-0 truncate text-gray-500",children:O?"Total pieces":"Total Mailers"}),(0,r.jsx)("span",{className:"block text-[14.5px] font-semibold text-[#1A1D23]",children:(0,l.jg)(y*D)})]})}),H.map((function(e){var t;return(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-3 py-[7px] text-[12.5px] text-gray-500",children:[(0,r.jsx)("span",{className:"block min-w-0 truncate",children:Z(e)}),(0,r.jsx)("span",{className:"block whitespace-nowrap font-semibold text-[#1A1D23]",children:(0,l.xG)(K(e),2)})]},"".concat(e.option_name,"-").concat(null===(t=e.product)||void 0===t?void 0:t.id))}
1)),(0,r.jsx)("div",{className:"mt-2 border-t-[1.5px] border-[#ECE6DC] pt-[14px]",children:(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-3 text-[17px] font-extrabold",children:[(0,r.jsx)("span",{className:"block min-w-0 truncate text-[#1A1D23]",children:"Total"}),(0,r.jsx)("span",{className:"block text-[24px] font-extrabold text-transparent bg-[linear-gradient(90deg,#ED5C2F,#F28230)] bg-clip-text [-webkit-text-fill-color:transparent]",children:(0,l.xG)(Q,2)})]})})]})]}):null}},26451:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return re},default:function(){return ie}});var r=n(34051),i=n.n(r),a=n(85893),o=n(47533),l=n(96486),s=n(67294),u=n(87536),c=n(66982),d=n.n(c),f=n(5678),m=n(67663),p=n(41932),v=n(83689),h=n(13067),x=n(99109),g=n(85129),b=n(73680),y=n(72668),j=n(72620),w=function(e){var t=e.children;return t?(0,a.jsx)("div",{className:"text-sm text-gray-600 py-2",children:t}):null},N=n(32994),k=n(12902),S=n(87513),C=n(11163),T=n(48565),A=n(12630),E=n(48448),_=(n(1864),n(29379)),P=n(32116),F=function(e){return P.Cy.get("?url=products/"+e)},q=function(e,t){return P.hi.get("tiered-pricing/v1/pricing/product/".concat(e,"/user/").concat(t))},D=n(57535),M=n(48280),O=n(97701),I=n(18371),L=n(79283),R=n(25695),B=n(22134);function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t,n,r,i,a,o){try{var l=e[a](o),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,i)}function V(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){G(a,r,i,o,l,"next",e)}function l(e){G(a,r,i,o,l,"throw",e)}o(void 0)}))}}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){H(e,t,n[t])}))}return e}function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(s){l=!0,i=s}finally{try{o||null==n.return||n.return()}finally{if(l)throw i}}return a}}(e,t)||Z(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Z(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){if(e){if("string"===typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}var $=[{question:"Do the letters actually look handwritten?",answer:(0,a.jsxs)(a.Fragment,{children:["The body uses one of six handwriting-style fonts and the envelope is addressed in the same style, paired with a real live stamp. It reads as personal mail. If you're looking for a genuinely handwritten letter, see our"," ",(0,a.jsx)("a",{href:"https://openlettermarketing.com/product/real-penned-letters",className:"font-bold text-[#ED5C2F]",children:"Real Penned Letters"}),"."]})}],z=[{initials:"DM",name:"Derek M.",role:"Marketing Lead",quote:"These get opened. The handwriting font and live stamp make all the difference \u2014 our response rates beat everything else we send.",color:"bg-[#ED5C2F]"},{initials:"AL",name:"Alicia L.",role:"Operations Manager",quote:"The team actually helped us build the right list, not just print letters. Clean ordering and the targeting help was the difference.",color:"bg-[#F28230]"},{initials:"RT",name:"Ray T.",role:"Owner",quote:"Fast turnaround, easy to reorder, and the letters look genuinely personal. It's become a core part of our outreach.",color:"bg-[#3F454F]"}],X=["bg-[#ED5C2F]","bg-[#F28230]","bg-[#3F454F]"],Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";
1return String(e).split(/\s+/).filter(Boolean).slice(0,2).map((function(e){var t;return(null===(t=e[0])||void 0===t?void 0:t.toUpperCase())||""})).join("")},J=function(e){var t=Number(null===e||void 0===e?void 0:e.ratings);return!Number.isFinite(t)||t<=0?5:Math.min(5,Math.max(1,Math.round(t)))},ee=function(e){return String(e||"").toLowerCase().replace(/<[^>]*>/g," ").replace(/\([^)]*\)/g," ").replace(/[^a-z0-9]+/g," ").trim()},te=function(e,t){if(!e)return e;var n=(0,x.GYi)(t),r=Array.isArray(null===n||void 0===n?void 0:n.options)?n.options:[];if(r.includes(e))return e;var i=ee(e),a=r.find((function(e){return ee(e)===i}));if(a)return a;var o=i.includes("first class"),l=i.includes("standard class");if(o){var s=r.find((function(e){return ee(e).includes("first class")}));if(s)return s}if(l){var u=r.find((function(e){return ee(e).includes("standard class")}));if(u)return u}return e},ne=function(e){var t=String(e||""),n=W(t.matchAll(/href\s*=\s*['"]([^'"]+)['"]/gi)).map((function(e){return e[1]}));return n.length>0?n:t.split("\n").map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=e.match(/(https?:\/\/[^\s"'<>]+)/i);return(null===t||void 0===t?void 0:t[1])||null})).filter(Boolean)},re=!0;function ie(e){var t,n,r=e.product,c=e.addOnProducts,P=e.multiTouchProducts,U=e.productCategories,G=e.productImages,Z=e.fields,ee=e.variations,re=e.slug,ie=e.variationsAttrs,ae=e.templateIndustries,oe=e.reviews,le=r.attributes,se=r.default_attributes,ue=(0,s.useState)(),ce=ue[0],de=ue[1],fe=(0,s.useState)(),me=fe[0],pe=fe[1],ve=Z.templates_and_attributes,he=(0,s.useState)(G),xe=he[0],ge=he[1],be=(0,s.useState)([]),ye=be[0],je=be[1],we=(0,s.useState)(200),Ne=we[0],ke=we[1],Se=(0,s.useState)(200),Ce=Se[0],Te=Se[1],Ae=(0,s.useState)(!1),Ee=Ae[0],_e=Ae[1],Pe=(0,s.useState)(!1),Fe=Pe[0],qe=Pe[1],De=(0,s.useState)(1),Me=De[0],Oe=De[1],Ie=(0,s.useState)(0),Le=Ie[0],Re=Ie[1],Be=(0,s.useState)([]),Ue=Be[0],Ge=Be[1],Ve=(0,s.useRef)(),He=(0,C.useRouter)(),Ke=(0,v.y)((function(e){return e.files})),Qe=(0,M.U)((function(e){return e.user})),We=(0,s.useState)([]),Ze=We[0],$e=We[1],ze=(0,v.y)((function(e){return e.reset})),Xe=(0,v.y)((function(e){return e.remove})),Ye=(0,s.useState)(!1),Je=Ye[0],et=Ye[1],tt=(0,s.useState)({}),nt=tt[0],rt=tt[1],it=(0,N.z1)((function(e){return e.save})),at=(0,v.y)((function(e){return e.add})),ot=(0,s.useState)(0),lt=ot[0],st=ot[1],ut=(0,s.useState)(0),ct=ut[0],dt=ut[1],ft=(0,s.useState)(0),mt=ft[0],pt=ft[1],vt=(0,s.useState)([]),ht=vt[0],xt=vt[1],gt=(0,s.useState)(!1),bt=gt[0],yt=gt[1],jt=(0,x.h6L)(r),wt=ve&&ve.length>0&&!jt,Nt=(0,s.useState)(0),kt=Nt[0],St=Nt[1],Ct=(0,s.useState)(1),Tt=Ct[0],At=Ct[1],Et=Q((0,f.g4)(Tt),2),_t=Et[0],Pt=Et[1],Ft=Pt.canGoToPrevStep,qt=Pt.canGoToNextStep,Dt=Pt.goToNextStep,Mt=Pt.goToPrevStep,Ot=Pt.setStep,It=c.find((function(e){return e.option_name==x.Du3.name})),Lt=(0,O.v)((function(e){return e.add})),Rt=Array.isArray(null===Z||void 0===Z?void 0:Z.faq)&&Z.faq.length>0?Z.faq:$,Bt=Array.isArray(oe)&&oe.length>0?oe.filter((function(e){return"Text"===e.type})).sort((function(e,t){return String((null===e||void 0===e?void 0:e.text)||"").length-String((null===t||void 0===t?void 0:t.text)||"").length})).slice(0,3):[],Ut=(0,u.cI)({resolver:V(i().mark((function e(){var t,n=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n[0],e.next=3,(0,o.X)((0,x.nYj)({values:t,currentStep:_t,stepsAndFields:ht,product:r,multiTouchProducts:P,slug:re,isThisMultiTouchProduct:jt,totalSteps:Tt})).apply(this,n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),defaultValues:function(){var e=H({},x.Cux.name,x.Cux.default);return"professional-letters"!==re&&"real-penned-professional-letters"!==re||(e[x.KGH.name]=x.KGH.defaultValue),e}()}),Gt=Ut.register,Vt=Ut.handleSubmit,Ht=Ut.formState.errors,Kt=Ut.setValue,Qt=Ut.setError,Wt=Ut.clearErrors,Zt=Ut.watch,$t=Ut.reset,zt=Ut.getValues,Xt=function(){var e=ht[_t-1],t=null===e||void 0===e?void 0:e.name,n=(Array.isArray(null===e||void 0===e?void 0:e.fields)?e.fields:[]).map((function(e){return null===e||void 0===e?void 0:e.name}
1)).filter(Boolean);return"Your mailing list"===t&&(zt(x.mif.name)===x._vU?n.push(x.efU.name,x.Du3.name):zt(x.mif.name)===x.TBi&&n.push(x.to9.name,x.hZ$.name)),(null===Ht||void 0===Ht?void 0:Ht[x.KGH.name])&&n.push(x.KGH.name),(0,l.pick)(Ht,n)}();function Yt(){return(Yt=V(i().mark((function e(t){var n,r,a,o,s,u,c,d,f,m,p,v,h,y,j,w,N,k,S,C,T,A,E,_,P,F,q,M;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=String(t||"").match(/^#(\d+)/),r=n?parseInt(n[1],10):0){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,D.D.get(r);case 6:if(a=e.sent,o=a.data,s=(0,l.first)((null===o||void 0===o?void 0:o.line_items)||[]),u=Array.isArray(null===s||void 0===s?void 0:s.meta_data)?s.meta_data:[],c=Object.fromEntries(u.map((function(e){return[null===e||void 0===e?void 0:e.key,null===e||void 0===e?void 0:e.value]}))),d=(0,R.PH)(u),f=c[x.Iw3.name]||null,m=c[x.TiD.name]||null,p=c["Batch Mailing"]||null,v=c["Time Between Each Touch"]||null,h=c["Mailing Date"]||null,y=K({},zt()),f&&(y[x.Iw3.name]=f),m&&f===x.iCR&&(null===(j=null===ve||void 0===ve?void 0:ve.find((function(e){var t=e.template;return String((null===t||void 0===t?void 0:t.name)||"").trim().toLowerCase()===String(m).trim().toLowerCase()})))||void 0===j?void 0:j.template)&&(y[x.TiD.name]=j.template),w=new Set(["Mapping List Group",x.to9.name,x.grR,x.efU.name,x.wW2,x.I_P,"Comments","Actual Quantity","Total Mailers","Mailers Quantity","Quantity","ReUpload-Time","ReUpload-By","Admin-Upload-Time","Admin-Uploaded-By","files","price","quantity",x.Trl,x.yls]),(null===d||void 0===d?void 0:d.value)&&(N=(0,g.yC)(d.value),(k=ne(d.value)).length>0&&(y[x.mif.name]=x.TBi,y[x.p_m]=k.map((function(e,t){return{url:e,name:N[t]||e.split("/").pop()||"Lead file ".concat(t+1),path:N[t]||e.split("/").pop()||"Lead file ".concat(t+1)}})))),u.forEach((function(e){var t=null===e||void 0===e?void 0:e.key,n=null===e||void 0===e?void 0:e.value;if(t&&!w.has(t)&&"string"===typeof n&&t!==x.Iw3.name)if(t!==x.TiD.name)if(t!==x.Cux.name)if(t!==x.F5m)if("Real Penned Envelope"!==t)if(t!==x.M9g.name)t!==B.EO&&"Admin-ROS-File"!==t&&"ReUpload-Client-ROS-File"!==t&&"ReUpload-Admin-ROS-File"!==t&&t!==B.D8&&t!==B.S3&&t!==B.F6&&t!==x.p_m&&t!==x.grR&&(y[t]="Mail For Customer"!==t?n:"yes"===n);else{var r=(0,g.yC)(n),i=ne(n);i.length>0&&(y[t]=i.map((function(e,t){return{url:e,name:r[t]||e.split("/").pop()||"Design file ".concat(t+1)}})))}else y["Real Penned Envelope"]=n;else y[x.F5m]=te(n,Ue);else y[t]="true"===n||!0===n;else{var a=String(n).match(/href=['"]([^'"]+)['"][^>]*>([^<]+)</i)||null;a&&(y[t]={url:a[1],name:a[2]})}})),(null===s||void 0===s?void 0:s.variation_id)&&(de(s.variation_id),(S=en.find((function(e){return e.id===s.variation_id})))&&(pe(S),ke((0,x.BN7)(S)))),c[x.F5m]&&(y[x.F5m]=te(c[x.F5m],Ue)),c[x.efU.name]&&(y[x.efU.name]=c[x.efU.name]),h&&(y["Mailing Date"]=h),v&&(y["Time Between Each Touch"]=v),(C=Number(c[x.aBv]||c[x.JPR]||c.Quantity||c[x.efU.name]||0))>0&&(pt(C),Re(0),Te(C)),$t(y),y[x.mif.name]!==x.TBi){e.next=41;break}return ze(),T=(0,R.N2)(o),e.next=36,Promise.all(T.map((function(e){var t=Q(e,2),n=t[0],r=t[1];return new Promise((function(e,t){b.b.parseRemoteFile({file:r,complete:function(t){var r=Array.isArray(null===t||void 0===t?void 0:t.data)?t.data:[],i=r.length>0?[Object.keys(r[0]||{}).reduce((function(e,t){return K({},e,H({},t,"<<".concat(t,">>")))}),{})].concat(W(r)):[];at({product:re,name:n,data:{valids:i,invalids:[]},originalTotalRows:r.length,removedMailingDuplicates:!1,removedPropertyDuplicates:!1}),e({product:re,name:n,data:{valids:i,invalids:[]},validLength:Math.max(i.length-1,0),originalTotalRows:r.length})},error:t})}))})));case 36:A=e.sent,$e(A.map((function(e){return{product:e.product,name:e.name,data:e.data,originalTotalRows:e.originalTotalRows}}))),E=A.reduce((function(e,t){return e+t.validLength}),0),_=A.reduce((function(e,t){return e+t.originalTotalRows}),0),E>0&&(P=E<Ne?Ne:E,F=(null===s||void 0===s?void 0:s.variation_id)?en.find((function(e){return e.id===s.variation_id})):me,q=nn(F),M=P*tn(),Te(P),st(parseFloat(q)*M),dt(0),pt(E),Re(_-E),p&&Kt("Batch Mailing",p));case 41:p&&y[x.mif.name]!==x.TBi&&Kt("Batch Mailing",p),v&&Kt("Time Between Each Touch",v),h&&Kt("Mailing Date",h);case 44:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Jt=function(e){var t=nn(me);Te(e);var n=e*tn();st(parseFloat(t)*n)},en=ee.map((function(e){var t=e.id,n=e.attributes,r={};
1return n.forEach((function(e){var t=e.name,n=e.option;r[t]=n})),{id:t,optionValues:r,item:e}})),tn=function(){return(0,x.$jB)(zt)},nn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=e||me||{id:r.id,item:r},n=gn(t);if((0,x.QkH)(r)){var i=zt();n=(0,x.J$I)(i,P,Ce),St(n)}return Oe(n),n},rn=function(){var e=V(i().mark((function e(t){var n,a,o,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,x.VoM)(r)&&!(0,x.QkH)(r)){e.next=6;break}return n={id:r.id,item:r},pe(n),de(n.id),nn(n),e.abrupt("return");case 6:if(!(a=(null===t||void 0===t?void 0:t[x.wW2])&&(null===t||void 0===t?void 0:t[x.Iw3.name])==x.JKP)){e.next=10;break}return e.next=10,kn(t);case 10:o=zt(),s=en.find((function(e){var t=e.optionValues;return(0,l.isMatch)(o,t)})),de(!1),s?(pe(s),de(s.id),ke((0,x.BN7)(s)),nn(s)):a&&nn({id:r.id,item:r});case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),an=function(e,t){if(!(0,x.h6L)(r)){if((null===e||void 0===e?void 0:e.includes(x.Iw3.name))&&(null===t||void 0===t?void 0:t.includes(x.urm)))return rt({}),Kt(x.Cux.name,!0),void qe(!0);var n=function(e,t){var n=String(t||"").trim().toLowerCase();return(0,l.isEmpty)(t)||"not applicable"===n?function(e){var t=Ue.find((function(t){return(null===t||void 0===t?void 0:t.name)===e}))||le.find((function(t){return(null===t||void 0===t?void 0:t.name)===e})),n=Array.isArray(null===t||void 0===t?void 0:t.options)?t.options:[];if(e===x.Al6){var r=n.find((function(e){return String(e).trim().toLowerCase().startsWith("print")}));if(r)return r}return n.length>0?n[0]:null}(e):t};if(x.TiD.name==e&&t){var i=ve.find((function(e){return e.template.url==t.url}));if(i){var a=i.attributes||{};rt(a),x.Fr8.forEach((function(e){var t=n(e,a[e]);(0,l.isEmpty)(t)||Kt(e,t)}))}}}},on=function(){},ln=function(){var e=V(i().mark((function e(t){var n,r,a,o,l,s,u,c,d;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n={},r=!0,a=!1,o=void 0,e.prev=2,l=Object.keys(t)[Symbol.iterator]();case 4:if(r=(s=l.next()).done){e.next=24;break}if(u=s.value,c=t[u],!Array.isArray(c)){e.next=20;break}if(d=c[0],!(d&&"object"===typeof d&&"string"===typeof d.url&&!d.data)){e.next=14;break}e.t0=c,e.next=17;break;case 14:return e.next=16,(0,g.wX)(c);case 16:e.t0=e.sent;case 17:n[u]=e.t0,e.next=21;break;case 20:n[u]=c;case 21:r=!0,e.next=4;break;case 24:e.next=30;break;case 26:e.prev=26,e.t1=e.catch(2),a=!0,o=e.t1;case 30:e.prev=30,e.prev=31,r||null==l.return||l.return();case 33:if(e.prev=33,!a){e.next=36;break}throw o;case 36:return e.finish(33);case 37:return e.finish(30);case 38:return e.abrupt("return",n);case 39:case"end":return e.stop()}}),e,null,[[2,26,30,38],[31,,33,37]])})));return function(t){return e.apply(this,arguments)}}(),sn=function(e){if(e){var t,n=(H(t={},x.mif.name,{value:"no",deleteFields:[x.to9.name,x.grR.name]}),H(t,x.Iw3.name,{value:x.JKP,deleteFields:[x.wW2],notEqual:!0}),t),r=!0;for(var i in n)i in e&&((n[i].notEqual&&e[i]!==n[i].value||!n[i].notEqual&&e[i]===n[i].value)&&n[i].deleteFields.forEach((function(t){delete e[t]})),r=!1);return r&&delete e[x.efU.name],delete e[x.k3K],e}},un=function(e){var t=String((0,g.e$)(e));return t.toLowerCase().includes("cannot create order from empty cart")?t+" Please logout and login again.":t},cn=function(){var e=V(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_.W.cart({total:lt});case 2:He.push("/cart");case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dn=function(e){27==e.keyCode&&e.stopImmediatePropagation()},fn=function(e,t){Xe(e,t)},mn=(0,x.hNe)({attributes:Ue,fields:Z,quantity:Ce,totalSteps:Tt,product:r,getValues:zt,multiTouchProducts:P,showCutomizations:null===(t=zt())||void 0===t?void 0:t[x.Cux.name],streetviewLocked:bt}),pn=(0,s.useCallback)((function(){return c}),[c,null===(n=He.query)||void 0===n?void 0:n.invalidatePagesPrintingVariation]),vn=function(){(0,x.A2W)(r),it(pn()),xt(mn),Oe(r.price),ke((0,x.BN7)(r)),ze(),(0,x.h6L)({slug:re})||Kt(x.Cux.name,!1)}
1,hn=function(e,t){if(Wt(e.name),e.name!==x.KGH.name&&(!(0,x.d4V)(r)||!((0,x.CJw)(e)||(0,x.jN2)(e)||(0,x.zzO)(e)||(0,x.Kvd)(e)))){(0,x.BHK)(r,e)&&At((0,x.A2W)(r,(0,x.OeF)(t))),(0,x.cct)({selectedItem:e,getValues:zt,stepsFields:mn,setStepsAndFields:xt});var n=ie.filter((function(n){return n.find((function(n){var r=n.name,i=n.option;return r===e.name&&i===t}))})).map((function(t){return t.filter((function(t){return t.position>e.position}))})),i={},a=!0,o=!1,s=void 0;try{for(var u,c=(0,l.flatten)(n)[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value,f=d.name,m=d.option;i[f]&&!i[f].includes(m)?i[f].push(m):!i[f]&&(i[f]=[m])}}catch(p){o=!0,s=p}finally{try{a||null==c.return||c.return()}finally{if(o)throw s}}Object.keys(i).length>0&&Ge((0,k.ZP)((function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=function(t,n){var r=n.value,a=e.find((function(e){return e.name===r}));a&&(a.options=i[r])},l=Object.keys(i)[Symbol.iterator]();!(t=(a=l.next()).done);t=!0)o(0,a)}catch(p){n=!0,r=p}finally{try{t||null==l.return||l.return()}finally{if(n)throw r}}})))}},xn=function(e){var t,n,r=function(){if(!ye||!ye.pricing_tiers||0===ye.pricing_tiers.length)return null;var e={};return ye.pricing_tiers.forEach((function(t){e[t.quantity]=t.price})),{rules:e,type:ye.pricing_type||"fixed"}}();if(!r)return null;var i=(null===me||void 0===me||null===(t=me.item)||void 0===t?void 0:t.price)||(null===me||void 0===me||null===(n=me.item)||void 0===n?void 0:n.sale_price)||0;return(0,x.PcT)(r.rules,e,r.type,i)},gn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=M.U.getState().user,n=e||me,r=(0,x.aS7)(null===n||void 0===n?void 0:n.item,Ce,tn());if(n&&t){var i=xn(Ce);r=null!==i?i*tn():(0,x.aS7)(null===n||void 0===n?void 0:n.item,Ce,tn())}return r},bn=Zt(x.Cux.name),yn=Zt(x.F5m);(0,s.useEffect)((function(){(0,x.QkH)(r)||yn===x.Vwe&&Kt(x.oTV.name,!0)}),[yn,Kt,r]);var jn=function(e){var t=zt(),n=(0,x.VId)(e);return n&&t["Mailer Type "+n]||null},wn=function(e){var t=null===e||void 0===e?void 0:e.url;if(t){var n=[{original:t,thumbnail:t}].concat(W(G));ge(n)}},Nn=function(){var e=V(i().mark((function e(){var t,n,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=Qe.ID){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,q(r.id,t);case 6:n=e.sent,a=n.data,(null===a||void 0===a?void 0:a.pricing_tiers)&&(console.log("userPricing",a),je(a)),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.log("error",e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),kn=(0,s.useCallback)(function(){var e=V(i().mark((function e(t){var n,r,a,o,l,s,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t[x.wW2],r=W(n.matchAll(/\[(\d+)\]/g)),a=r.length?parseInt(r[r.length-1][1],10):0){e.next=10;break}if(o=n.match(/\[pid:(\d+)\]/),!(l=o?parseInt(o[1],10):0)){e.next=9;break}return e.next=9,F(l);case 9:return e.abrupt("return");case 10:return e.next=12,F(a);case 12:s=e.sent,(u=s.data)&&(null===u||void 0===u||u.attributes.map((function(e){(null===e||void 0===e?void 0:e.name)&&(null===e||void 0===e?void 0:e.option)&&Kt("From ".concat(x.INV," ")+e.name,e.option)})));case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[Kt]);return(0,s.useEffect)((function(){qe(bn)}),[bn]),(0,s.useEffect)((function(){Kt("variationId",ce)}),[ce,Kt]),(0,s.useEffect)((function(){(0,g.cM)("errors",Ht)}),[Ht]),(0,s.useEffect)((function(){!function(){var e=(0,v.o)(re);$e(e);var t=0,n=0,r=0;if(me&&e.length>0){var i=!0,a=!1,o=void 0;try{for(var l,s=e[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var u=l.value;t+=parseInt(u.data.valids.length)-1,n+=parseInt(u.data.invalids.length),r+=parseInt(u.originalTotalRows)}}catch(c){a=!0,o=c}finally{try{i||null==s.return||s.return()}finally{if(a)throw o}}}t>0?(Jt(t<Ne?Ne:t),dt(n),pt(t),Re(r-t)):(Jt(0),pt(0)),(0,g.cM)(t,n,r),(0,g.cM)("trigger this when csv files changes after ")}()}),[Ke]),(0,s.useEffect)((function(){var e=ht[_t-1];"Your mailing list"!==(null===e||void 0===e?void 0:e.name)&&Wt([x.efU.name,x.to9.name,x.hZ$.name])}),[Wt,_t,Ht,ht]),(0,s.useEffect)((function(){return xt(mn),function(){return xt([])}}),[Ue,Tt,_t,yn,bt]),(0,s.useEffect)((function(){return Ge(le),(0,g.cM)("originalAttributes",le),function(){return Ge([])}}),[le]),(0,s.useEffect)((function(){return ze(),et((function(e){return!e})),$t(),Ot(1),pe(null),de(null),ke(0),Oe(1),Te(0),Re(0),dt(0),pt(0),st
1(0),$e([]),vn(),At((0,x.A2W)(r)),xt(mn),function(){xt([]),ge([])}}),[r]),(0,s.useEffect)((function(){return vn(),document.addEventListener("keydown",dn),document.removeEventListener("keydown",dn)}),[]),(0,s.useEffect)((function(){it(pn())}),[pn,it]),(0,s.useEffect)((function(){return qe((0,x.WST)(r)),function(){qe(!1)}}),[r]),(0,s.useEffect)((function(){nn(me)}),[lt,me,Ce]),(0,s.useEffect)((function(){return nt&&Kt(x.Trl,nt),function(){return Kt(x.Trl,null)}}),[nt]),(0,s.useEffect)((function(){return Kt(x.yls,Ue),function(){return Kt(x.yls,null)}}),[Ue]),(0,s.useEffect)((function(){xe.length&&G.length&&xe.length!==G.length&&Ve.current.slideToIndex(0)}),[xe]),(0,s.useEffect)((function(){return ge(G),function(){return ge([])}}),[He.asPath]),(0,s.useEffect)((function(){var e=Zt((function(e,t){var n=t.name,i=n,a=e[n],o=String((null===r||void 0===r?void 0:r.slug)||"").toLowerCase().includes("postcard");if(i===x.TiD.name&&(wn(a),o)){var l=(0,x.OiA)(null===a||void 0===a?void 0:a.name);l&&Kt(x.bHi,x.haq),yt(l)}if(i===x.I_P&&!0===a){var s=e[x.wW2];s&&function(e){Yt.apply(this,arguments)}(s)}i===x.efU.name&&(ke(500),Jt(a),dt(0),pt(a),Re(0),(0,g.cM)("noOfRecordsField",a,x.efU.name));var u=i===x.pbw||(null===i||void 0===i?void 0:i.includes(x.pbw));o&&u&&function(){var e,t;if(Ve.current){var n=(null===(e=Ve.current)||void 0===e||null===(t=e.props)||void 0===t?void 0:t.items)||xe;if(Array.isArray(n)&&n.length){var r=n.findIndex((function(e){return"OLM Postcard Sizes with mockups"===(null===e||void 0===e?void 0:e.originalTitle)}));r<0||r>=n.length||Ve.current.slideToIndex(r)}}}();var c=/^Mailer Type \d+$/.test(i||""),d=new RegExp("^Mailer Type \\d+ ".concat(x.F5m,"$")).test(i||""),f="Touches"===i,m=i===x.F5m;(0,x.QkH)(r)&&(c||d||f||m)&&nn({id:r.id,item:r}),an(i,a)}));return function(){e.unsubscribe(),rt({}),qe(!1)}}),[He.asPath]),(0,s.useEffect)((function(){Nn()}),[Qe]),(0,s.useEffect)((function(){var e,t;if((null===(e=He.query)||void 0===e?void 0:e.template)&&(null===(t=He.query)||void 0===t?void 0:t.templateName)){console.log("Populating template fields from query params");var n={url:He.query.template,name:He.query.templateName},r=setTimeout((function(){var e;console.log("Setting template values after delay:",null===(e=He.query)||void 0===e?void 0:e.template),Kt(x.Iw3.name,x.iCR),Kt(x.TiD.name,n),wn(n),an(x.TiD.name,n)}),50);return function(){return clearTimeout(r)}}}),[He.query,Kt,x.Iw3.name,x.TiD.name]),(0,a.jsxs)("div",{className:"bg-[#FFF8F0]",children:[(0,a.jsx)(p.Z,{metaTitle:r.name,meta:r.yoast_head,hideTitle:!0},r.slug),(0,a.jsx)(m.j,{children:(0,a.jsxs)("div",{className:"px-5 pt-10 md:px-0 mb-[22px]",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-[14px]",children:[(0,a.jsx)("h1",{className:"text-[32px] font-extrabold leading-none text-olm-black",children:r.name}),wt&&(0,a.jsxs)("button",{type:"button",onClick:function(){(0,O.v.getState().add)((0,a.jsx)(I.Z,{templates_and_attributes:ve,templateIndustries:ae,setValue:Kt,getValues:zt,afterSelection:function(e){(0,g.cM)("Template selected from gallery button",e),Kt(x.Iw3.name,x.iCR)},item:x.TiD}))},className:"inline-flex items-center justify-center rounded-full border-[1.5px] border-[#F6D9C2] bg-white px-4 py-[9px] text-[13.5px] font-semibold text-[#ED5C2F] transition-[background-color,transform] duration-150 hover:bg-[#FDF4EC] active:translate-y-[1px] focus:outline-none focus:ring-4 focus:ring-[#F28230]/15",children:[(0,a.jsx)("span",{className:"mr-1 text-[12px] leading-none",children:"\u25a6"}),(0,a.jsx)("span",{children:"View templates"})]})]}),(0,a.jsx)("div",{className:"w-auto",children:(0,a.jsxs)("div",{className:"mt-2 text-[13px] font-medium text-gray-400",children:["Shop / ",r.name]})})]})}),Ee&&(0,a.jsx)(T.Z,{text:"Adding to cart..."}),(0,a.jsxs)(m.W,{children:[(0,a.jsx)("form",{autoComplete:"off",onSubmit:function(e){e.preventDefault();var t=(0,x.gii)(ht);Vt(function(){var e=V(i().mark((function e(n){var a,o,s,u,c,d,f,m;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,_e(!0),!(Number(Ce)<1&&t)){e.next=5;break}return Qt("quantity",{type:"custom",message:"Quanity cannot be 0. Please upload at least one csv file."}),e.abrupt("return");case 5:if(me){e.next=8;break}return Qt("variation",{type:"custom",message:"Please select a variation."}),e.abrupt("return");case 8:return a="/product/"+re,o=(0,l.omit)(n,["toc","null","attributes"]),o=(0,x.O0U)(o,(0,x.h6L)({slug:re})),s=nn(),o.price=s,u=Ce,o.quantity=Ce*tn(),o=(0,x.cwE)(o),e.next=18,ln(o);case 18:if(o=e.sent,(0,x.WST)({slug:re})&&(o[x.JPR]=Number(Ce),o[x.wjm]=Number(tn()*Ce)),o[x.aBv]=String(mt),o[E.gM]=o.price,(0,x.QkH)(r)&&(c=(0,x.f5q)(n),(0,g.k3)("mailerProductNames",c),Object.entries(c).forEac
1h((function(e){var t=Q(e,2),n=t[0],r=t[1],i=String(r).toLocaleLowerCase(),a="".concat(n," ").concat(x.F5m);(null===o||void 0===o?void 0:o[a])===x.Vwe||(0,x.TN)(i)&&((0,g.k3)("shouldAddShippingCampaignProduct",i),(0,g.k3)("getshippingFieldName({ name })",(0,x.vqG)({slug:i})),(0,l.has)(o,(0,x.vqG)({slug:i}))?o[(0,x.vqG)({slug:i})]=parseInt(o[(0,x.vqG)({slug:i})])+(0,x.GcG)(mt):o[(0,x.vqG)({slug:i})]=(0,x.GcG)(mt))}))),(0,x.UgM)(re)&&(o[(0,x.vqG)({slug:re})]=(0,x.GcG)(mt)),(0,x.P9y)(o)&&(o=(0,x.lNA)(o,u)),d=(0,x.BN7)(me),console.log("quantity","undefined"===typeof Ce?"undefined":(i=Ce)&&"undefined"!==typeof Symbol&&i.constructor===Symbol?"symbol":typeof i,Ce,d),!(Number(Ce)<Number(d)&&(0,l.has)(n,x.efU.name))){e.next=30;break}return Qt("quantity",{type:"custom",message:"Quanity cannot be less than minimum Quantity. Please enter a valid number in\n                            ".concat(x.efU.label,".")}),e.abrupt("return");case 30:return o=sn(o),(0,x.NsW)(o),f=K({productId:r.id,productCategories:U},o,{variation:me,product:{slug:re,name:r.name,link:a},files:(0,v.o)(re)}),e.next=35,(0,x.IK3)(f);case 35:cn(f),e.next=44;break;case 38:e.prev=38,e.t0=e.catch(0),console.log("add to cart",e.t0),m=(0,g.e$)(e.t0),(0,g.cM)(m),m.includes(N.TL)?Qt(x.KGH.name,{type:"custom",message:N.TL}):(0,g.DU)(un(e.t0));case 44:return e.prev=44,_e(!1),e.finish(44);case 47:case"end":return e.stop()}var i}),e,null,[[0,38,44,47]])})));return function(t){return e.apply(this,arguments)}}())()},children:(0,a.jsxs)("div",{className:"mt-[-40px] flex w-full flex-col gap-4 md:flex-row md:items-start md:gap-7",children:[(0,a.jsxs)("div",{className:"w-full min-w-0 md:flex-1",children:[(0,a.jsx)(S.Z,{product:r}),(0,a.jsx)("div",{children:xe.length>0&&(0,a.jsx)(d(),{ref:Ve,showPlayButton:!1,items:xe,additionalClass:"olm-product-gallery"})}),(0,a.jsx)("section",{children:r.short_description&&(0,a.jsxs)("div",{className:"relative z-0 mt-[18px] clear-both rounded-2xl border border-[#ECE6DC] bg-white px-[22px] py-5 shadow-[0_1px_2px_rgba(26,29,35,0.04),0_8px_24px_rgba(26,29,35,0.06)]",children:[(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-[10px] text-[16px] font-extrabold text-[#1A1D23]",children:[(0,a.jsx)("div",{className:"flex h-[30px] w-[30px] items-center justify-center rounded-[8px] bg-[#FDF4EC] text-[#ED5C2F]",children:"\u25a4"}),(0,a.jsx)("h2",{children:"Product Details"})]}),(0,a.jsx)("div",{className:"product-description text-[13.5px] leading-[1.55] text-[#1A1D23]",children:(0,a.jsx)(g.$3,{children:r.short_description})})]})})]}),(0,a.jsxs)("div",{className:"w-full md:sticky md:block md:w-[468px] md:shrink-0",children:[(0,a.jsx)("div",{className:"w-full rounded-xl border border-[#ECE6DC] bg-[#FBF8F3] p-4 lg:py-6 lg:pr-6",children:(0,a.jsx)(h.vF,{config:{currentStep:_t,totalSteps:Tt,goToPrevStep:Mt,nextStep:function(){var e=ht[_t-1];"Your mailing list"!==(null===e||void 0===e?void 0:e.name)&&Wt([x.efU.name,x.to9.name,x.hZ$.name]),Vt((function(e){(0,g.cM)(e);var t=ht[_t-1];if("Your mailing list"===(null===t||void 0===t?void 0:t.name)&&e[x.mif.name]===x._vU&&(0,l.has)(e,x.efU.name)){var n=me?(0,x.BN7)(me):Ne;if(Number(e[x.efU.name])<n)return void Qt(x.efU.name,{type:"custom",message:"Quantity cannot be less than minimum quantity (".concat(n,"). Please enter a valid number.")})}rn(e),on(),(0,x.QkH)(r)&&((0,g.k3)("totalSteps",Tt,_t),Tt-_t==2&&((0,g.k3)("has come here"),function(){var e;xt((0,x.hNe)({attributes:Ue,fields:Z,quantity:Ce,totalSteps:Tt,product:r,getValues:zt,multiTouchProducts:P,showCutomizations:null===(e=zt())||void 0===e?void 0:e[x.Cux.name],streetviewLocked:bt}))}())),Dt()}))()},canGoToPrevStep:Ft,canGoToNextStep:qt,errors:Xt,quantity:Ce,finalButton:(0,a.jsx)(j.a,{className:"my-2"})},children:ht.map((function(e,t){return(0,a.jsxs)(h.h8,{title:e.name,auxTitle:jn(e.name),index:t+1,children:["Your mailing list"===e.name?(0,a.jsx)("div",{className:"pb-2",children:(0,a.jsx)("p",{className:"pb-2 text-[13.5px] font-medium leading-[1.65] text-[#6B7280]",children:e.description})}):(0,a.jsx)(w,{children:e.description}),"Your mailing list"===e.name&&(0,a.jsx)("div",{className:"pb-3",children:(0,a.jsxs)("a",{href:"https://admin.openlettermarketing.com/wp-content/uploads/2023/11/OLM-Lead-Template.csv",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-[6px] text-[13.5px] font-semibold tracking-[-0.01em] text-[#ED5C2F] transition-colors hover:text-[#F28230]",children:[(0,a.jsx)("span",{children:"Download our free Mailing List Template"}),(0,a.jsx)("span",{children:"\u2192"})]})}),e.fields.map((function(e,t){return(0,a.jsx)(A.a,{watch:Zt,templateIndustries:ae,templates_and_attributes:ve,purchaseListProduct:It,enableCustomization:Fe,isThisMultiTouchProduct:jt,attributes:Ue,product:r,register:Gt,getValues:zt,shouldReset:Je,setValue:Kt,errors:Ht,item:e,removeCsv:fn,removedRows:Le,totalInvalids:ct,totalValids:mt,minQuantity:Ne,price:Me,quantity:Ce,getMultiPlier:tn,defaultCustomizationTemplate:nt,maxLength:(0,x.CL6)(re),defaults:se,multiTouchProducts:P,onSelect:hn},e.name+t)}))]},e.name)}))},r.slug)}),!(0,l.isUndefined)(Ce)&&Ce>0&&(0,a.jsx)(y.Z,{productCsvs:Ze,getValues:zt,watch:Zt,total:lt,quantity:Ce,register:Gt,variation:me,isCampaignProduct:(0,x.WST)({slug:re}
1),getMultiPlier:tn,price:Me,cyoPrice:kt,handlePricing:nn,addOnProducts:pn()})]})]})}),r.description&&(0,a.jsx)("div",{className:"personal-letters-lower mx-auto max-w-[1200px] px-5 md:px-0",children:(0,a.jsx)(g.$3,{children:r.description})}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"personal-letters-lower mx-auto max-w-[1200px] px-5 md:px-0",children:[(0,a.jsxs)("section",{className:"panel py-10",children:[(0,a.jsx)("div",{className:"panel-lbl",children:"Questions"}),(0,a.jsx)("h2",{children:"Before you order"}),(0,a.jsx)("div",{className:"faq-list",children:Rt.map((function(e,t){return(0,a.jsxs)("details",{className:"faq group",children:[(0,a.jsxs)("summary",{className:"faq-q list-none",children:[(0,a.jsx)("span",{children:e.question}),(0,a.jsx)("span",{className:"faq-chev",children:(0,a.jsx)("svg",{width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})})]}),(0,a.jsx)("div",{className:"faq-a",children:(0,a.jsx)("div",{className:"faq-answer",children:"string"===typeof e.answer?(0,a.jsx)(g.$3,{children:e.answer}):e.answer})})]},e.question||"faq-".concat(t))}))})]}),(0,a.jsxs)("section",{className:"py-10",children:[(0,a.jsx)("div",{className:"rev-head",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"panel-lbl",children:"Reviews"}),(0,a.jsx)("h2",{children:"What customers say"})]})}),Bt.length>0?(0,a.jsx)("div",{className:"rev-grid",children:Bt.map((function(e,t){var n,r,i,o,l;return(0,a.jsxs)("div",{className:"rev-card",children:[(0,a.jsx)("div",{className:"stars",children:"\u2605".repeat(J(e))}),(0,a.jsxs)("p",{className:"rev-q",children:['"',e.text||"",'"']}),(0,a.jsxs)("div",{className:"rev-author",children:[(0,a.jsx)("div",{className:"rev-av ".concat(X[t%X.length]),children:Y((null===(n=e.client)||void 0===n?void 0:n.name)||e.author||"")}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"rev-name",children:(null===(r=e.client)||void 0===r?void 0:r.name)||e.author||""}),(0,a.jsx)("div",{className:"rev-role",children:(null===(i=e.client)||void 0===i?void 0:i.role)||(null===(o=e.client)||void 0===o?void 0:o.title)||""})]})]})]},e.id||(null===(l=e.client)||void 0===l?void 0:l.name)||e.author||"review-".concat(t))}))}):(0,a.jsx)("div",{className:"rev-grid",children:z.map((function(e){return(0,a.jsxs)("div",{className:"rev-card",children:[(0,a.jsx)("div",{className:"stars",children:"\u2605\u2605\u2605\u2605\u2605"}),(0,a.jsxs)("p",{className:"rev-q",children:['"',e.quote,'"']}),(0,a.jsxs)("div",{className:"rev-author",children:[(0,a.jsx)("div",{className:"rev-av ".concat(e.color),children:e.initials}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"rev-name",children:e.name}),(0,a.jsx)("div",{className:"rev-role",children:e.role})]})]})]},e.name)}))})]})]}),(0,a.jsx)("div",{className:"personal-letters-final-cta final-cta",children:(0,a.jsxs)("div",{className:"final-cta-inner",children:[(0,a.jsxs)("h2",{children:["Need help"," ",(0,a.jsx)("span",{className:"accent",children:"picking a mailer?"})]}),(0,a.jsx)("p",{children:"Book a quick call and we'll help you pick the right template, list, and strategy that meets your goal and budget."}),(0,a.jsxs)("button",{type:"button",onClick:function(){return Lt((0,a.jsx)(L.Z,{}))},className:"cta-btn",children:[(0,a.jsx)("span",{children:"Book a call"}),(0,a.jsx)("svg",{width:"14",height:"14",fill:"none",viewBox:"0 0 16 16","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M3 8h10M9 4l4 4-4 4",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})})]})]})]},r.slug)}},1864:function(e,t,n){var r=n(34155);!function(){"use strict";var t={977:function(e){function t(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,a=-1,o=0,l=0;l<=e.length;++l){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===o);else if(a!==l-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var s=r.lastIndexOf("/");if(s!==r.length-1){-1===s?(r="",i=0):i=(r=r.slice(0,s)).length-1-r.lastIndexOf("/"),a=l,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,a=l,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(a+1,l):r=e.slice(a+1,l),i=l-a-1;a=l,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var i={resolve:function(){for(var e,i="",a=!1,o=arguments.length-1;o>=-1&&!a;o--){var l;o>=0?l=arguments[o]:(void 0===e&&(e=r.cwd()),l=e),t(l),0!==l.length&&(i=l+"/"+i,a=47===l.charCodeAt(0))}return i=n(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];t(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var a=e.length,o=a-r,l=1;l<n.length&&47===n.charCodeAt(l);++l);for(var s=n.length-l,u=o<s?o:s,c=-1,d=0;d<=u;++d){if(d===u){if(s>u){if(47===n.charCodeAt(l+d))return n.slice(l+d+1);if(0===d)return n.slice(l+d)}else o>u&&(47===e.charCodeAt(r+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(r+d);if(f!==n.charCodeAt(l+d))break;47===f&&(c=d)}var m="";for(d=r+c+1;d<=a;++d)d!==a&&47!==e.charCodeAt(d)||(0===m.length?m+="..":m+="/..");return m.length>0?m+n.slice(l+c):(l+=c,47===n.charCodeAt(l)&&++l,n.slice(l))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,a=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!==typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,a=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var l=n.length-1,s=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!o){i=r+1;break}}else-1===s&&(o=!1,s=r+1),l>=0&&(u===n.charCodeAt(l)?-1===--l&&(a=r):(l=-1,a=s))}return i===a?a=s:-1===a&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===a&&(o=!1,a=r+1);return-1===a?"":e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,l=e.length-1;l>=0;--l){var s=e.charCodeAt(l);if(47!==s)-1===i&&(a=!1,i=l+1),46===s?-1===n?n=l:1!==o&&(o=1):-1!==n&&(o=-1);else if(!a){r=l+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),a=47===i;a?(n.root="/",r=1):r=0;for(var o=-1,l=0,s=-1,u=!0,c=e.length-1,d=0;c>=r;
1--c)if(47!==(i=e.charCodeAt(c)))-1===s&&(u=!1,s=c+1),46===i?-1===o?o=c:1!==d&&(d=1):-1!==o&&(d=-1);else if(!u){l=c+1;break}return-1===o||-1===s||0===d||1===d&&o===s-1&&o===l+1?-1!==s&&(n.base=n.name=0===l&&a?e.slice(1,s):e.slice(l,s)):(0===l&&a?(n.name=e.slice(1,o),n.base=e.slice(1,s)):(n.name=e.slice(l,o),n.base=e.slice(l,s)),n.ext=e.slice(o,s)),l>0?n.dir=e.slice(0,l-1):a&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}},o=!0;try{t[e](a,a.exports,i),o=!1}finally{o&&delete n[e]}return a.exports}i.ab="//";var a=i(977);e.exports=a}()}},function(e){e.O(0,[4853,5518,5779,9552,6982,2730,2211,9774,2888,179],(function(){return t=30454,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
2//# sourceMappingURL=[slug]-76f1f6ed976b8209.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.