1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6033],{56033:(e,t,o)=>{o.r(t),o.d(t,{ModalHelpFormFeature:()=>c});var n=o(37876),a=o(89099),l=o(14232),r=o(97051),i=o(47255),s=o(12286);let c=e=>{let{content:t,settings:o,accessToken:c,culture:d,host:h}=e,[p,u]=(0,l.useState)(!1),m=(0,a.useRouter)(),w=["Contact","contact",encodeURIComponent((0,l.useContext)(i.I).getValue("ContactForm.LinkText",null,"Contact").replace(" ",""))],v=()=>{u(!1),w.includes(location.hash.replace("#",""))&&history.replaceState("","",window.location.pathname+window.location.search)};(0,l.useEffect)(()=>{let e=e=>{let t;t="object"==typeof e?e.newURL?e.newURL.split("#")[1]:location.hash.replace("#",""):e.split("#")[1],w.includes(t)?u(!0):u(!1)};return m.events.on("hashChangeComplete",e),window.addEventListener("hashchange",e),window.addEventListener("load",e),()=>{m.events.off("hashChangeComplete",e),window.removeEventListener("hashchange",e),window.removeEventListener("load",e)}},[]);let C=async e=>{await (0,s.lU)("Umbraco/Api/Forms/Contact",e,c,d,h)&&v()};return(0,n.jsx)(n.Fragment,{children:p&&(0,n.jsx)(r.aF,{title:null==t?void 0:t.properties.title,modalType:"formModal",handleClose:v,children:(0,n.jsx)(r.ei,{onFormSubmit:C,...null==t?void 0:t.properties,categories:null==t?void 0:t.properties.categories.map((e,t)=>({children:e,categoryNumber:t,id:""})),...null==o?void 0:o.properties})})})}}}]); 2//# sourceMappingURL=6033.f03e303124a5ee6d.js.map
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.