import{a as f,b as g}from"./chunk-RTYCBRUK.js";import{a as h}from"./chunk-JF4EW7UO.js";import{n as c,o as p,q as n}from"./chunk-YCSNAPEM.js";import{ja as m,l as o}from"./chunk-Q6VUSNGF.js";import{a as u,b as d,f as D}from"./chunk-NZN5XTIE.js";var s=D(h());var l={type:"graafmelding",activities:[],startDate:(0,s.default)().add(3,"days").toDate().toString(),endDate:(0,s.default)().add(10,"days").toDate().toString(),executionDate:(0,s.default)().toDate().toString(),geometries:[],informationPolygonGeometries:[],addedOn:new Date().toString(),closestAddresses:[],selectHouseConnections:!1,selectedHouseConnections:[],notitie:"",reference:"",projectId:null},r,t=(r=class{static type(e){return e.type}static activities(e){return e.activities}static reference(e){return e.reference}static notitie(e){return e.notitie}static startDate(e){return e.startDate}static endDate(e){return e.endDate}static executionDate(e){return e.executionDate}static geometries(e){return e.geometries}static informationPolygonGeometries(e){return e.informationPolygonGeometries}static closestAddresses(e){return e.closestAddresses}static selectHouseConnections(e){return e.selectHouseConnections}static selectedHouseConnections(e){return e.selectedHouseConnections}static projectId(e){return e.projectId}static shouldReset(e){return(0,s.default)(e.addedOn).diff((0,s.default)(),"hours")>12}static orderItems(e){return e.geometries.map((i,a)=>({type:e.type,activities:e.activities,startDate:e.startDate,endDate:e.endDate,geometry:i,informationPolygonGeometry:e.informationPolygonGeometries.length>0?e.informationPolygonGeometries[0]:null,locatieWerkzaamheden:e.closestAddresses[a],notitie:e.notitie,reference:e.reference,huisaansluitingAdressen:e.selectedHouseConnections}))}constructor(){}setShoppingCartState(e,i){e.patchState(i.payload)}resetShop(e,i){if(i.payload.remember_klic_order_details){let a=e.getState().activities,S=e.getState().reference,y=e.getState().notitie;e.setState(d(u({},l),{activities:a,reference:S,notitie:y}))}else e.setState(l)}},r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=m({token:r,factory:r.\u0275fac}),r);o([c(f)],t.prototype,"setShoppingCartState",null);o([c(g)],t.prototype,"resetShop",null);o([n([t])],t,"type",null);o([n([t])],t,"activities",null);o([n([t])],t,"reference",null);o([n([t])],t,"notitie",null);o([n([t])],t,"startDate",null);o([n([t])],t,"endDate",null);o([n([t])],t,"executionDate",null);o([n([t])],t,"geometries",null);o([n([t])],t,"informationPolygonGeometries",null);o([n([t])],t,"closestAddresses",null);o([n([t])],t,"selectHouseConnections",null);o([n([t])],t,"selectedHouseConnections",null);o([n([t])],t,"projectId",null);o([n([t])],t,"shouldReset",null);o([n([t])],t,"orderItems",null);t=o([p({name:"shop_v3",defaults:l})],t);export{t as a};
//# sourceMappingURL=chunk-6SXLNJHS.js.map