1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8868],{4492:(e,t,r)=>{r.d(t,{M:()=>s});var a=r(2115);let s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3,[t,r]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{let t=setTimeout(()=>{r(!1)},e);return()=>clearTimeout(t)},[e]),t}},4742:(e,t,r)=>{r.d(t,{y:()=>n,w:()=>s});var a=r(2115);let s=e=>{let{totalItems:t,autoPlayInterval:r=5e3,minSwipeDistance:s=50}=e,[n,i]=(0,a.useState)(0),[l,o]=(0,a.useState)(!0),[c,u]=(0,a.useState)(null),[d,h]=(0,a.useState)(null),p=(0,a.useRef)(void 0),g=(0,a.useRef)(!1),m=(0,a.useCallback)(()=>{i(e=>(g.current,(e+1)%t))},[t]),x=(0,a.useCallback)(()=>{i(e=>(g.current,(e-1+t)%t))},[t]),f=(0,a.useCallback)(e=>{i(e)},[]);(0,a.useEffect)(()=>{let e=()=>{g.current=window.innerWidth<1024};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);let w=(0,a.useCallback)(e=>{g.current&&(h(null),u(e.targetTouches[0].clientX))},[]),v=(0,a.useCallback)(e=>{g.current&&h(e.targetTouches[0].clientX)},[]),b=(0,a.useCallback)(()=>{if(!g.current||!c||!d)return;let e=c-d,t=e>s,r=e<-s;t&&m(),r&&x()},[c,d,s,m,x]);return(0,a.useEffect)(()=>(l&&g.current&&(p.current=setInterval(()=>{m()},r)),()=>{p.current&&clearInterval(p.current)}),[l,r,m]),{currentIndex:n,next:m,prev:x,goTo:f,onTouchStart:w,onTouchMove:v,onTouchEnd:b,handleMouseEnter:(0,a.useCallback)(()=>{g.current&&o(!1)},[]),handleMouseLeave:(0,a.useCallback)(()=>{g.current&&o(!0)},[])}},n=e=>{let{totalItems:t,autoPlayInterval:r=4e3,minSwipeDistance:s=50}=e,[n,i]=(0,a.useState)(0),[l,o]=(0,a.useState)(!0),[c,u]=(0,a.useState)(null),[d,h]=(0,a.useState)(null),p=(0,a.useRef)(void 0),g=(0,a.useRef)(!1),m=(0,a.useCallback)(()=>{i(e=>(g.current,(e+1)%t))},[t]),x=(0,a.useCallback)(()=>{i(e=>(g.current,(e-1+t)%t))},[t]),f=(0,a.useCallback)(e=>{i(e)},[]);(0,a.useEffect)(()=>{let e=()=>{g.current=window.innerWidth<1280};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);let w=(0,a.useCallback)(e=>{g.current&&(h(null),u(e.targetTouches[0].clientX))},[]),v=(0,a.useCallback)(e=>{g.current&&h(e.targetTouches[0].clientX)},[]),b=(0,a.useCallback)(()=>{if(!g.current||!c||!d)return;let e=c-d,t=e>s,r=e<-s;t&&m(),r&&x()},[c,d,s,m,x]);return(0,a.useEffect)(()=>(l&&g.current&&(p.current=setInterval(()=>{m()},r)),()=>{p.current&&clearInterval(p.current)}),[l,r,m]),{currentIndex:n,next:m,prev:x,goTo:f,onTouchStart:w,onTouchMove:v,onTouchEnd:b,handleMouseEnter:(0,a.useCallback)(()=>{g.current&&o(!1)},[]),handleMouseLeave:(0,a.useCallback)(()=>{g.current&&o(!0)},[])}}},7538:(e,t,r)=>{r.d(t,{E5:()=>l,OJ:()=>n,jg:()=>o,js:()=>s,yS:()=>i});let a="https://back.advancedpsychiatryassociates.com/api/v1";async function s(){try{let e=`${a}/highlighted-features/`,t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},next:{revalidate:60}});if(!t.ok){let e=await t.text();throw Error(`HTTP error! status: ${t.status}, response: ${e.substring(0,200)}`)}let r=t.headers.get("content-type");if(!r||!r.includes("application/json")){let e=await t.text();throw Error(`Expected JSON but received ${r}. Response: ${e.substring(0,200)}`)}let s=await t.json();if(s.success&&s.data)return s.data;throw Error("Invalid response format from highlighted features API")}catch{return[]}}async function n(e){try{let t=e?`?type=${encodeURIComponent(e)}`:"",r=`${a}/insurance-partners${t}`,s=await fetch(r,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},next:{revalidate:60}});if(!s.ok){let e=await s.text();throw Error(`HTTP error! status: ${s.status}, response: ${e.substring(0,200)}`)}let n=s.headers.get("content-type");if(!n||!n.includes("application/json")){let e=await s.text();throw Error(`Expected JSON but received ${n}. Response: ${e.substring(0,200)}`)}let i=await s.json();if(i.success&&i.data){if(!e)return i.data;return i.data.filter(t=>t.type===e||"both"===t.type)}throw Error("Invalid response format from insurance partners API")}catch{return[]}}async function i(){try{let e=`${a}/workers-companies`,t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},next:{revalidate:60}});if(!t.ok){let e=await t.text();throw Error(`HTTP error! status: ${t.status}, response: ${e.substring(0,200)}`)}let r=t.headers.get("content-type");if(!r||!r.includes("application/json")){let e=await t.text();throw Error(`Expected JSON but received ${r}. Response: ${e.substring(0,200)}`)}let s=await t.json();if(s.success&&s.data)return s.data;throw Error("Invalid response format from workers comp companies API")}catch{return[]}}async function l(){try{let e=`${a}/our-partners`,t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},next:{revalidate:60}});if(!t.ok){let e=await t.text();throw Error(`HTTP error! status: ${t.status}, response: ${e.substring(0,200)}`)}let r=t.headers.get("content-type");if(!r||!r.includes("application/json")){let e=await t.text();throw Error(`Expected JSON but received ${r}. Response: ${e.substring(0,200)}`)}let s=await t.json();if(s.success&&s.data)return s.data;throw Error("Invalid response format from our partners API")}catch{return[]}}async function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;try{let r=`${a}/services/list?page=${e}&per_page=${t}`,s=await fetch(r,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},next:{revalidate:60}});if(!s.ok){let e=await s.text();throw Error(`HTTP error! status: ${s.status}, response: ${e.substring(0,200)}`)}let n=s.headers.get("content-type");if(!n||!n.includes("application/json")){let e=await s.text();throw Error(`Expected JSON but received ${n}. Response: ${e.substring(0,200)}`)}let i=await s.json();if(i.success&&i.data)return{services:i.data.services,pagination:i.data.pagination};throw Error("Invalid response format from services API")}catch{return{services:[],pagination:{current_page:1,last_page:1,per_page:8,total:0,from:0,to:0,has_more_pages:!1}}}}},8049:(e,t,r)=>{r.d(t,{A$:()=>c,Xo:()=>l,rK:()=>i,yT:()=>n,zr:()=>o});var a=r(7323),s=r(7538);function n(){return(0,a.pw)({queryKey:["highlighted-features"],queryFn:s.js,staleTime:6e4,gcTime:12e4,retry:2})}function i(e){return(0,a.pw)({queryKey:["insurance-partners",e??"all"],queryFn:()=>(0,s.OJ)(e),staleTime:6e4,gcTime:12e4,retry:2})}function l(){return(0,a.pw)({queryKey:["workers-comp-companies"],queryFn:s.yS,staleTime:6e4,gcTime:12e4,retry:2})}function o(){return(0,a.pw)({queryKey:["our-partners"],queryFn:s.E5,staleTime:6e4,gcTime:12e4,retry:2})}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return(0,a.pw)({queryKey:["services",e,t],queryFn:()=>(0,s.jg)(e,t),staleTime:6e4,gcTime:12e4,retry:2})}},8868:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var a=r(5155),s=r(5239),n=r(5846),i=r(4492),l=r(4742),o=r(8049);let c=e=>{let{feature:t}=e;
1return(0,a.jsxs)("div",{className:"relative rounded-[15px] md:rounded-[20px] lg:rounded-[20px] overflow-hidden shadow-lg hover:shadow-xl transition-shadow duration-300 group h-64 md:h-72 lg:h-110 text-center min-w-full lg:min-w-0",children:[(0,a.jsx)(s.default,{src:t.image,alt:t.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-300"}),(0,a.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/50 via-black/30 to-transparent backdrop-blur-sm p-4 md:p-5 lg:p-4 lg:py-7",children:[(0,a.jsx)("h3",{className:"text-white text-lg md:text-xl lg:text-3xl mb-1 leading-tight font-marcellus",children:t.title}),(0,a.jsx)("p",{className:"text-white text-sm md:text-base leading-9",children:t.subtitle})]})]})},u={sectionTag:"HIGHLIGHTED FEATURES",title:"Why We're Different, And Why That Matters to You"},d=[{id:1,image:"/images/highlighted-1.svg",title:"In Person and tele Health",subtitle:"(Offline and online)"},{id:2,image:"/images/highlighted-2.svg",title:"Insurance",subtitle:"(We covered all insurances companies)"},{id:3,image:"/images/highlighted-3.svg",title:"Within 2 Days",subtitle:"(Get your appointment within one day)"},{id:4,image:"/images/highlighted-4.svg",title:"Online sessions",subtitle:"(Online and the medicine delivered to home.)"}];function h(){let{data:e,isLoading:t}=(0,o.yT)(),r=e&&e.length>0?e.map(e=>({id:e.id,image:e.image,title:e.name,subtitle:`(${e.description})`})):d,{sectionTag:h,title:p}=u,g=(0,i.M)(1800),{currentIndex:m,next:x,prev:f,goTo:w,onTouchStart:v,onTouchMove:b,onTouchEnd:y,handleMouseEnter:j,handleMouseLeave:E}=(0,l.y)({totalItems:r.length});return(0,a.jsxs)("section",{children:[(0,a.jsx)("div",{className:"main-container pt-12 md:pt-16",children:(0,a.jsxs)("div",{className:"mb-8 md:mb-12 xl:mb-21 flex flex-col xl:flex-row xl:items-center gap-6 xl:gap-10",children:[(0,a.jsxs)("div",{className:"flex-1 xl:max-w-3xl",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 mb-4 md:mb-6",children:[(0,a.jsx)("div",{className:"w-2 h-2 bg-secondary rounded-full"}),(0,a.jsx)("span",{className:"text-[#4A7A0A] text-sm md:text-base lg:text-lg tracking-[3px] lg:tracking-[5.19px] uppercase",children:h})]}),(0,a.jsx)("h2",{className:"text-2xl md:text-3xl lg:text-4xl xl:text-4xl 2xl:text-6xl font-marcellus text-primary-gray leading-tight xl:leading-tight",children:p})]}),(0,a.jsxs)("div",{className:"hidden xl:flex xl:ml-auto items-center gap-4",children:[(0,a.jsx)("button",{onClick:f,className:"w-12 h-12 md:w-15 md:h-15 flex items-center justify-center bg-[#7CB7200D] rounded-full hover:shadow-md transition-all duration-200 cursor-pointer","aria-label":"View previous highlighted features",children:(0,a.jsx)(s.default,{src:"/icons/green-arrow-left.svg",alt:"Previous",width:20,height:20,className:"w-4 h-4"})}),(0,a.jsx)("button",{onClick:x,className:"w-12 h-12 md:w-15 md:h-15 flex items-center justify-center bg-[#7CB7200D] rounded-full hover:shadow-md transition-all duration-200 cursor-pointer","aria-label":"View next highlighted features",children:(0,a.jsx)(s.default,{src:"/icons/green-arrow-right.svg",alt:"Next",width:20,height:20,className:"w-4 h-4"})})]})]})}),(0,a.jsx)("div",{className:"main-container pb-12 md:pb-16 lg:pb-27.5",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("div",{className:"xl:hidden flex justify-between items-center absolute inset-y-0 left-0 right-0 pointer-events-none z-10",children:[(0,a.jsx)("div",{className:"flex items-center pointer-events-auto -ml-2",children:(0,a.jsx)("button",{onClick:f,className:"w-10 h-10 flex items-center justify-center bg-white/20 backdrop-blur-sm rounded-full hover:bg-white/30 transition-all duration-200 cursor-pointer border border-white/30","aria-label":"View previous highlighted features",children:(0,a.jsx)(s.default,{src:"/icons/green-arrow-left.svg",alt:"Previous",width:16,height:16,className:"w-3 h-3"})})}),(0,a.jsx)("div",{className:"flex items-center pointer-events-auto -mr-2",children:(0,a.jsx)("button",{onClick:x,className:"w-10 h-10 flex items-center justify-center bg-white/20 backdrop-blur-sm rounded-full hover:bg-white/30 transition-all duration-200 cursor-pointer border border-white/30","aria-label":"View next highlighted features",children:(0,a.jsx)(s.default,{src:"/icons/green-arrow-right.svg",alt:"Next",width:16,height:16,className:"w-3 h-3"})})})]}),(0,a.jsx)("div",{className:"relative overflow-hidden",onTouchStart:v,onTouchMove:b,onTouchEnd:y,onMouseEnter:j,onMouseLeave:E,children:t||g?(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-4 md:gap-6 xl:gap-5",children:Array.from({length:4}).map((e,t)=>(0,a.jsx)(n.Jp,{},`skeleton-${t}`))}):(0,a.jsxs)("div",{className:"flex transition-transform duration-500 ease-in-out",children:[(0,a.jsx)("div",{className:"xl:hidden w-full px-4",children:(0,a.jsx)(c,{feature:r[m]}
1)}),(0,a.jsx)("div",{className:"hidden xl:grid xl:grid-cols-4 gap-4 md:gap-6 xl:gap-5 w-full",children:Array.from({length:4}).map((e,t)=>{let s=(m+t)%r.length,n=r[s];return(0,a.jsx)("div",{children:(0,a.jsx)(c,{feature:n})},`${n.id}-${t}`)})})]})}),(0,a.jsx)("div",{className:"flex justify-center mt-8 xl:hidden",children:(0,a.jsx)("div",{className:"flex gap-3",children:r.map((e,t)=>(0,a.jsx)("button",{onClick:()=>w(t),className:`w-3 h-3 rounded-full transition-all duration-200 p-1 ${t===m?"bg-secondary":"bg-gray-300"}`,"aria-label":`Go to highlighted feature ${t+1}`,"aria-current":t===m?"true":"false"},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.