1import{c as W,j as t,H as J,L as B}from"./app-4vdtwFsS.js";import{B as V}from"./button-Cw1UZFLL.js";import{c as X,C as Y,d as Z,a as ee,b as te}from"./carousel-BJDQmyfV.js";import{G as le}from"./guest-layout-CF5HqVgK.js";import{p as z}from"./index-BEd4dPyB.js";import{a as se,q as re}from"./index-C_SHgnPd.js";import{m as F}from"./proxy-BJUeZSrT.js";import{U as ie}from"./user-B-s_pKDL.js";import{C as oe}from"./calendar-Cexw8CYe.js";import{E as ae}from"./external-link-CEAlm74f.js";import{A as me}from"./arrow-left-CLaz67qz.js";import{A as ne}from"./arrow-right-DeLJdQ1d.js";/* empty css */import"./input-DuisAyS9.js";import"./index-C8z8zERT.js";import"./index-Bts08HEB.js";import"./loader-circle-BDU-vYjl.js";import"./index-SsI7_dU_.js";import"./dialog-DcvkoDZd.js";const r=(l,e)=>({url:r.url(l,e),method:"get"});r.definition={methods:["get","head"],url:"/portfolio/{portfolio}"};r.url=(l,e)=>{(typeof l=="string"||typeof l=="number")&&(l={portfolio:l}),typeof l=="object"&&!Array.isArray(l)&&"slug"in l&&(l={portfolio:l.slug}),Array.isArray(l)&&(l={portfolio:l[0]}),l=se(l);const s={portfolio:typeof l.portfolio=="object"?l.portfolio.slug:l.portfolio};return r.definition.url.replace("{portfolio}",s.portfolio.toString()).replace(/\/+$/,"")+re(e)};r.get=(l,e)=>({url:r.url(l,e),method:"get"});r.head=(l,e)=>({url:r.url(l,e),method:"head"});const D=(l,e)=>({action:r.url(l,e),method:"get"});D.get=(l,e)=>({action:r.url(l,e),method:"get"});D.head=(l,e)=>({action:r.url(l,{[e?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...e?.query??e?.mergeQuery??{}}}),method:"get"});r.form=D;Object.assign(r,r);function Ee(l){const e=W.c(76),{portfolio:s,otherPortfolios:U}=l;let c,d,i,f,o,a,m,p,x,h,u,n,g;if(e[0]!==s.images||e[1]!==s.thumbnail||e[2]!==s.title){const G=[...s.thumbnail?[{image:s.thumbnail,sort_order:-1}]:[],...s.images??[]].sort(de);d=le,e[16]!==s.title?(o=t.jsx(J,{title:s.title}),e[16]=s.title,e[17]=o):o=e[17],f="pt-[70px]",g="py-12 sm:py-16 lg:py-20",u="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8";let R;e[18]===Symbol.for("react.memo_cache_sentinel")?(R=z.url(),e[18]=R):R=e[18],e[19]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsxs(B,{href:R,className:"mb-8 inline-flex items-center text-sm font-medium text-[#0066CC] hover:underline",children:[t.jsx(me,{className:"mr-2 h-4 w-4"}),"Kembali ke Portofolio"]}),e[19]=n):n=e[19],h="grid gap-12 lg:grid-cols-2 lg:items-start",c=F.div,e[20]===Symbol.for("react.memo_cache_sentinel")?(i={opacity:0,x:-20},a={opacity:1,x:0},m={duration:.6},e[20]=i,e[21]=a,e[22]=m):(i=e[20],a=e[21],m=e[22]),p="relative overflow-hidden rounded-2xl bg-white p-4 shadow-xl lg:p-8",x=G.length>1?t.jsxs(X,{className:"w-full",children:[t.jsx(Y,{children:G.map((O,M)=>t.jsx(Z,{children:t.jsx("div",{className:"aspect-square sm:aspect-video lg:aspect-square",children:t.jsx("img",{src:O.image,alt:`${s.title} - ${M+1}`,className:"h-full w-full object-contain"})})},M))}),t.jsx(ee,{className:"left-2"}),t.jsx(te,{className:"right-2"})]}):t.jsx("div",{className:"aspect-square sm:aspect-video lg:aspect-square",children:t.jsx("img",{src:s.thumbnail??"/images/portfolio-placeholder.png",alt:s.title,className:"h-full w-full object-contain"})}),e[0]=s.images,e[1]=s.thumbnail,e[2]=s.title,e[3]=c,e[4]=d,e[5]=i,e[6]=f,e[7]=o,e[8]=a,e[9]=m,e[10]=p,e[11]=x,e[12]=h,e[13]=u,e[14]=n,e[15]=g}else c=e[3],d=e[4],i=e[5],f=e[6],o=e[7],a=e[8],m=e[9],p=e[10],x=e[11],h=e[12],u=e[13],n=e[14],g=e[15];let j;e[23]!==c||e[24]!==i||e[25]!==a||e[26]!==m||e[27]!==p||e[28]!==x?(j=t.jsx(c,{initial:i,animate:a,transition:m,className:p,children:x}),e[23]=c,e[24]=i,e[25]=a,e[26]=m,e[27]=p,e[28]=x,e[29]=j):j=e[29];let E,H,P;e[30]===Symbol.for("react.memo_cache_sentinel")?(E={opacity:0,x:20},H={opacity:1,x:0},P={duration:.6,delay:.2},e[30]=E,e[31]=H,e[32]=P):(E=e[30],H=e[31],P=e[32]);let b;e[33]!==s.title?(b=t.jsx("h1",{className:"mb-6 text-3xl font-bold text-[#1A202C] sm:text-4xl lg:text-5xl",children:s.title}),e[33]=s.title,e[34]=b):b=e[34];let T;e[35]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("div",{className:"mb-8 h-1 w-20 rounded-full !bg-[#0066CC]"}),e[35]=T):T=e[35];let y;e[36]!==s.client?(y=s.client&&t.jsxs("div",{className:"mb-4 flex items-center gap-2 text-gray-600",children:[t.jsx(ie,{className:"h-5 w-5 text-[#0066CC]"}),t.jsx("span",{className:"font-medium",children:"Klien:"}),t.jsx("span",{children:s.client.name})]}),e[36]=s.client,e[37]=y):y=e[37];let N;e[38]!==s.project_date?(N=s.project_date&&t.jsxs("div",{className:"mb-6 flex items-center gap-2 text-gray-600",children:[t.jsx(oe,{className:"h-5 w-5 text-[#0066CC]"}),t.jsx("span",{className:"font-medium",children:"Tanggal:"}),t.jsx("span",{children:s.project_date})]}),e[38]=s.project_date,e[39]=N):N=e[39];let _;e[40]!==s.description?(_=s.description&&t.jsx("div",{className:"prose prose-lg mb-10 text-gray-600 dark:prose-invert",dangerouslySetInnerHTML:{__html:s.description}}),e[40]=s.description,e[41]=_):_=e[41];let v;e[42]!==s.project_url?(v=s.project_url&&t.jsx("div",{className:"flex flex-wrap gap-4",children:t.jsx(V,{size:"lg",className:"!bg-[#0066CC] px-8 py-6 text-white hover:bg-[#004C99]",asChild:!0,children:t.jsxs("a",{href:s.project_url,target:"_blank",rel:"noopener noreferrer",children:[t.jsx(ae,{className:"mr-2 h-5 w-5"}),"Kunjungi Website"]})})}),e[42]=s.project_url,e[43]=v):v=e[43];let w;e[44]!==b||e[45]!==y||e[46]!==N||e[47]!==_||e[48]!==v?(w=t.jsxs(F.div,{initial:E,animate:H,transition:P,children:[b,T,y,N,_,v]}
1),e[44]=b,e[45]=y,e[46]=N,e[47]=_,e[48]=v,e[49]=w):w=e[49];let C;e[50]!==j||e[51]!==w||e[52]!==h?(C=t.jsxs("div",{className:h,children:[j,w]}),e[50]=j,e[51]=w,e[52]=h,e[53]=C):C=e[53];let S;e[54]!==C||e[55]!==u||e[56]!==n?(S=t.jsxs("div",{className:u,children:[n,C]}),e[54]=C,e[55]=u,e[56]=n,e[57]=S):S=e[57];let A;e[58]!==S||e[59]!==g?(A=t.jsx("section",{className:g,children:S}),e[58]=S,e[59]=g,e[60]=A):A=e[60];let $;e[61]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx("h2",{className:"text-2xl font-bold text-gray-900 sm:text-3xl",children:"Portofolio Lainnya"}),e[61]=$):$=e[61];let I;e[62]===Symbol.for("react.memo_cache_sentinel")?(I=z.url(),e[62]=I):I=e[62];let K;e[63]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs("div",{className:"mb-12 flex items-center justify-between",children:[$,t.jsxs(B,{href:I,className:"group flex items-center text-sm font-semibold text-[#0066CC]",children:["Lihat Semua",t.jsx(ne,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})]}),e[63]=K):K=e[63];let L;e[64]!==U?(L=U.map(ce),e[64]=U,e[65]=L):L=e[65];let q;e[66]!==L?(q=t.jsx("section",{className:"border-t border-gray-100 bg-white py-20",children:t.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[K,t.jsx("div",{className:"grid gap-8 sm:grid-cols-2 lg:grid-cols-4",children:L})]})}),e[66]=L,e[67]=q):q=e[67];let k;e[68]!==f||e[69]!==A||e[70]!==q?(k=t.jsxs("div",{className:f,children:[A,q]}),e[68]=f,e[69]=A,e[70]=q,e[71]=k):k=e[71];let Q;return e[72]!==d||e[73]!==o||e[74]!==k?(Q=t.jsxs(d,{children:[o,k]}),e[72]=d,e[73]=o,e[74]=k,e[75]=Q):Q=e[75],Q}function ce(l){return t.jsxs(B,{href:r.url({portfolio:l.slug}),className:"group flex flex-col overflow-hidden rounded-xl border border-gray-100 bg-white transition-all duration-300 hover:border-[#0066CC]/30 hover:shadow-lg",children:[t.jsx("div",{className:"relative h-48 overflow-hidden bg-gray-50",children:t.jsx("img",{src:l.thumbnail??"/images/portfolio-placeholder.png",alt:l.title,className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-105"})}),t.jsxs("div",{className:"flex flex-1 flex-col p-5",children:[t.jsx("h3",{className:"mb-2 font-bold text-gray-900 group-hover:text-[#0066CC]",children:l.title}),l.client&&t.jsx("p",{className:"mb-2 text-xs font-medium text-[#0066CC]",children:l.client.name}),l.description&&t.jsx("div",{className:"line-clamp-2 text-sm text-gray-600 prose prose-sm max-w-none dark:prose-invert",dangerouslySetInnerHTML:{__html:l.description}})]})]},l.id)}function de(l,e){return l.sort_order-e.sort_order}export{Ee as default};
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.