PageSourceSearch

https://app.ventoinsurance.com/_next/static/chunks/pages/active-policies-b8e4deb5a58c7f70.js

js ventoinsurance.com collected 2026-09-25 10:52:17 UTC 6,810 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6706],{2880:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/active-policies",function(){return n(25409)}])},25409:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var r=n(85893),i=n(55523),o=n(34051),s=n.n(o),a=n(41664),c=n(67294),l=n(3055),u=n(74215),d=n(11163),h=n(68163);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(l){return void n(l)}a.done?t(c):Promise.resolve(c).then(r,i)}function p(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var v=function(){var e=(0,c.useState)([]),t=e[0],n=e[1],i=(0,c.useState)(!1),o=i[0],f=i[1],v=(0,c.useState)(!1),x=v[0],g=v[1],j=(0,c.useState)([]),y=j[0],w=j[1],_=(0,c.useState)(void 0),b=_[0],E=_[1],N=(0,d.useRouter)(),S=(0,c.useContext)(h.Vo),C=S.userDetails,k=S.setAuthenticatedUserDetails,P=S.token,A=S.hasOeq,O=(0,c.useState)(""),q=O[0],B=O[1];(0,c.useEffect)((function(){var e=localStorage.getItem("token");B(e?"?login=1":"?login=0")}),[]),(0,c.useEffect)((function(){I()}),[]);var I=function(){var e,t=(e=s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l._B)();case 2:t=e.sent,n(t.data.results),f(!0);case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){m(o,r,i,s,a,"next",e)}function a(e){m(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(){return t.apply(this,arguments)}}();(0,c.useEffect)((function(){if(o&&t){var e=[];t.map((function(t){if(t&&t.eventCancel&&t.oeq_mail_sent&&null==t.owq_pdf&&("true"==t.eventCancel.bad_weather_cover||1==t.eventCancel.bad_weather_cover)&&("B"==t.event_cancellation_category||"BB"==t.event_cancellation_category||"C"==t.event_cancellation_category||"E"==t.event_cancellation_category||"F"==t.event_cancellation_category)){e.push(t._id);var n={_id:t._id,name:t.name,status:t.status};w((function(e){return p(e).concat([n])}))}})),k(C._id,P,"",e.length.toString())}}),[o,t]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("section",{className:"main-content-wrap",style:{background:"#E0E9E9"},children:(0,r.jsxs)("div",{className:"customheadingdiv policiespage",style:{margin:"160px auto"},children:[(0,r.jsxs)("h2",{style:{textAlign:"left",color:"#00736E",fontSize:"22px",marginBottom:"25px"},children:["Active Policies and Quotes",A&&(0,r.jsx)("button",{className:"oeq-btn",type:"button",onClick:function(){g(!0)},children:"Please complete your Outdoor Event Questionnaire (OEQ)"})]}),(0,r.jsx)("div",{className:"tablediv",style:{width:"100%"},children:(0,r.jsx)(u.Z,{policies:t,isPoliciesLoaded:o,page:"active"})}),(0,r.jsx)("div",{className:"policies",children:(0,r.jsx)("button",{id:"policies-button",style:{borderRadius:"8px",padding:"20px 10px",background:"#fff",border:"1px solid #d9d9d9",margin:"0 auto",width:"100%",color:"#00736ECC",fontSize:"15px",fontWeight:"700"},children:(0,r.jsx)(a.default,{href:"/past-policies",children:"Past Policies and Expired Quotes"})})})]})}),(0,r.jsxs)("div",{className:"footer-copy-right",children:[(0,r.jsx)("div",{className:"footer-copy-details",children:(0,r.jsxs)("div",{className:"footer-logo",children:[(0,r.jsxs)("picture",{children:[(0,r.jsx)("source",{media:"(min-width:992px)",srcSet:"img/[email protected]"}),(0,r.jsx)("source",{media:"(min-width:768px)",srcSet:"img/vento-2.png"}),(0,r.jsx)("source",{media:"(max-width:767px)",srcSet:"img/[email protected]"}),(0,r.jsx)("img",{alt:"",src:"img/[email protected]"})]}),(0,r.jsx)("span",{children:"Event Insurance by Event People"})]})}),(0,r.jsx)("div",{className:"copy-right-text",children:(0,r.jsx)("div",{className:"copy-inner-text",children:(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"Copyright \xa9 Vento 2024"}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"".concat("https://www.ventoinsurance.com","/cl
1ient-toba").concat(q),target:"_blank",rel:"noreferrer",children:"Client TOBA"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"".concat("https://www.ventoinsurance.com","/sitemap").concat(q),children:"Sitemap"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"".concat("https://www.ventoinsurance.com","/privacy-policy").concat(q),target:"_blank",rel:"noreferrer",children:"Privacy"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"".concat("https://www.ventoinsurance.com","/terms-and-conditions").concat(q),target:"_blank",rel:"noreferrer",children:"Terms of Service"})})]})})})]}),x&&(0,r.jsxs)("section",{className:"cover-wrap",style:{display:x?"unset":"none"},children:[(0,r.jsx)("a",{className:"modal-close-btn",onClick:function(){g(!1)},children:(0,r.jsx)("img",{src:"svg/close.svg",alt:"Close modal"})}),(0,r.jsx)("div",{className:"common-wrap clear text-center",children:(0,r.jsx)("div",{className:"form-modal-wrap",children:(0,r.jsxs)("div",{className:"form-modal-item close-ui",children:[(0,r.jsx)("p",{style:{color:"black"},children:"Please select the Event you are completing your Outdoor Event Questionnaire for:"}),(0,r.jsx)("div",{className:"custom-select questionnaire",children:(0,r.jsxs)("select",{className:"form-control string custom-select-dropdown required",value:b||"",onChange:function(e){E(e.target.value)},children:[(0,r.jsx)("option",{value:"",children:"Select Events"}),y.map((function(e,t){return(0,r.jsx)("option",{value:e._id,"data-status":e.status,children:e.name},t)}))]})}),(0,r.jsx)("div",{className:"close-content-btn questionnaire",style:{marginTop:"30px"},children:(0,r.jsx)("a",{onClick:function(){void 0!==b&&null!==b&&""!==b&&N.push("/outdoor-event-questionnaire/".concat(b))},className:"btn large",children:"Continue to OEQ"})})]})})})]})]})},x=n(99853),g=n(13149),j=n(28395);function y(){var e=(0,d.useRouter)();return(0,c.useEffect)((function(){e.isReady&&(localStorage.getItem("token")||e.push("/login"))}),[e.isReady]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.h,{}),(0,r.jsxs)(j.ZP,{children:[(0,r.jsx)(x.E,{}),(0,r.jsx)(i.H,{}),(0,r.jsx)(v,{})]})]})}}},function(e){e.O(0,[4663,959,6858,8547,5523,4215,9774,2888,179],(function(){return t=2880,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.