1(this["webpackJsonppriority.client"]=this["webpackJsonppriority.client"]||[]).push([[36],{1069:function(e,t,n){"use strict";n.r(t);var a=n(435),r=n.n(a),c=n(436),i=n(0),o=n.n(i),s=n(426);new(n(846).a);t.default=function(e){var t=e.location.search.split("?id=").pop();return Object(i.useEffect)((function(){t&&Object(c.a)(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s.b.deleteData("/reservations?id=".concat(t));case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})))()}),[t]),o.a.createElement("div",{className:"vh-100 page-wrap d-flex flex-row align-items-center"},o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"row justify-content-center"},o.a.createElement("div",{className:"col-md-12 text-center"},o.a.createElement("table",{border:0,cellPadding:0,cellSpacing:0,style:{margin:"0 auto",fontFamily:"Arial, Helvetica, sans-serif",fontSize:"15px",lineHeight:"23px"}},o.a.createElement("tbody",null,o.a.createElement("tr",null,o.a.createElement("td",{style:{padding:"10px 0 30px 0"}},o.a.createElement("table",{align:"center",border:0,cellPadding:0,cellSpacing:0,className:"reservation-table",width:600,style:{border:"1px solid #cccccc",borderCollapse:"collapse"}},o.a.createElement("tbody",null,o.a.createElement("tr",null,o.a.createElement("td",{align:"left",style:{backgroundColor:"#434242",padding:"18px 24px"}},o.a.createElement("img",{src:"https://api.prenotabergamo.it/mail/logo.png",alt:"prenotabergamo.it",width:181,style:{display:"block"}}))),o.a.createElement("tr",null,o.a.createElement("td",{align:"left",style:{color:"#000",fontSize:"15px",padding:"24px"}},o.a.createElement("p",{style:{margin:"0 0 15px"}},"Caro Cittadino,"),o.a.createElement("p",{style:{margin:"0 0 15px"}},"Ti confermiamo la cancellazione della prenotazione"))),o.a.createElement("tr",null,o.a.createElement("td",{align:"left",style:{color:"#000",fontSize:"15px",padding:"24px"}},o.a.createElement("ul",{style:{margin:0,padding:0,listStyle:"none"}},o.a.createElement("li",{style:{display:"inline",margin:"0 15px 0 0"}},o.a.createElement("a",{href:"https://prenotabergamo.it/terms",style:{color:"#888",textDecoration:"none"}},"Termini e condizioni")),o.a.createElement("li",{style:{display:"inline"}},o.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://prenotabergamo.it/municipal-policy",style:{color:"#888",textDecoration:"none"}},"Privacy")))))))))))))))}},426:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(435),r=n.n(a),c=n(436),i=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_API_URL:"https://api-staging.prenotabergamo.it/api/v1"}).REACT_APP_STAGING,o="https://api.prenotabergamo.it/api/v1";i||(o="https://api.prenotabergamo.it/api/v1");var s={postData:function(){var e=Object(c.a)(r.a.mark((function e(){var t,n,a,c,i,s,l=arguments;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]?l[0]:"",n=l.length>1&&void 0!==l[1]?l[1]:{},a="".concat(o).concat(t),(c=new Headers).append("Content-Type","application/json"),e.prev=5,e.next=8,fetch(a,{method:"POST",cache:"no-cache",headers:c,body:JSON.stringify(n)});case 8:return i=e.sent,e.next=11,i.json();case 11:return s=e.sent,e.abrupt("return",s);case 15:throw e.prev=15,e.t0=e.catch(5),e.t0;case 18:case"end":return e.stop()}}),e,null,[[5,15]])})));return function(){return e.apply(this,arguments)}}(),updateData:function(){var e=Object(c.a)(r.a.mark((function e(){var t,n,a,c,i,s=arguments;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:"",n=s.length>1&&void 0!==s[1]?s[1]:{},a="".concat(o).concat(t),(c=new Headers).append("Content-Type","application/json"),e.prev=5,e.next=8,fetch(a,{method:"PUT",cache:"no-cache",headers:c,body:JSON.stringify(n)});case 8:return i=e.sent,console.log(i),e.next=12,i.json();case 12:return e.abrupt("return",e.sent);case 15:throw e.prev=15,e.t0=e.catch(5),e.t0;case 18:case"end":return e.stop()}}),e,null,[[5,15]])})));return function(){return e.apply(this,arguments)}}(),getData:function(){var e=Object(c.a)(r.a.mark((function e(){var t,n,a,c,i,s,l=arguments;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]?l[0]:"",n=l.length>1&&void 0!==l[1]&&l[1],a=l.length>2&&void 0!==l[2]?l[2]:{},c="".concat(o).concat(t),n&&(c=c.replace("https","http")),(i=new Headers).append("Content-Type","application/json"),a.headers&&Object.keys(a.headers).forEac
1h((function(e){i.append(e,a.headers[e])})),e.prev=8,e.next=11,fetch(c,{method:"GET",cache:"no-cache",headers:i});case 11:return s=e.sent,e.next=14,s.json();case 14:return e.abrupt("return",e.sent);case 17:throw e.prev=17,e.t0=e.catch(8),e.t0;case 20:case"end":return e.stop()}}),e,null,[[8,17]])})));return function(){return e.apply(this,arguments)}}(),deleteData:function(){var e=Object(c.a)(r.a.mark((function e(){var t,n,a,c,i=arguments;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:"",n="".concat(o).concat(t),(a=new Headers).append("Content-Type","application/json"),e.prev=4,e.next=7,fetch(n,{method:"DELETE",cache:"no-cache",headers:a});case 7:return c=e.sent,e.next=10,c.json();case 10:return e.abrupt("return",e.sent);case 13:throw e.prev=13,e.t0=e.catch(4),e.t0;case 16:case"end":return e.stop()}}),e,null,[[4,13]])})));return function(){return e.apply(this,arguments)}}()};t.b=s},435:function(e,t,n){e.exports=n(210)},436:function(e,t,n){"use strict";function a(e,t,n,a,r,c,i){try{var o=e[c](i),s=o.value}catch(l){return void n(l)}o.done?t(s):Promise.resolve(s).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,c){var i=e.apply(t,n);function o(e){a(i,r,c,o,s,"next",e)}function s(e){a(i,r,c,o,s,"throw",e)}o(void 0)}))}}n.d(t,"a",(function(){return r}))},460:function(e,t,n){"use strict";var a=n(134),r=n(613),c=n.n(r),i=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_API_URL:"https://api-staging.prenotabergamo.it/api/v1"}).REACT_APP_STAGING,o="https://api.prenotabergamo.it/api/v1";i||(o="https://api.prenotabergamo.it/api/v1");t.a=function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(a.a)(this,e),this.list=function(e){return t.buildQuery("get",e)},this.get=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.buildQuery("get",n,e)},this.create=function(e){return t.buildQuery("post",e)},this.put=function(e,n){return t.buildQuery("put",n,e)},this.destroy=function(e){return t.buildQuery("delete",{},e)},this.remove=function(e){return t.buildQuery("delete",{data:{id:e}},"")},this.buildQuery=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;return c()({url:t.getFullUrl(a),method:e,data:n.data,params:n.params,headers:{"Content-Type":"application/json"}})},this.getFullUrl=function(e){return"".concat(t.url).concat(e?"/".concat(e):"")},this.url="".concat(o,"/").concat(n)}},846:function(e,t,n){"use strict";var a=n(134),r=n(475),c=n(474),i=function(e){Object(r.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.call(this,"reservations")).getServices=function(t){return e.get("services",t)},e.getTotems=function(t){return e.get("totem",t)},e.getOffices=function(t){return e.get("offices",{params:t})},e.getAvailableDays=function(t){return e.get("available_days",{params:t})},e.approve=function(t){return e.get("approve",t)},e.confirmation=function(t){return e.get("confirmation",t)},e.disapprove=function(t){return e.get("disapprove",t)},e.deleteReservation=function(t){return e.buildQuery("delete",{params:{id:t}})},e}return n}(n(460).a);t.a=i}}]);
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.