PageSourceSearch

https://picklepropsshop.com/_next/static/chunks/pages/carts-bc8c64d59ed55f56.js

js picklepropsshop.com collected 2026-10-04 01:49:42 UTC 5,563 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1509],{11712:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});var a=r(57103);let n=e=>{let t=(e instanceof Error?e.message:"string"==typeof e?e:"")||"unknown error";a.A.error(t,{toastId:t}),console.error(e)}},15304:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var a=r(81278),n=r.n(a),i=r(77146),l=r(31385);let s=()=>{let[e,t]=(0,i.A)("cartId"),{isReady:r}=(0,a.useRouter)();return e?n().push("/carts/".concat(e)):r&&(0,l.zA)().then(e=>{t(e.id)}),null}},31385:(e,t,r)=>{"use strict";r.d(t,{Jm:()=>D,_$:()=>p,_B:()=>_,pm:()=>m,zA:()=>f});var a=r(87011),n=r(494),i=r(48251),l=r(87467),s=r(48252),o=r(95882),u=r(62627),c=r(57344),d=r(43868),E=r(55729);let R=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,a._)({id:e,city:"",companyName:"",country:"",createdAt:Date.now(),currency:s.A.currency,customerName:"",discount:0,discountCode:"",items:r,jobName:"",paidAt:null,pickupDate:null,returnDate:null,showName:"",state:"",status:"Draft",streetAddress:"",taxAmount:0,taxableAmount:0,taxRate:0,taxRegion:"",totalAmount:0,type:"",updatedAt:Date.now(),userEmail:(null==t?void 0:t.email)||null,userId:(null==t?void 0:t.uid)||null,vendorId:s.A.vendor.id,vendorName:s.A.vendor.name,weekCount:0,zip:""},D(r))},f=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.NS)("vendors/".concat(s.A.vendor.id,"/carts")),r=(0,o.HW)(),a=R(t.id,r,e);return await (0,i.BN)(t.path,a),t},D=e=>Object.values(e).reduce((e,t)=>({itemCount:e.itemCount+t.quantity,lineCount:e.lineCount+1,subtotal:e.subtotal+t.extendedPrice,hasDigitalDownloads:e.hasDigitalDownloads||"Digital Download"===t.item.priceSpecification.purchaseType,hasRentalDates:e.hasRentalDates||"Print to Size"===t.item.priceSpecification.purchaseType}),{hasDigitalDownloads:!1,hasRentalDates:!1,itemCount:0,lineCount:0,subtotal:0}),p=e=>{(0,u.L)(),(0,c.L)(()=>e?[{collection:"vendors/".concat(s.A.vendor.id,"/carts"),doc:e,storeAs:"cart"}]:[]);let t=(0,l.N4)(e=>{var t;return null==(t=e.firestore.data.cart)?void 0:t.items},n.bN),{cart:r,isFetching:a}=(0,l.N4)(e=>{var t;return{cart:e.firestore.data.cart,isFetching:null==(t=e.firestore.status.requesting.cart)||t}},n.bN);return{sortedItems:(0,E.useMemo)(()=>Object.values(null!=t?t:{}).sort((e,t)=>t.createdAt-e.createdAt),[t]),cart:r,isFetching:a}},_=e=>{var t;let r=(0,a._)({},e),n=(0,d.tL)(e);return r.licensePrice=null!=(t=null==n?void 0:n.price)?t:e.item.priceSpecification.price,r.extendedPrice=Math.round(r.quantity*(r.licensePrice*r.priceMultiple)*100)/100,r},m=e=>{let{weekCount:t,weeklyDiscounts:r,purchaseType:a="Weekly Rental"}=e;if("Flat Rate Rental"===a)return Number(t);if(!d.E9.includes(a))return 1;let n=0,i=Number(t)+Number(0),l=i%1,s=Math.floor(i),o=Math.floor(0),u=e=>+(s>e?1:l);for(let e=o;e<i;e++)0===e?n+=i<1?i:u(e):e<8?n+=(1-r[e-1])*u(e):n+=(1-r[7])*u(e);return n}},43868:(e,t,r)=>{"use strict";r.d(t,{E9:()=>l,Xi:()=>n,fh:()=>o,oK:()=>i,tL:()=>u,vy:()=>s});var a=r(11712);let n="https://cdn.propcart.com/shared/no_image_available.jpeg",i={_geoloc:{lat:0,lng:0},_tags:[],condition:"",createdAt:Date.now(),description:"",dimensions:{widthInches:0,heightInches:0,depthInches:0},documents:[],isTaxFree:!1,objectID:"",orderByTitle:"",photos:[],priceSpecification:{purchaseType:"Weekly Rental",price:0,bin:0,unitText:"/ week"},quantity:1,sku:"",storageLocation:"",supplier:"",thumbnail:{},title:"",updatedAt:Date.now(),visibility:"Private",vendor:{id:"",displayName:"",name:"",phone:"",email:"",website:"",address:{city:"",state:""},isListed:!1},warehouseLocation:""},l=["Daily Rental","Digital Rental","Flat Rate Rental","Per Use Rental","Print to Size","Weekly Rental"],s=["Asset","Daily Rental","Flat Rate Rental","Per Use Rental","Weekly Rental"],o=["Digital Download","Print to Size","Daily Rental","Digital Sale"],u=e=>{if(e.variantId){var t,r;let n=null==(r=e.item)||null==(t=r.baseVariants)?void 0:t.find(t=>t.id===e.variantId);if(n)return n;(0,a.Q)("Variant not found for ".concat(e.variantId))}return null}},54716:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var a=r(55729),n=r(85470);let i=()=>(0,a.useContext)(n.b)},57122:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a});let a={CLEAR_DATA:"rf/CLEAR_DATA",CLEAR_SPECIFIC:"rf/CLEAR_SPECIFIC",CLEAR_ERROR:"rf/CLEAR_ERROR",SET_LISTENER:"rf/SET_LISTENER",UNSET_LISTENER:"rf/UNSET_LISTENER",DELETE_SUCCESS:"rf/DELETE_SUCCESS",LISTENER_RESPONSE:"rf/LISTENER_RESPONSE",LISTENER_ERROR:"rf/LISTENER_ERROR",DOCUMENT_ADDED:"rf/DOCUMENT_ADDED",DOCUMENT_MODIFIED:"rf/DOCUMENT_MODIFIED",DOCUMENT_REMOVED:"rf/DOCUMENT_REMOVED"}},57344:(e,t,r)=>{"use strict";r.d(t,{L:()=>s});var a=r(83817),n=r.n(a),i=r(55729),l=r(54716);let s=e=>{let t=(0,l.j)(),r=(0,i.useRef)(),a=(0,i.useMemo)(()=>{let t;return Array.isArray(t="function"==typeof e?e():e)?t:[t]},[e]);(0,i.useEffect)(()=>
1{if(t&&!n()(a,r.current)){let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{added:e.filter(e=>!t.some(t=>n()(e,t))),removed:t.filter(t=>!e.some(e=>n()(t,e)))}}(a,r.current);r.current=a,(async()=>{await t.unsetListeners(e.removed),await t.setListeners(e.added)})()}},[a,t]),(0,i.useEffect)(()=>()=>{r.current&&t&&t.unsetListeners(r.current)},[t])}},62088:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/carts",function(){return r(15304)}])},87467:(e,t,r)=>{"use strict";r.d(t,{N4:()=>n,_B:()=>i});var a=r(494);let n=a.d4,i=()=>(0,a.wA)()}},e=>{e.O(0,[8945,2094,5974,2627,636,6593,8792],()=>e(e.s=62088)),_N_E=e.O()}]);

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.