PageSourceSearch

https://propertyklik.com/_next/static/chunks/3485.eff0d0c08ef84280.js

js propertyklik.com collected 2026-10-06 10:55:28 UTC 8,220 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3485],{27648:function(e,l,i){i.d(l,{default:function(){return a.a}});var n=i(72972),a=i.n(n)},23105:function(e,l,i){i.r(l),i.d(l,{default:function(){return c}});var n=i(57437),a=i(29883),s=i(87747),d=i(27648),r=i(22982),o=i(60794),t=i(92946);function c(){var e,l,i,c,u,v,p,x,m,h,g,j,f,b,y,N,_,w,k,F,z,A,C;let{showDeveloper:R=!0,hideBgBorder:T,data:Z,disableLink:D,link:E,hideDetail:L}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},B={room:null==Z?void 0:Z.rooms,shower:null==Z?void 0:Z.bathroom,size_land:null==Z?void 0:Z.size_land,size_building:null==Z?void 0:Z.size_building},P=null==Z?void 0:Z.slug,I=(null==Z?void 0:null===(l=Z.advertises_media)||void 0===l?void 0:null===(e=l.find(e=>null==e?void 0:e.is_cover))||void 0===e?void 0:e.image)||(null==Z?void 0:null===(c=Z.advertises_media)||void 0===c?void 0:null===(i=c[0])||void 0===i?void 0:i.image)||(null==Z?void 0:Z.image);return(0,n.jsx)(d.default,{prefetch:!1,href:D?"#":E||P||"/",children:(0,n.jsx)("section",{className:"cursor-pointer h-full",children:(0,n.jsx)("div",{className:T?"":"card h-full !p-0",children:(0,n.jsxs)("div",{className:"relative h-full flex flex-col justify-between ",children:[(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)("div",{className:"overflow-hidden rounded-t-[10px]",children:(0,n.jsx)(a.Z,{src:I,alt:"image-content",height:200,width:220,responsive:!0,classNameImage:"overflow-hidden rounded-t-[10px] w-full h-[220px] object-cover object-center border"})})," ",(0,n.jsx)("div",{children:(null==Z?void 0:null===(u=Z.agent)||void 0===u?void 0:u.type_agent)===4?(0,n.jsx)("div",{className:"rounded-br-[10px] rounded-tl-[10px] bg-c-red-dark px-[25px] py-2 absolute top-0 ",children:(0,n.jsx)("span",{className:"text-white text-sm font-semibold",children:"Official Developer "})}):(null==Z?void 0:Z.is_highlights)?(0,n.jsx)("div",{className:"rounded-br-[10px] rounded-tl-[10px] bg-[#58E4D9] px-[25px] py-2 absolute top-0 ",children:(0,n.jsx)("span",{className:"text-white text-sm font-semibold",children:"Highlight"})}):(0,n.jsx)(n.Fragment,{})}),(0,n.jsxs)("div",{className:"p-4 pb-0",children:[(null==Z?void 0:null===(v=Z.building_type)||void 0===v?void 0:v.name)||(null==Z?void 0:Z.property_type)||(null==Z?void 0:Z.listing_type)?(0,n.jsxs)("div",{className:"flex gap-2 pb-2",children:[(null==Z?void 0:Z.listing_type)==1?(0,n.jsx)(r.z,{color:"secondary",className:"bg-[#031c46]",children:"Dijual"}):(0,n.jsx)(n.Fragment,{}),(null==Z?void 0:Z.listing_type)==2?(0,n.jsx)(r.z,{color:"secondary",className:"bg-[#031c46]",children:"Disewa"}):(0,n.jsx)(n.Fragment,{}),(null==Z?void 0:null===(p=Z.building_type)||void 0===p?void 0:p.name)?(0,n.jsx)(r.z,{color:"primary",children:null==Z?void 0:null===(x=Z.building_type)||void 0===x?void 0:x.name}):(0,n.jsx)(n.Fragment,{}),(null==Z?void 0:Z.property_type)?(0,n.jsx)(r.z,{color:"danger",children:o.e_.find(e=>e.value==(null==Z?void 0:Z.property_type)).label}):(0,n.jsx)(n.Fragment,{})]}):(0,n.jsx)(n.Fragment,{}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"md:text-xl font-semibold text-c-dark-blue pb-3",children:(0,t.b7)((null==Z?void 0:Z.price)||0)}),(0,n.jsx)("h2",{className:"font-semibold pb-[10px] truncate",children:null==Z?void 0:Z.name}),(0,n.jsxs)("p",{className:"text-c-grey-3 pb-[25px] line-clamp-2 text-sm",children:[(null==Z?void 0:Z.subDistrict)||(null==Z?void 0:Z.subdistrict),", ",(null==Z?void 0:Z.regency)||(null==Z?void 0:Z.city)]})]})]})]}),(0,n.jsxs)("div",{className:"p-4 pt-0",children:[L?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(s.Z,{data:B,className:"!justify-start"}),R&&((null==Z?void 0:null===(h=Z.agent)||void 0===h?void 0:null===(m=h.office_agent)||void 0===m?void 0:m.id)||(null==Z?void 0:null===(g=Z.office_agent)||void 0===g?void 0:g.id))?(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)("div",{className:" bg-c-grey-2 py-[0.5px] my-[20px] divide-y-2"}),(0,n.jsx)("div",{className:"flex items-center h-16",children:(0,n.jsxs)("div",{className:"flex gap-[10px] items-center",children:[(0,n.jsx)(a.Z,{width:60,height:60,src:(null==Z?void 0:null===(f=Z.agent)||void 0===f?void 0:null===(j=f.office_agent)||void 0===j?void 0:j.image)||(null==Z?void 0:null===(b=Z.agent)||void 0===b?void 0:b.image)||(null==Z?void 0:null===(y=Z.office_agent)||void 0===y?void 0:y.image),alt:"logo",variant:"square",bgTransparent:!0,responsive:!0}),(0,n.jsx)("span",{className:"text-c-grey-3 capitalize",children:(null==Z?void 0:null===(_=Z.agent)||void 0===_?void 0:null===(N=_.office_agent)||void 0===N?void 0:N.name)||(null==Z?void 0:null===(w=Z.agent)||void 0===w?void 0:w.pic_name)||(null==Z?void 0:Z.name)})]})})]}):(0,n.jsx)(n.Fragment,{}),(null==Z?void 0:null===(F=Z.agent)||void 0===F?void 0:null===(k=F.office_agent)||void 0===k?void 0:k.id)||null==Z||null===(z=Z.agent)||void 0===z||!z.pic_name?(0,n.jsx)(n.Fragment,{}):(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)("div",{className:" bg-c-grey-2 py-[0.5px] my-[20px] divide-y-2"}),(0,n.jsx)("div",{className:"flex items-center h-16",children:(0,n.jsxs)("div",{className:"flex gap-[10px] items-center",children:[(0,n.jsx)(a.Z,{width:60,height:60,src:(null==Z?void 0:null===(A=Z.agent)||void 0===A?void 0:A.image)||o.lB,alt:"logo",variant:"square",bgTransparent:!0,responsive:!0}),(0,n.jsx)("span",{className:"text-c-grey-3 capitalize",children:null==Z?void 0:null===(C=Z.agent)||void 0===C?void 0:C.pic_name})]})})]})]})]})})})})}},83485:function(e,l,i){i.r(l),i.d(l,{default:function(){return b}});var n=i(57437),a=i(18206),s=i(11990),d=i(75885),r=i(43625),o=i(9031),t=i(89429),c=i(42344),u=i(31894),v=i(76114),p=i(29501),x=i(25768),m=i(23105),h=i(42897),g=i(2265),j=i(42236);let f=e=>{let{children:l,...i}=e;return(0,n.jsx)(s.J,{...i,classNames:{base:(0,d.cn)("inline-flex m-0 bg-content1 hover:bg-content2 items-center justify-between","flex-row-reverse cursor-pointer rounded-lg gap-4 p-4 border-2 border-transparent","data-[selected=true]:border-primary border rounded-full border-c-black-25")},children:l})};function b(e){let{isOpen:l,onOpen:i,data:s}=e,d=(0,j.Z)(),{handleSubmit:b,control:y,watch:N,register:_,resetField:w}=(0,p.cI)({defaultValues:{reason:"",otherReason:""}}),k=["Ya, terjual di PropertyKlik","Ya, terjual di tempat lain","Belum terjual","Alasan Lainnya"],[F,{loading:z}]=(0,h.Z)({url:"/api/advertises/status/".concat(null==s?void 0:s.id),onCompleted:e=>{if(null==e?void 0:e.error)return a.Am.error("Error! Terjadi Kesalahan!");a.Am.success("Berhasil di simpan"),d.mutate(),i()},onError:e=>{a.Am.warning("Terjadi kesalahan!")}}),A=(0,g.useMemo)(()=>(0,n.jsx)(m.default,{data:s,disableLink:!0}),[]),C=e=>{F({is_publish:4,reason:(null==e?void 0:e.otherReason)||(null==e?void 0:e.reason)||""})};return(0,n.jsx)(r.R,{isOpen:l,onOpenChange:i,size:"3xl",placement:"top-center",scrollBehavior:"outside",children:(0,n.jsx)(o.A,{children:e=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.I,{className:"pt-6",children:(0,n.jsx)("div",{children:(0,n.jsx)("form",{onSubmit:b(C),children:(0,n.jsxs)("div",{className:"space-y-[50px]",children:[(0,n.jsx)("h3",{className:"text-2xl font-semibold",children:"Alasan Terjual"}),(0,n.jsxs)("div",{className:"grid grid-cols-4 gap-6 md:grid-cols-8 lg:grid-cols-12",children:[(0,n.jsx)("div",{className:"col-span-4 lg:col-span-6",children:A}),(0,n.jsxs)("div",{className:"col-span-4 lg:col-span-6",children:[" ",(0,n.jsxs)("div",{className:"space-y-6",children:[(0,n.jsx)(p.Qr,{name:"reason",control:y,render:e=>{let{field:l}=e;return(0,n.jsx)(c.X,{onValueChange:e=>{"Alasan Lainnya"!==e&&w("otherReason"),l.onChange(e)},value:l.value,label:"Apakah anda menjual property ini ?",classNames:{wrapper:"flex-wrap flex-row"},children:k.map((e,l)=>(0,n.jsx)(f,{value:e,children:e},l))})}}),"Alasan Lainnya"===N("reason")?(0,n.jsx)(u.Y,{..._("otherReason"),labelPlacement:"outside",placeholder:"Masukan alasan lainnya",classNames:{inputWrapper:"border border-c-black-25 bg-white"}}):(0,n.jsx)(n.Fragment,{})]})]})]}),(0,n.jsx)("div",{children:(0,n.jsx)(x.default,{type:"submit",isLoading:z,children:(0,n.jsx)("strong",{children:"Terjual Properti"})})})]})})})}),(0,n.jsx)(v.R,{children:(0,n.jsx)(x.default,{color:"danger",variant:"light",onPress:e,children:"Close"})})]})})})}}}]);

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.