PageSourceSearch

https://batchframe.com/_next/static/chunks/8092-e0333b841802311195c0.js

js batchframe.com collected 2026-10-03 23:28:50 UTC 12,061 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8092],{778:function(e,t,n){"use strict";n.d(t,{Or:function(){return c},dG:function(){return a},RE:function(){return i},Al:function(){return u},hv:function(){return l},yy:function(){return s},wD:function(){return d},kR:function(){return f},p_:function(){return p},f6:function(){return h},vO:function(){return b}});var r=n(2809);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var c=function(e){return e.checkout.agreed},a=function(e){return e.checkout.getTotalsRequest},i=function(e){return e.checkout.applyDiscountRequest},u=function(e){return e.checkout.discount},l=function(e){return e.checkout.allFormsValid},s=function(e){return e.checkout.forceShowFormErrors},d=function(e){return e.checkout.approvedFormData},f=function(e){return e.checkout.loaded},p=function(e){var t=e.checkout.discount,n=e.cart.subtotal,c={subtotal:"$".concat(n.toFixed(2)),discount:"$0.00",total:"$".concat(n.toFixed(2)),hasDiscount:!1};if(""===t.code)return c;if(""===t.product){if(t.percent){var a=m(n*t.amount);return c.discount="-$".concat(a.toFixed(2)),c.total="$".concat((n-(n-a<0?n:a)).toFixed(2)),c.hasDiscount=!0,c}c.hasDiscount=!0,c.discount="-$".concat(t.amount.toFixed(2)),c.total="$".concat((n-(n-t.amount<0?n:t.amount)).toFixed(2))}var i=!1,u={name:"",price:0,quantity:0,id:""};if(e.cart.items.forEach((function(e){e.id===t.product&&(i=!0,u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))})),!i)return c;if(t.percent){var l=m(u.price*t.amount);return c.discount="-$".concat(t.amount.toFixed(2)),c.total="$".concat((n-(n-l<0?n:l)).toFixed(2)),void(c.hasDiscount=!0)}return c.discount="-$".concat(t.amount.toFixed(2)),c.total="$".concat((n-(n-t.amount<0?n:t.amount)).toFixed(2)),c.hasDiscount=!0,c};function m(e){return Math.floor(100*e)/100}var h=function(e){return e.checkout.placeOrderRequest},b=function(e){return e.checkout.completedOrder}},7231:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(5893),o=n(7294),c=n(7464),a=n.n(c);function i(e){var t,n=(0,o.useState)(null===(t=e.quantity)||void 0===t?void 0:t.toString()),c=n[0],i=n[1];return(0,o.useEffect)((function(){e.quantity&&i(e.quantity.toString())}),[e.quantity]),(0,r.jsxs)("div",{className:a().row,children:[(0,r.jsx)("div",{className:a().name,children:e.name}),e.quantity?(0,r.jsx)("input",{type:"text",inputMode:"numeric",className:a().quantity,value:c,onChange:function(e){i(e.target.value)},onBlur:function(t){e.onBlur(t),isNaN(parseInt(t.target.value,10))&&i(e.quantity.toString())}}):(0,r.jsx)("span",{}),(0,r.jsxs)("div",{className:a().price,children:[e.negative&&0!==e.price?"-":"","$",(e.price*("undefined"!==typeof e.quantity?e.quantity:1)).toFixed(2)]})]})}},8614:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(5893),o=n(2809),c=n(2785),a=n(3260),i=n.n(a);function u(e){return(0,r.jsxs)("article",{className:(0,c.ZP)(i().container,e.containerClassName),children:[(0,r.jsx)("div",{className:(0,c.ZP)(i().glowStrip,(0,o.Z)({},i()[e.color],e.color&&"blue"!==e.color))}),(0,r.jsx)("div",{className:(0,c.ZP)(i().content,e.className),children:e.children})]})}},5846:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(5893),o=n(2809),c=n(7294),a=n(2785),i=n(88),u=n.n(i);function l(e,t){var n=(l.canvas||(l.canvas=document.createElement("canvas"))).getContext("2d");return n.font=t,n.measureText(e).width}function s(e){var t,n=(0,c.useState)(0),i=n[0],s=n[1];return(0,c.useEffect)((function(){s(l(e.label,"normal 12px roboto"))}),[]),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:(0,a.ZP)(u().container,(t={},(0,o.Z)(t,u().error,!!e.error&&""!==e.error),(0,o.Z)(t,"form-error",!!e.error&&""!==e.error),t)),children:[e.multiline?(0,r.jsx)("textarea",{id:e.id,name:e.id,className:(0,a.ZP)(u().input,u().area),placeholder:" ",required:e.required,defaultValue:e.defaultValue,onChange:e.onChange,onBlur:e.onBlur,value:e.value,tabIndex:e.tabIndex}):(0,r.jsx)("input",{id:e.id,name:e.id,className:u().input,placeholder:" ",type:e.type,required:e.required,defaultValue:e.defaultValue,onChange:e.onChange,onBlur:e.onBlur,value:e.value,tabIndex:e.tabIndex}),(0,r.jsxs)("div",{className:u().border,children:[(0,r.jsx)("div",{className:u().borderLeft}),(0,r.jsx)("div",{className:u().borderCenter,style:{flexBasis:"".concat(i+8,"px"),width:"".concat(i+8,"px")}}),(0,r.jsx)("div",{className:u().borderRight})]}),(0,r.jsx)("label",{className:u().label,htmlFor:e.id,children:e.label})]}),(0,r.jsx)("p",{className:(0,a.ZP)(u().info),children:e.error&&""!==e.error?e.error:e.info})]})}},1215:function(e,t,n){"use strict";n.r(t),n.d(t,{createAuthorization:function(){return y},default:function(){return v}});var r=n(5893),o=n(2809),c=n(809),a=n.n(c),i=n(266),u=n(4651),l=n(7294),s=n(4751),d=n(6116),f=n(525),p=n(778),m=n(2397);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?h(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e){return(0,m.Nv)("POST","authorize",{body:e}).then((function(e){return e.data.id}))}function v(e){var t=(0,s.I0)(),n=(0,u.useRouter)(),o=(0,l.useRef)(null),c=(0,l.useRef)(null),m=(0,s.v9)(d.zk),h=(0,s.v9)(d.LW),v=(0,s.v9)(p.Al),x=(0,l.useRef)({}),_=(0,s.v9)(p.hv),j=(0,l.useRef)(null),g=(0,l.useRef)(null),O=(0,l.useRef)(!1);(0,l.useEffect)((function(){if(j.current&&g.current){if(_)return console.log("enabling"),void j.current();console.log("disabling"),g.current()}else O.current=_}),[_]),(0,l.useEffect)((function(){x.current={items:m,total:h,discount:v.amount,coupon:{code:v.code}}}),[m,h,v]);var w=function(){var r=document.body.classList.contains("dark");window.paypal.Buttons({style:{color:r?"silver":"black",layout:"vertical",shape:"rect",size:"responsive",height:42,label:"checkout"},onInit:function(e,t){console.log(_),_||t.disable(),O.current&&t.enable(),j.current=t.enable,g.current=t.disable},onClick:function(){var n;e.onClick(),t((0,f.yy)()),null===(n=document.querySelector(".form-error"))||void 0===n||n.scrollIntoView()},createOrder:function(){var t=(0,i.Z)(a().mark((function t(n,r){var o,i,u;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log(n),console.log(r),o=e.onClick(),i=o.form,c.current={firstName:i.data.firstName,lastName:i.data.lastName,email:i.data.email,notifyAll:i.data.notifyAll,notifyPurchased:i.data.notifyPurchased,payerID:"",paymentID:""},t.next=6,y({items:x.current.items,total:x.current.total,discount:x.current.discount,coupon:""!==x.current.coupon.code?x.current.coupon:null,firstName:i.data.firstName,lastName:i.data.lastName,email:i.data.email,notifyAll:i.data.notifyAll,notifyPurchased:i.data.notifyPurchased,license:!0});case 6:return u=t.sent,t.abrupt("return",u);case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),onApprove:function(e){console.log("APPROVAL DATA",e),t((0,f.ch)(b(b({},c.current),{},{payerID:e.payerID,paymentID:e.orderID}))),n.push("/review")}}).render(o.current)};return(0,l.useEffect)((function(){var e=document.createElement("script");return e.src="https://www.paypal.com/sdk/js?client-id=AeMEj8tG6TQl1EYCR9y0OalSHWLSG-7zJqa2t4z0V2zh_H75jzuP5siIiiSURovjErLCTWHfUO52UeVT&disable-funding=credit&commit=false&components=buttons,hosted-fields,funding-eligibility&currency=USD",e.async=!0,e.onload=w,document.body.appendChild(e),function(){document.body.removeChild(e)}}),[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{ref:o})})}},8092:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var r=n(5893),o=n(2809),c=n(7294),a=n(4751),i=n(6116),u=n(525),l=n(778),s=n(5788),d=n(7231),f=n(8614),p=n(5846),m=n(1215),h=n(313),b=n.n(h);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){return Math.floor(100*e)/100}function x(e){var t=(0,a.I0)(),n=(0,c.useRef)(""),h=(0,a.v9)(l.RE),x=(0,c.useState)(0),_=x[0],j=x[1],g=(0,c.useState)(""),O=g[0],w=g[1],P=(0,a.v9)(l.Al),k=(0,a.v9)(i.Nu);return(0,c.useEffect)((function(){if(""!==P.code){if(""===P.product){if(P.percent){var e=v(k.subtotal*P.amount);return j(e),void w("Applied: ".concat(P.code," - ").concat(100*P.amount,"% off entire order"))}return j(P.amount),void w("Applied: ".concat(P.code," - $").concat(P.amount.toFixed(2)," off entire order"))}var t=!1,n={name:"",price:0,quantity:0,id:""};if(k.items.forEach((function(e){e.id===P.product&&(t=!0,n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))})),!t)return j(0),void w("Applied: ".concat(P.code,", but it has no effect on this order"));if(P.percent){var r=v(n.price*P.amount);return j(r),void w("Applied: ".concat(P.code," - ").concat(100*P.amount,"% off of ").concat(n.name))}j(P.amount),w("Applied: ".concat(P.code," - $").concat(P.amount.toFixed(2)," off of ").concat(n.name))}else j(0)}),[P,k]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(f.Z,{color:"lighterBlue",children:[(0,r.jsxs)("div",{className:b().discountRow,children:[(0,r.jsx)("div",{children:(0,r.jsx)(p.Z,{id:"discount",label:"Discount Code",error:h.error.error,onChange:function(e){n.current=e.target.value},info:O})}),(0,r.jsx)(s.Z,{className:b().button,colors:{bg:"#1C5176",text:"#FFFFFF"},onClick:function(){t((0,u.b6)(n.current))},children:"Apply"})]}),(0,r.jsx)(d.Z,{price:k.subtotal,name:"Subtotal"}),(0,r.jsx)(d.Z,{negative:!0,price:k.subtotal-_<0?k.subtotal:_,name:"Discount"}),(0,r.jsx)(d.Z,{price:k.subtotal-(k.subtotal-_<0?k.subtotal:_),name:"Total"}),(0,r.jsx)(m.default,{onClick:e.get}),(0,r.jsxs)("div",{className:b().paypalInfo,children:[(0,r.jsx)("p",{children:"All transactions are handled by PayPal"}),(0,r.jsx)("p",{children:'If you do not have or want a PayPal account, you can still check out using a credit card. Just select "Pay With Card" at the bottom of the payment window after clicking "Paypal Checkout"'})]})]})})}},7464:function(e){e.exports={row:"CheckoutItem_row__2dNEs",name:"CheckoutItem_name__N2cOG",quantity:"CheckoutItem_quantity__3e4yw",price:"CheckoutItem_price__IzC-R"}},3260:function(e){e.exports={container:"GlowBox_container__26As8",content:"GlowBox_content__DIFvT",glowStrip:"GlowBox_glowStrip__2pYSl",orange:"GlowBox_orange__31hWq",lighterBlue:"GlowBox_lighterBlue__24_nX"}},88:function(e){e.exports={container:"TextField_container__j4ZD2",input:"TextField_input__hA24a",area:"TextField_area__1VRK9",label:"TextField_label__3yyiE",border:"TextField_border__3HUi-",borderLeft:"TextField_borderLeft__31nAK",borderCenter:"TextField_borderCenter__2ipZh",borderRight:"TextField_borderRight__3cwJy",error:"TextField_error__3Qor0",info:"TextField_info__2HyKt"}},313:function(e){e.exports={discountRow:"Totals_discountRow__23V6z",button:"Totals_button__3LAhH",paypalInfo:"Totals_paypalInfo__vpm4F"}}}]);

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.