1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1342],{23729:(e,t,a)=>{"use strict";a.d(t,{C:()=>r,U:()=>l});var n=a(63127);let r={"a-green":"Approved","b-yellow":"Maybe","c-orange":"Backup","d-red":"Rejected","e-purple":"","f-blue":"","g-teal":"","h-seagreen":"","i-pink":"","j-black":""},l=(e,t)=>e&&t?Math.ceil((0,n.A)(t,e)/7)||1:0},24673:e=>{e.exports={label:"Label_label___9rhY",hasIcon:"Label_hasIcon__HtSkN",readonly:"Label_readonly__2TwoQ"}},26215:(e,t,a)=>{"use strict";a.d(t,{L:()=>D});var n=a(6029),r=a(55729),l=a(32082),i=a(97338),o=a(83684),s=a(53133),c=a(50258),u=a(57103),d=a(95568),p=a(66439),h=a(55316);let m=(0,n.jsx)(o.y,{icon:s.lt}),y=(0,n.jsx)(o.y,{icon:s.lt,flip:"horizontal"}),v=new Date("2018-01-01"),D=e=>{let{field:{name:t,value:a},form:{setFieldValue:o,isSubmitting:s,setFieldTouched:D},id:b,isDisabled:_=!1,onChange:k,showClearDate:w,minDate:f=v,className:A}=e,g=(0,r.useCallback)(async e=>{if(null===e){await o(t,null),await D(t,!0),null==k||k(null);return}if(Array.isArray(e))return void u.A.error("dates is an array");let a=(0,h.u_)(e);await o(t,a),null==k||k(a)},[o,t,k,D]);return(0,r.useEffect)(()=>{var e,a,n,r;if(!(0,p.X)())return;let l=document.querySelector("input[name=".concat(t,"]"));if(!l)return;let i=null==(e=l.parentElement)?void 0:e.getElementsByClassName("react-date-picker__inputGroup__input");(null==i?void 0:i.length)===3&&(null==(a=i.item(0))||a.setAttribute("readonly","readonly"),null==(n=i.item(1))||n.setAttribute("readonly","readonly"),null==(r=i.item(2))||r.setAttribute("readonly","readonly"))}
1,[t]),(0,n.jsx)("div",{id:b,children:(0,n.jsx)(i.A,{calendarIcon:null,calendarType:"gregory",className:A,clearIcon:w&&a&&!_?void 0:null,disabled:_||s,format:"MM/dd/y",minDate:f,name:t,next2Label:null,nextLabel:m,onChange:g,prev2Label:null,prevLabel:y,showLeadingZeros:!1,tileDisabled:d.A.allowWeekends?void 0:e=>{let{date:t}=e;return(0,c.A)(t)},value:a?(0,l.A)(a,d.A.vendor.timezone):null})})}},31342:(e,t,a)=>{"use strict";a.d(t,{M:()=>y});var n=a(6029),r=a(55729),l=a(64761),i=a(93823),o=a(89525),s=a(84987),c=a(83982),u=a(26215),d=a(23729),p=a(16705),h=a(31385),m=a(95568);let y=e=>{let{isVerifying:t,minDate:a,showClearReturnDate:y}=e,{t:v}=(0,p.N6)(),{values:D,errors:b,setFieldValue:_,setFieldError:k,validateField:w}=(0,l.j7)(),f=(0,r.useCallback)(async e=>{if(e){let t=D.weekCount||1,a=(0,i.A)(e,t);await _("returnDate",a.valueOf()),await _("weekCount",t);let n=(0,h.pm)({weekCount:t,weeklyDiscounts:m.A.vendor.weeklyDiscounts});await _("priceMultiple",n),await w("pickupDate")}},[D.weekCount,_,w]),A=(0,r.useCallback)(async e=>{if(D.pickupDate&&e&&e<D.pickupDate)k("returnDate",v("ReturnDateError"));else{k("returnDate","");let t=(0,d.U)(D.pickupDate,e);await _("weekCount",t);let a=(0,h.pm)({weekCount:t,weeklyDiscounts:m.A.vendor.weeklyDiscounts});await _("priceMultiple",a)}},[D.pickupDate,_,k,v]);return(0,n.jsxs)(o.ZU,{style:{maxWidth:400},children:[(0,n.jsxs)(o.kL,{children:[(0,n.jsx)(s.J,{htmlFor:"pickupDate",isRequired:t,children:v("Pickup")}),(0,n.jsx)(c.A,{errors:b.pickupDate,children:(0,n.jsx)(o.JV,{component:u.L,id:"pickupDate",minDate:a,name:"pickupDate",onChange:f})})]}),(0,n.jsxs)(o.kL,{children:[(0,n.jsx)(s.J,{htmlFor:"returnDate",isRequired:t,children:v("Return")}),(0,n.jsx)(c.A,{errors:b.returnDate,children:(0,n.jsx)(o.JV,{name:"returnDate",id:"returnDate",component:u.L,minDate:a,showClearDate:y,onChange:A})})]})]})}},31385:(e,t,a)=>{"use strict";a.d(t,{Jm:()=>y,_$:()=>v,_B:()=>D,pm:()=>b,zA:()=>m});var n=a(87011),r=a(494),l=a(48251),i=a(87467),o=a(95568),s=a(95882),c=a(62627),u=a(57344),d=a(43868),p=a(55729);let h=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,n._)({id:e,city:"",companyName:"",country:"",createdAt:Date.now(),currency:o.A.currency,customerName:"",discount:0,discountCode:"",items:a,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:o.A.vendor.id,vendorName:o.A.vendor.name,weekCount:0,zip:""},y(a))},m=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,l.NS)("vendors/".concat(o.A.vendor.id,"/carts")),a=(0,s.HW)(),n=h(t.id,a,e);return await (0,l.BN)(t.path,n),t},y=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}),v=e=>{(0,c.L)(),(0,u.L)(()=>e?[{collection:"vendors/".concat(o.A.vendor.id,"/carts"),doc:e,storeAs:"cart"}]:[]);let t=(0,i.N4)(e=>{var t;return null==(t=e.firestore.data.cart)?void 0:t.items},r.bN),{cart:a,isFetching:n}=(0,i.N4)(e=>{var t;return{cart:e.firestore.data.cart,isFetching:null==(t=e.firestore.status.requesting.cart)||t}},r.bN);return{sortedItems:(0,p.useMemo)(()=>Object.values(null!=t?t:{}).sort((e,t)=>t.createdAt-e.createdAt),[t]),cart:a,isFetching:n}},D=e=>{var t;let a=(0,n._)({},e),r=(0,d.tL)(e);return a.licensePrice=null!=(t=null==r?void 0:r.price)?t:e.item.priceSpecification.price,a.extendedPrice=Math.round(a.quantity*(a.licensePrice*a.priceMultiple)*100)/100,a},b=e=>{let{weekCount:t,weeklyDiscounts:a,purchaseType:n="Weekly Rental"}=e;if("Flat Rate Rental"===n)return Number(t);if(!d.E9.includes(n))return 1;let r=0,l=Number(t)+Number(0),i=l%1,o=Math.floor(l),s=Math.floor(0),c=e=>+(o>e?1:i);for(let e=s;e<l;e++)0===e?r+=l<1?l:c(e):e<8?r+=(1-a[e-1])*c(e):r+=(1-a[7])*c(e);return r}},32550:e=>
1{e.exports={container:"InputContainer_container__zYsbY",basicSelect:"InputContainer_basicSelect__921Sc",asyncSelect:"InputContainer_asyncSelect__rZJRy",creatableSelect:"InputContainer_creatableSelect__9qBvT",asyncCreatableSelect:"InputContainer_asyncCreatableSelect__rWedE","react-date-picker":"InputContainer_react-date-picker__HZNSg",hasErrors:"InputContainer_hasErrors__GbzIE",error:"InputContainer_error__Of_Uu"}},43868:(e,t,a)=>{"use strict";a.d(t,{E9:()=>i,Xi:()=>r,fh:()=>s,oK:()=>l,tL:()=>c,vy:()=>o});var n=a(11712);let r="https://cdn.propcart.com/shared/no_image_available.jpeg",l={_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:""},i=["Daily Rental","Digital Rental","Flat Rate Rental","Per Use Rental","Print to Size","Weekly Rental"],o=["Asset","Daily Rental","Flat Rate Rental","Per Use Rental","Weekly Rental"],s=["Digital Download","Print to Size","Daily Rental","Digital Sale"],c=e=>{if(e.variantId){var t,a;let r=null==(a=e.item)||null==(t=a.baseVariants)?void 0:t.find(t=>t.id===e.variantId);if(r)return r;(0,n.Q)("Variant not found for ".concat(e.variantId))}return null}},83982:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(6029);a(55729);var r=a(73367),l=a(83684),i=a(39780),o=a(32550),s=a.n(o);let c=e=>{let{children:t,errors:a=[],style:o}=e;return(0,n.jsxs)("div",{className:(0,r.A)(s().container,{[s().hasErrors]:!!a.length}),style:o,children:[t,(null==a?void 0:a.length)?"string"==typeof a?(0,n.jsxs)("p",{className:s().error,role:"alert",children:[(0,n.jsx)(l.y,{icon:i.zp})," ",a]}):a.map(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,n.jsxs)("p",{className:s().error,role:"alert",children:[(0,n.jsx)(l.y,{icon:i.zp})," ",e]},e)}):null]})}},84987:(e,t,a)=>{"use strict";a.d(t,{J:()=>o});var n=a(6029);a(55729);var r=a(73367),l=a(24673),i=a.n(l);let o=e=>{let{isRequired:t,isReadOnly:a,children:l,style:o,hasIcon:s,htmlFor:c,className:u}=e;return(0,n.jsxs)("label",{className:(0,r.A)(i().label,{[i().hasIcon]:s},u),title:t?"Required":void 0,style:o,htmlFor:c,"aria-required":t,"aria-readonly":a,children:[l,a&&(0,n.jsx)("span",{className:i().readonly,children:" (readonly)"})]})}}}]);
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.