PageSourceSearch

https://giaophanphucuong.org/_next/static/chunks/6857.388ccd2547d9edfc.js

js giaophanphucuong.org collected 2026-10-02 14:06:22 UTC 9,491 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6857],{36857:function(e,l,s){s.a(e,async function(e,a){try{s.r(l),s.d(l,{default:function(){return k}});var n=s(85893),i=s(25675),t=s.n(i),r=s(67294),c=s(41027),d=s(2226),o=s(18266),m=s(3517),h=s(36864),u=s(34809),x=s(3594),p=s(30959),g=s(87740),v=s(86597),N=s(42484),j=s(96476),f=s(50228),b=s(68090),y=s(49115),C=e([b,y]);function k(e){let l=e.data,[s,a]=(0,r.useState)({total:0}),[i,C]=(0,r.useState)(),[k,_]=(0,r.useState)(),[G,S]=(0,r.useState)(f.Lb),{isOpen:w,onOpen:O,onClose:z}=(0,c.q)(),I=async()=>{let e=await fetch("api/churchs",{method:"POST",body:JSON.stringify({timeMass:i||"",churchName:k||"",appointmentID:G}),headers:{"Content-Type":"application/json"}});a(await e.json())};(0,r.useEffect)(()=>{I()},[]);let M=e=>{e.preventDefault(),I()},T=e=>{O()};return(0,n.jsxs)("div",{className:"search-churchs",children:[(0,n.jsxs)("div",{className:"search-churchs-data lg:grid grid-cols-6 gap-4 mx-auto py-4 px-4 bg-primary text-white",children:[(0,n.jsx)("div",{className:"mb-3 lg:m-auto",children:(0,n.jsx)("h3",{className:"text-2lg font-bold",children:"GI\xc1O PHẬN"})}),(0,n.jsx)("div",{className:"mb-3 lg:my-auto rounded-[5px]",children:(0,n.jsx)(d.g,{items:l,size:"sm",placeholder:"Chọn Gi\xe1o Hạt",defaultSelectedKeys:[f.Lb],className:"bg-white text-gray-500 rounded-[5px]",onChange:e=>S(e.target.value),children:l.value.map(e=>(0,n.jsx)(o.R,{children:e.name},e.id))})}),(0,n.jsx)("div",{className:"mb-3 lg:my-auto",children:(0,n.jsx)(m.Y,{size:"lg",radius:"none",type:"text",placeholder:"Nhập T\xean Gi\xe1o Xứ",classNames:{inputWrapper:"font-semibold text-gray-500 rounded-[5px]"},onChange:e=>_(e.target.value)},"none")}),(0,n.jsxs)("div",{className:"lg:col-span-2 lg:flex items-center",children:[(0,n.jsx)("div",{className:"time-mass mb-3 lg:my-0 lg:mx-5",children:(0,n.jsx)(m.Y,{size:"lg",radius:"none",type:"text",placeholder:"Giờ Lễ",classNames:{inputWrapper:"font-semibold text-gray-500 rounded-[5px]"},onChange:e=>C(e.target.value)},"none")}),(0,n.jsxs)("div",{className:"flex text-center",children:[(0,n.jsx)("div",{className:"button w-1/2 mb-3 lg:my-0 mx-auto lg:mx-5 gap-5",children:(0,n.jsx)(h.A,{onClick:M,size:"md",className:"rounded-[10px] text-white font-bold bg-link",children:"T\xccM KIẾM"})}),(0,n.jsx)("div",{className:"button w-1/2 mb-3 lg:my-0 mx-auto lg:mx-5",children:(0,n.jsx)(h.A,{onPress:()=>T(),size:"md",className:"rounded-[10px] text-primary font-bold bg-custom",children:"PH\xd3NG TO"})})]})]}),(0,n.jsx)("div",{className:"m-auto",children:(0,n.jsx)("h3",{className:"text-2lg text-center",children:"Gi\xe1o Xứ - Gi\xe1o Hạt - Giờ Lễ"})})]}),s.total>0&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(u.o,{hideScrollBar:!0,orientation:"horizontal",className:"w-full h-[400px]",children:(0,n.jsx)(b.Z,{churchData:s,isPagination:!1})})}),(0,n.jsx)(x.R,{isOpen:w,onClose:z,size:"full",scrollBehavior:"inside",backdrop:"blur",children:(0,n.jsx)(p.A,{children:e=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.k,{className:"flex flex-col gap-1 text-3lg font-normal",children:"Danh S\xe1ch Gi\xe1o Xứ"}),(0,n.jsx)(v.I,{children:(0,n.jsxs)("div",{className:"",children:[(0,n.jsxs)("div",{className:"search-modal--inputs lg:grid grid-cols-10 bg-primary py-3",children:[(0,n.jsx)("div",{className:"lg:col-span-3 my-5 mx-5",children:(0,n.jsx)(d.g,{items:l,size:"sm",placeholder:"Chọn Gi\xe1o Hạt",onChange:e=>S(e.target.value),className:"",children:l.value.map(e=>(0,n.jsx)(o.R,{children:e.name},e.id))})}),(0,n.jsx)("div",{className:"lg:col-span-3 my-5 mx-5 mac:my-5",children:(0,n.jsx)(m.Y,{size:"lg",radius:"sm",type:"text",placeholder:"Nhập T\xean Gi\xe1o Xứ",className:"font-semibold",onChange:e=>_(e.target.value)},"none")}),(0,n.jsx)("div",{className:"lg:col-span-3 my-5 mx-5 mac:my-5",children:(0,n.jsx)(m.Y,{size:"lg",radius:"sm",type:"text",placeholder:"Nhập giờ lễ định dạng 24h",className:"font-semibold",onChange:e=>C(e.target.value)},"none")}),(0,n.jsx)("div",{className:"lg:my-5 pb-5 lg:pb-0 pr-5 lg:pr-0 text-center col-span-3 lg:col-span-1 mx-auto",children:(0,n.jsx)(h.A,{size:"lg",onClick:M,className:"rounded bg-white",children:"T\xccM KIẾM"})})]}),(0,n.jsx)("div",{className:"bg-secondary",children:s&&s.value.map(e=>{var l,s,a,i,r,c;let d=(null==e?void 0:e.typeName)+" "+(null==e?void 0:e.name);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"search-churchs--result grid grid-cols-2 lg:grid-cols-7 gap-4 py-5 mx-auto container items-center bg-secondary border-b border-gray-500",children:[(0,n.jsx)("div",{className:"result--img m-auto",children:(0,n.jsx)(t(),{className:"flex justify-center",src:e.photoUrl?y.Z.getOptimizeImage(e.photoUrl,"small-post-view"):"",alt:d,width:150,height:150})}),(0,n.jsxs)("div",{className:"result--informations leading-7 lg:hidden",children:[(0,n.jsx)("p",{className:"font-bold lg:hidden",children:d}),(0,n.jsx)("p",{className:"",children:(0,n.jsxs)(N.O,{href:"tel:"+(null==e?void 0:e.phoneNumber),children:["Điện thoại: ",null==e?void 0:e.phoneNumber]})}),(0,n.jsxs)("p",{className:"",children:["D\xe2n số: ",null==e?void 0:e.population]}),(0,n.jsxs)("p",{className:"",children:["Số t\xedn hữu: ",null==e?void 0:e.memberCount]})]}),(0,n.jsxs)("div",{className:"result--address ml-3 lg:ml-0 col-span-2 leading-7",children:[(0,n.jsx)("p",{className:"font-bold hidden lg:block",children:(null==e?void 0:e.typeName)+" "+(null==e?void 0:e.name)}),(0,n.jsxs)("p",{className:"",children:["Địa chỉ: ",(0,n.jsx)(N.O,{"aria-label":"Địa chỉ: ".concat(null==e?void 0:e.address),href:null==e?void 0:e.addressLink,children:null==e?void 0:e.address})]}),(0,n.jsxs)("p",{className:"",children:["Email: ",(0,n.jsx)(N.O,{"aria-label":"Email: ".concat(null==e?void 0:e.email),href:"mailto:"+(null==e?void 0:e.email),children:null==e?void 0:e.email})]})]}),(0,n.jsxs)("div",{className:"result--informations ml-3 lg:ml-0 col-span-2 leading-7 hidden lg:block",children:[(0,n.jsx)("p",{className:"font-bold lg:hidden",children:(null==e?void 0:e.typeName)+" "+(null==e?void 0:e.name)}),(0,n.jsx)("p",{className:"",children:(0,n.jsxs)(N.O,{"aria-label":"Điện thoại: ".concat(null==e?void 0:e.phoneNumber),href:"tel:"+(null==e?void 0:e.phoneNumber),children:["Điện thoại: ",null==e?void 0:e.phoneNumber]})}),(0,n.jsxs)("p",{className:"",children:["D\xe2n số: ",null==e?void 0:e.population]}),(0,n.jsxs)("p",{className:"",children:["Số t\xedn hữu: ",null==e?void 0:e.memberCount]})]}),(0,n.jsxs)("div",{className:"result--time-mass ml-3 lg:ml-0 col-span-2 leading-7",children:[(0,n.jsx)("p",{className:"font-bold text-red-700",children:"Giờ lễ:"}),(0,n.jsxs)("p",{className:"",children:["Chiều thứ Bảy: ",(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:"".concat((null===(l=e.masses)||void 0===l?void 0:l.chieu_thu_bay)?null===(s=e.masses)||void 0===s?void 0:s.chieu_thu_bay.replaceAll(":","g"):"")}})]}),(0,n.jsxs)("p",{className:"",children:["Ch\xfaa Nhật: ",(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:"".concat((null===(a=e.masses)||void 0===a?void 0:a.chua_nhat)?null===(i=e.masses)||void 0===i?void 0:i.chua_nhat.replaceAll(":","g"):"")}})]}),(0,n.jsxs)("p",{className:"flex",children:[(0,n.jsxs)("span",{className:"",children:["Ng\xe0y thường: ",(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:"".concat((null===(r=e.masses)||void 0===r?void 0:r.ngay_thuong)?null===(c=e.masses)||void 0===c?void 0:c.ngay_thuong.replaceAll(":","g"):"")}})]}),(0,n.jsx)("span",{className:"flex-1 mx-4 text-red-700 font-bold",children:(0,n.jsx)(N.O,{"aria-label":null==e?void 0:e.name,href:"/nha-tho/"+e.id,children:"XEM TH\xcaM"})})]})]})]},e.id)})})})]})}),(0,n.jsx)(j.R,{})]})})})]})}[b,y]=C.then?(await C)():C,a()}catch(e){a(e)}})}
1,87740:function(e,l,s){s.d(l,{k:function(){return o}});var a=s(58237),n=s(67294),i=s(82134),t=s(31744),r=s(49869),c=s(85893),d=(0,i.Gp)((e,l)=>{let{as:s,children:i,className:d,...o}=e,{slots:m,classNames:h,headerId:u,setHeaderMounted:x}=(0,a.v)(),p=(0,t.gy)(l),g=s||"header";return(0,n.useEffect)(()=>(x(!0),()=>x(!1)),[x]),(0,c.jsx)(g,{ref:p,className:m.header({class:(0,r.W)(null==h?void 0:h.header,d)}),id:u,...o,children:i})});d.displayName="NextUI.ModalHeader";var o=d},96476:function(e,l,s){s.d(l,{R:function(){return d}});var a=s(58237),n=s(82134),i=s(31744),t=s(49869),r=s(85893),c=(0,n.Gp)((e,l)=>{let{as:s,children:n,className:c,...d}=e,{slots:o,classNames:m}=(0,a.v)(),h=(0,i.gy)(l),u=s||"footer";return(0,r.jsx)(u,{ref:h,className:o.footer({class:(0,t.W)(null==m?void 0:m.footer,c)}),...d,children:n})});c.displayName="NextUI.ModalFooter";var d=c},41027:function(e,l,s){s.d(l,{q:function(){return c}});var a=s(768),n=s(65897),i=s(67294),t=s(93387);function r(e,l=[]){let s=(0,i.useRef)(e);return(0,t.G)(()=>{s.current=e}),(0,i.useCallback)((...e)=>{var l;return null==(l=s.current)?void 0:l.call(s,...e)},l)}function c(e={}){let{id:l,defaultOpen:s,isOpen:t,onClose:c,onOpen:d,onChange:o=()=>{}}=e,m=r(d),h=r(c),[u,x]=(0,n.zk)(t,s||!1,o),p=(0,i.useId)(),g=l||p,v=void 0!==t,N=(0,i.useCallback)(()=>{v||x(!1),null==h||h()},[v,h]),j=(0,i.useCallback)(()=>{v||x(!0),null==m||m()},[v,m]),f=(0,i.useCallback)(()=>{let e=u?N:j;e()},[u,j,N]);return{isOpen:!!u,onOpen:j,onClose:N,onOpenChange:f,isControlled:v,getButtonProps:(e={})=>({...e,"aria-expanded":u,"aria-controls":g,onClick:(0,a.tS)(e.onClick,f)}),getDisclosureProps:(e={})=>({...e,hidden:!u,id:g})}}}}]);
2//# sourceMappingURL=6857.388ccd2547d9edfc.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.