PageSourceSearch

https://www.kwsanantonio.com/_next/static/chunks/pages/search/page/[page]-789a7fe940292c6a.js

js kwsanantonio.com collected 2026-10-02 16:34:14 UTC 15,516 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1551],{72261:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search/page/[page]",function(){return n(8729)}])},10544:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var r=n(85893),s=n(25675),i=n.n(s),l=n(41664),a=n.n(l),o=n(28575),u=n(25935);let c=e=>!RegExp("^(?:[a-z]+:)?//","i").test(e);var d=n(90901);let p={replace:e=>{if("tag"===e.type){if("img"===e.name){let{src:t,alt:n,width:s="100px",height:l="100px"}=e.attribs;if(c(t))return(0,r.jsx)(i(),{src:"".concat("https://api.kwsanantonio.com","/").concat(t),width:"".concat(s),height:"".concat(l),alt:n})}if("a"===e.name){let{href:t,class:n}=e.attribs;if(t&&c(t))return(0,r.jsx)(a(),{href:t,passHref:!0,className:n,children:(0,u.du)(e.children,p)});if(t&&(0,d.y)(t))return(0,r.jsx)("a",{href:t,className:n,target:"_blank",rel:"noopener noreferrer",children:(0,u.du)(e.children,p)})}if("input"===e.name)return""===e.attribs.value&&delete e.attribs.value,e}}};var f=e=>{let{text:t,limit:n,size:s,className:i}=e,l=i||"",a=(null==t?void 0:t.processed)||(null==t?void 0:t.value)||t;for(;a&&"object"==typeof a&&!Array.isArray(a)&&void 0!==a.value;)a=a.value;if(Array.isArray(a)){var c,d;a=(null===(c=a[0])||void 0===c?void 0:c.processed)||(null===(d=a[0])||void 0===d?void 0:d.value)||a[0]||""}if("string"!=typeof a&&(a=""),!a)return null;switch(n&&(a=a.replace(/(<([^>]+)>)/gi,"").slice(0,n)),"string"==typeof a&&(a=a.replace(/\r\n/g,"\n").replace(/[ \t]+\n/g,"\n").replace(/\u00a0/g," ").replace(/\s+$/g,"")),s){case"small":l+=" prose-sm";break;case"medium":default:l+=" prose";break;case"large":l+=" prose-lg";break;case"xlarge":l+=" prose-xl";break;case"xxlarge":l+=" prose-2xl"}return(0,r.jsx)("div",{className:(0,o.Z)("max-w-full",l),suppressHydrationWarning:!0,children:(0,u.ZP)(a,p)})}},75887:function(e,t,n){"use strict";var r=n(85893);t.Z=e=>{let{name:t,label:n,type:s,placeholder:i,required:l,register:a,errors:o,hidden:u,value:c}=e;return s=(u=void 0!=u)?"hidden":s,(0,r.jsxs)("div",{style:{display:u?"none":""},className:"field-".concat(t," field-type-").concat(s," field--").concat(t),children:[(0,r.jsxs)("label",{htmlFor:t,className:"mb-2 block font-medium text-gray-700",children:[n,l&&(0,r.jsx)("span",{className:"ml-1 text-red-500 suffix-asterisk",children:"*"})]}),(0,r.jsx)("input",{type:s||"text",name:t,id:t,placeholder:i,className:"block h-10 w-full rounded border border-gray-300 px-2 focus:border-blue-500 focus:ring-blue-500",...a(t,{required:l}),hidden:!!u||void 0,defaultValue:null!=c?c:""}),o&&o[t]&&(0,r.jsx)("p",{className:"mt-1 italic text-red-500",children:"This field is required"})]})}},31539:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(85893),s=n(93967),i=n.n(s),l=n(67294);let a=e=>{let{total:t,current:n,href:r,show:s=9}=e;return l.useMemo(()=>{let e=Math.ceil(s/2),i=n+1,l=i-e+1,a=i+s-e;s=t<s?t:s,a>t&&(l+=t-a,a=t),l<=0&&(a+=1-(l=1));let o=[];return 0!==n&&o.push({type:"previous",display:"Previous",page:n-1,href:r(n-1)}),o.push(...Array.from(Array(s).keys()).map(e=>{let t=e+l-1;return{type:"page",page:t,display:"".concat(t+1),isCurrent:t===n,href:r(t)}})),n!==t-1&&o.push({type:"next",display:"Next",page:n+1,href:r(n+1)}),o},[t,n])};var o=n(41664),u=n.n(o),c=e=>{let{current:t,total:n,href:s,...l}=e,o=a({current:t,total:n,href:s});return(0,r.jsxs)("nav",{role:"navigation","aria-labelledby":"pagination-heading",...l,children:[(0,r.jsx)("h4",{className:"sr-only",children:"Pagination"}),(0,r.jsx)("ul",{className:"flex w-auto items-center justify-center",children:o.map((e,t)=>(0,r.jsxs)("li",{children:["previous"===e.type&&(0,r.jsxs)(u(),{href:e.href,className:"flex h-12 w-12 items-center justify-center hover:text-primary",children:[(0,r.jsx)("span",{className:"sr-only",children:"Previous page"}),(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:(0,r.jsx)("path",{d:"M19 12H5M12 19l-7-7 7-7"})})]}),"page"===e.type&&(0,r.jsx)(u(),{href:e.href,className:i()("mx-1 flex h-8 w-6 items-center justify-center hover:text-primary",e.isCurrent&&"bg-primary text-white"),children:e.display}),"next"===e.type&&(0,r.jsxs)(u(),{href:e.href,className:"flex h-12 w-12 items-center justify-center hover:text-primary",children:[(0,r.jsx)("span",{className:"sr-only",children:"Next page"}),(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:(0,r.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]})]},t))})]})}},90901:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});let r=e=>{try{if(!e||"string"!=typeof e)return!1;if(e.startsWith("/"))return!0;
1if(e.startsWith("mailto:")){let t=e.replace("mailto:","").trim();if(t.includes("http")||t.includes("/")||t.includes("\\"))return!1;return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}if(e.startsWith("tel:")){let t=e.replace("tel:","");return/^[0-9+()\s-]{6,}$/.test(t)}if(/^https?:\/\//.test(e))return/^https?:\/\/[^\s/$.?#].[^\s]*$/i.test(e);return!1}catch(e){return!1}}},31485:function(e,t,n){"use strict";n.d(t,{ej:function(){return i},ss:function(){return s},zy:function(){return r}});let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{city:(null==e?void 0:e.city)||"San Antonio",title:(null==e?void 0:e.title)||(null==e?void 0:e.label)||"KW San Antonio"}},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)return e;let{city:n,title:s}=r(t);return e.replace(/\bKW San Antonio\b/g,s).replace(/\bSan Antonio\b/g,n)},i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Array.isArray(e)?e.map(e=>s(e,t)):e}},50629:function(e,t,n){"use strict";n.d(t,{S:function(){return s},m:function(){return r}});let r=e=>e?e.startsWith("http")||e.startsWith("https")?e:"".concat("https://api.kwsanantonio.com").concat(e):"",s=()=>"https://www.kwsanantonio.com"},3233:function(e,t,n){"use strict";n.d(t,{FX:function(){return l},Ns:function(){return p},g4:function(){return i},iP:function(){return a},lt:function(){return u},rM:function(){return o},vO:function(){return c}});var r=n(67294),s=n(65770);function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:t?2:0,maximumFractionDigits:t?2:0}).format(e)}function l(e){return null!=e&&(e=(e=e.replace(/,(?!\s)/g,", ")).replace(/,+/g,", ")),e}function a(){let[e,t]=(0,r.useState)({width:void 0,height:void 0});return(0,r.useEffect)(()=>{function e(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),e}let o=e=>{let t=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen","twenty"];return e<=20?t[e]:e<=99?"".concat(["twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"][Math.floor(e/10)-2]).concat(e%10!=0?" ".concat(t[e%10]):""):"".concat(e)},u=e=>"".concat(e.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9\-]/g,"")),c=function(e){let t,n,r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=d(e);null!==s&&(t=d(s));try{n=JSON.parse(i),null!==s&&(r=JSON.parse(t))}catch(e){return console.error("Error parsing JSON:",e.message),""}return(null!==s?[...n,...r]:n).filter(e=>""!==e.trim()).join(", ")},d=function(e){let t=(e=e.replace(/^\["|"\]$/g,"")).split(",").map(e=>{let t=e.trim();return'"'.concat(t.replace(/"/g,""),'"')});return"[".concat(t.join(","),"]")},p=(e,t)=>(0,s.Z)(e,{length:t,reserveLastWord:!0})},8729:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return y},default:function(){return g},dynamic:function(){return m}});var r=n(85893),s=n(10544),i=n(19592),l=n(29028),a=n(75887),o=n(31539),u=n(77837),c=n(41664),d=n.n(c),p=n(11163),f=n(67294),h=n(87536),y=!0;let m="force-dynamic";function g(e){var t,n;let{global:c}=e,y=(0,p.useRouter)(),{handleSubmit:m,setValue:g,getValues:v,register:x}=(0,h.cI)(),[b,w]=(0,f.useState)({keywords:"",page:y.query.page||"0"}),{data:k}=(0,u.a)({queryKey:["search",b],queryFn:()=>S(b),keepPreviousData:!0});function j(){let e=v();w({...e,page:"0"}),e.keywords?y.push({pathname:"/search",query:{keywords:e.keywords}}):y.push("/search")}async function S(){return(await fetch("/api/search/site_search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:b.page,params:{fields:{"node--page":"title,body,path,field_site_visibility","node--profile":"title,body,path,field_site_visibility","node--project":"title,body,path,field_site_visibility","node--news_post":"title,body,path,field_site_visibility","node--job_post":"title,body,path,field_site_visibility","node--blog_post":"title,body,path,field_site_visibility","node--gallery_page":"title,body,path,field_site_visibility","node--webform":"title,body,path,field_site_visibility"},filter:{fulltext:b.keywords},page:{limit:10,offset:10*b.page}}})})).json()}function N(){let{keywords:e}=b,t={};e&&(t.keywords=e);let n=new URLSearchParams(t).toString();return n?"?".concat(n):""}return(0,f.useEffect)(()=>{"0"!==y.query.page&&w(e=>({...e,page:y.query.page}))},[y.query.page]),(0,f.useEffect)(()=>{y.query.keywords&&(g("keywords",y.query.keywords),j())},[y.query.keywords]),(0,r.jsx)(i.Z,{meta:{title:"Search"},global:c,children:(0,r.jsxs)("div",{className:"container my-10",children:[(0,r.jsx)("h1",{children:"Site Search"}),(0,r.jsxs)("form",{onSubmit:m(j),className:"mt-5",children:[(0,r.jsx)(a.Z,{name:"keywords",label:"Search",placeholder:"Search",register:x}),(0,r.jsx)(l.Z,{type:"submit",className:"mt-5 ml-auto block",children:"Search"})]}),(null==k?void 0:null===(t=k.items)||void 0===t?void 0:t.length)?(0,r.jsxs)("div",{className:"search-results pt-10",children:[(0,r.jsx)("h2",{children:"Search Results"}),null===(n=k.items)||void 0===n?void 0:n.map(e=>(0,r.jsxs)("div",{className:"my-5",children:[(0,r.jsx)(d(),{href:e.path.alias,children:(0,r.jsx)("h4",{className:"text-xl",children:e.title})}),(null==e?void 0:e.body)&&(0,r.jsx)(s.default,{limit:"200",text:e.body.processed,className:"line-clamp-2"})]},e.id)),k.page?(0,r.jsx)(o.Z,{current:k.page.current,total:k.page.total,href:e=>0===e?"/search".concat(N()):"/search/page/".concat(e).concat(N()),className:"py-8"}):null]}):(0,r.jsx)("p",{className:"text-sm","data-cy":"search-no-results",children:"No results found."})]})})}},48016:function(e,t,n){"use strict";let r,s;n.d(t,{p:function(){return E}});var i,l=n(67294),a=n(68354),o=n(59656),u=n(217),c=n(40947),d=n(1365),p=n(67257),f=n(16116),h=n(23233),y=n(83619);let m=null!=(i=l.startTransition)?i:function(e){e()};var g=n(71237),v=((r=v||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),x=((s=x||{})[s.ToggleDisclosure=0]="ToggleDisclosure",s[s.CloseDisclosure=1]="CloseDisclosure",s[s.SetButtonId=2]="SetButtonId",s[s.SetPanelId=3]="SetPanelId",s[s.LinkPanel=4]="LinkPanel",s[s.Unl
1inkPanel=5]="UnlinkPanel",s);let b={0:e=>({...e,disclosureState:(0,f.E)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},w=(0,l.createContext)(null);function k(e){let t=(0,l.useContext)(w);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,k),t}return t}w.displayName="DisclosureContext";let j=(0,l.createContext)(null);j.displayName="DisclosureAPIContext";let S=(0,l.createContext)(null);function N(e,t){return(0,f.E)(t.type,b,e,t)}S.displayName="DisclosurePanelContext";let P=l.Fragment,_=y.AN.RenderStrategy|y.AN.Static,E=Object.assign((0,y.yV)(function(e,t){let{defaultOpen:n=!1,...r}=e,s=(0,l.useRef)(null),i=(0,c.T)(t,(0,c.h)(e=>{s.current=e},void 0===e.as||e.as===l.Fragment)),o=(0,l.useRef)(null),u=(0,l.useRef)(null),p=(0,l.useReducer)(N,{disclosureState:n?0:1,linkedPanel:!1,buttonRef:u,panelRef:o,buttonId:null,panelId:null}),[{disclosureState:m,buttonId:g},v]=p,x=(0,a.z)(e=>{v({type:1});let t=(0,h.r)(s);if(!t||!g)return;let n=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(g):t.getElementById(g);null==n||n.focus()}),b=(0,l.useMemo)(()=>({close:x}),[x]),k=(0,l.useMemo)(()=>({open:0===m,close:x}),[m,x]);return l.createElement(w.Provider,{value:p},l.createElement(j.Provider,{value:b},l.createElement(d.up,{value:(0,f.E)(m,{0:d.ZM.Open,1:d.ZM.Closed})},(0,y.sY)({ourProps:{ref:i},theirProps:r,slot:k,defaultTag:P,name:"Disclosure"}))))}),{Button:(0,y.yV)(function(e,t){let n=(0,o.M)(),{id:r="headlessui-disclosure-button-".concat(n),...s}=e,[i,d]=k("Disclosure.Button"),f=(0,l.useContext)(S),h=null!==f&&f===i.panelId,m=(0,l.useRef)(null),v=(0,c.T)(m,t,h?null:i.buttonRef),x=(0,y.Y2)();(0,l.useEffect)(()=>{if(!h)return d({type:2,buttonId:r}),()=>{d({type:2,buttonId:null})}},[r,d,h]);let b=(0,a.z)(e=>{var t;if(h){if(1===i.disclosureState)return;switch(e.key){case g.R.Space:case g.R.Enter:e.preventDefault(),e.stopPropagation(),d({type:0}),null==(t=i.buttonRef.current)||t.focus()}}else switch(e.key){case g.R.Space:case g.R.Enter:e.preventDefault(),e.stopPropagation(),d({type:0})}}),w=(0,a.z)(e=>{e.key===g.R.Space&&e.preventDefault()}),j=(0,a.z)(t=>{var n;(0,p.P)(t.currentTarget)||e.disabled||(h?(d({type:0}),null==(n=i.buttonRef.current)||n.focus()):d({type:0}))}),N=(0,l.useMemo)(()=>({open:0===i.disclosureState}),[i]),P=(0,u.f)(e,m),_=h?{ref:v,type:P,onKeyDown:b,onClick:j}:{ref:v,id:r,type:P,"aria-expanded":0===i.disclosureState,"aria-controls":i.linkedPanel?i.panelId:void 0,onKeyDown:b,onKeyUp:w,onClick:j};return(0,y.sY)({mergeRefs:x,ourProps:_,theirProps:s,slot:N,defaultTag:"button",name:"Disclosure.Button"})}),Panel:(0,y.yV)(function(e,t){let n=(0,o.M)(),{id:r="headlessui-disclosure-panel-".concat(n),...s}=e,[i,a]=k("Disclosure.Panel"),{close:u}=function e(t){let n=(0,l.useContext)(j);if(null===n){let n=Error("<".concat(t," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return n}("Disclosure.Panel"),p=(0,y.Y2)(),f=(0,c.T)(t,i.panelRef,e=>{m(()=>a({type:e?4:5}))});(0,l.useEffect)(()=>(a({type:3,panelId:r}),()=>{a({type:3,panelId:null})}),[r,a]);let h=(0,d.oJ)(),g=null!==h?(h&d.ZM.Open)===d.ZM.Open:0===i.disclosureState,v=(0,l.useMemo)(()=>({open:0===i.disclosureState,close:u}),[i,u]);return l.createElement(S.Provider,{value:i.panelId},(0,y.sY)({mergeRefs:p,ourProps:{ref:f,id:r},theirProps:s,slot:v,defaultTag:"div",features:_,visible:g,name:"Disclosure.Panel"}))})})},217:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var r=n(67294),s=n(57110);function i(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function l(e,t){let[n,l]=(0,r.useState)(()=>i(e));return(0,s.e)(()=>{l(i(e))},[e.type,e.as]),(0,s.e)(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&l("button")},[n,t]),n}}},function(e){e.O(0,[5770,4057,7536,5935,1423,9592,2888,9774,179],function(){return e(e.s=72261)}),_N_E=e.O()}]);

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.