https://www.visitnc.com/modules/custom/visitnc_search/assets/dist/740.90c2552de4c83e08b50e.bundle.js
1"use strict";(self.webpackChunkcategory_listing=self.webpackChunkcategory_listing||[]).push([[740],{5740:(e,n,t)=>{t.r(n),t.d(n,{default:()=>B});var r=t(6540),a=t(8779),i=t(7923),o=t(5660),l=t(3434),s=t(2638),c=t(4414),u=t(5072),d=t.n(u),p=t(7825),g=t.n(p),f=t(7659),_=t.n(f),m=t(5056),v=t.n(m),h=t(540),y=t.n(h),b=t(1113),w=t.n(b),N=t(3478),x={};x.styleTagTransform=w(),x.setAttributes=v(),x.insert=_().bind(null,"head"),x.domAPI=g(),x.insertStyleElement=y(),d()(N.A,x),N.A&&N.A.locals&&N.A.locals;var A,O,E=t(8626),T=t(9923);function R(){return R=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},R.apply(null,arguments)}function k(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var D=(0,c.p)("WV556PZ8E9","137edfd3917162d3d821ec30ac88c082"),P=(0,E.d)(),S=["blog","event","list","itinerary","home_page","landing_page","things_to_do","point_of_interest","sub_region_city_detail_page","region_detail_page","things_to_do_psychographic","local_travel_bureaus","poi_overview","category_listing_blog_overview","category_listing_events_overview","traveler_quiz_page","webform"],j=null!==(A=window)&&void 0!==A&&null!==(A=A.drupalSettings)&&void 0!==A&&A.node_id?null===(O=window)||void 0===O||null===(O=O.drupalSettings)||void 0===O?void 0:O.node_id:null,z=function(e){return Array.isArray(e)?e[0]:e||null},C=function(e){return window.innerWidth<=767?z(null==e?void 0:e.mobile_image):z(null==e?void 0:e.thumbnail_image)},L=function(e){var n,t=e.hit,a=e.searchType;return r.createElement("a",{href:t.url,className:"card-link","aria-label":t.title},r.createElement("div",{className:"result-card"},r.createElement("div",{className:"pos-relative"},r.createElement("img",{src:C(t)?C(t):T.Ab,alt:t.title,className:"result-image"})),r.createElement("div",{className:"result-content"},r.createElement("p",{className:"result-label"},"home_page"===(n=t.type)?"Home Page":"landing_page"===n?"Landing Page":"things_to_do"===n?"Things to Do":"point_of_interest"===n&&"industry"===a?"Local Information Page":"point_of_interest"===n?"Point of Interest":"photo_bounty"===n?"Photo Bounty":"sub_region_city_detail_page"===n?"Subregi
1on Spotlight":"media_news_releases"===n?"Media News Releases":"region_detail_page"===n?"Region Detail Page":"things_to_do_psychographic"===n?"Things To Do Psychographic":"local_travel_bureaus"===n?"Local Travel Bureaus":"poi_overview"===n?"POI Overview":"media_news_releases_overview"===n?"Media News Releases Overview":"category_listing_blog_overview"===n?"Category Listing Blog Overview":"category_listing_events_overview"===n?"Category Listing Events Overview":"traveler_quiz_page"===n?"Traveler Quiz Page":n),r.createElement("h2",{className:"result-title"},t.title),r.createElement("p",{className:"result-description",dangerouslySetInnerHTML:{__html:t.clean_body}}),r.createElement("span",{className:"result-link"},"â"))))},I=function(e){var n=e.scrollTargetRef,t=(0,a.W)(),i=t.currentRefinement,o=t.nbPages,l=t.refine;return o<=1?null:r.createElement("div",{className:"custom-pagination"},r.createElement(s.A,{current:i+1,total:10*o,pageSize:10,onChange:function(e){l(e-1),setTimeout((function(){if(null!=n&&n.current){var e=n.current.getBoundingClientRect().top+window.pageYOffset-350;window.scrollTo({top:e,behavior:"smooth"})}}),0)},showSizeChanger:!1}))};const B=function(){var e,n,t,a=(n=(0,r.useState)(""),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,a,i,o,l=[],s=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(r=i.call(t)).done)&&(l.push(r.value),l.length!==n);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(n,t)||function(e,n){if(e){if("string"==typeof e)return k(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?k(e,n):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],c=a[1],u=(0,r.useRef)(null),d=(e=window.location.pathname).includes("/media")?"media":e.includes("/industry")?"industry":"consumer",p=function(e){var n="";switch(e){case"media":n="(".concat(["media_news_releases","media_news_releases_overview","webform","landing_page"].map((function(e){return'type:"'.concat(e,'"')})).join(" OR "),')\n AND (landing_page_type:"media" OR NOT type:"landing_page")\n AND status:true\n AND NOT field_hide_from_search:true\n AND NOT nid:').concat(j);break;case"industry":n="(".concat(["landing_page","local_travel_bureaus","point_of_interest","webform"].map((function(e){return'type:"'.concat(e,'"')})).join(" OR "),')\n AND (landing_page_type:"industry" OR NOT type:"landing_page")\n AND (poi_page_type:"industry" OR NOT type:"point_of_interest")\n AND status:true\n AND NOT field_hide_from_search:true\n AND NOT nid:').concat(j);break;default:n="(".concat(S.map((function(e){return'type:"'.concat(e,'"')})).join(" OR "),')\n AND (landing_page_type:"consumer" OR NOT type:"landing_page")\n AND (poi_page_type:"consumer" OR NOT type:"point_of_interest")\n AND status:true\n AND NOT field_hide_from_search:true\n AND NOT nid:').concat(j)}return n.replace(/\s+/g," ").trim()}(d),g=function(){var e=new URLSearchParams(window.location.search);c(e.get("search")||"")};return(0,r.useEffect)((function(){return g(),window.addEventListener("popstate",g),function(){return window.removeEventListener("popstate",g)}}),[]),r.createElement("div",{className:"search-page",ref:u},r.createElement(i.G,{searchClient:D,indexName:"search"},r.createElement("section",{className:"results-section",ref:u},s&&r.createElement("h2",null,'"'.concat(s,'" Keyword Results')),r.createElement(o.Z,{hitsPerPage:10,query:s,userToken:P,filters:p}),r.createElement(l.f,{hitComponent:function(e){return r.createElement(L,R({},e,{searchType:d}))}}
1),r.createElement(I,{scrollTargetRef:u}))))}},3478:(e,n,t)=>{t.d(n,{A:()=>l});var r=t(1601),a=t.n(r),i=t(6314),o=t.n(i)()(a());o.push([e.id,"\n.card-link {\n text-decoration: none; /* â
Remove underline */\n color: inherit; /* â
Keep default text color */\n}\n\n.card-link:hover {\n text-decoration: none; /* â
Ensure it doesn't appear on hover */\n}\n\n .result-card {\n display: flex;\n align-items: center;\n background-color: #f9f9f9;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);\n }\n \n .result-image {\n width: 200px;\n height: 150px;\n object-fit: cover;\n border-radius: 8px;\n margin-right: 20px;\n }\n \n .result-content {\n flex: 1;\n }\n \n .result-label {\n font-size: 14px;\n color: #007a7c;\n font-weight: bold;\n text-transform: uppercase;\n }\n \n .result-title {\n font-size: 18px;\n font-weight: bold;\n color: #003f47;\n }\n \n .event-date {\n font-size: 14px;\n font-weight: bold;\n margin-top: 5px;\n }\n \n .result-description {\n font-size: 14px;\n color: #444;\n margin-top: 5px;\n }\n \n .result-link {\n font-size: 20px;\n color: #007a7c;\n text-decoration: none;\n margin-top: 10px;\n display: inline-block;\n }\n \n /* pagination */\n\n .custom-pagination {\n display: flex;\n justify-content: center;
1\n align-items: center;\n /* gap: 8px; */\n margin-top: 20px;\n }\n \n .pagination-btn {\n padding: 10px 15px;\n font-size: 10px;\n font-weight: bold;\n cursor: pointer;\n background: #fff;\n border: 2px solid #ccc;\n border-radius: 5px;\n transition: all 0.2s ease-in-out;\n }\n \n .pagination-btn.active {\n background: #007bff;\n color: white;\n border-color: #007bff;\n }\n \n .pagination-btn:hover:not(:disabled) {\n background: #f0f0f0;\n }\n \n .pagination-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n ",""]);const l=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.