27 lines
13 KiB
JavaScript
27 lines
13 KiB
JavaScript
import{c as N,r as w,j as e,L as t,d as S}from"./app-Ajql0Lt4.js";import{q as M,a as o,h as d,f as m,g as f,i as j,j as h,B as _,k as g}from"./createLucideIcon-B_iAwCmA.js";import{I as C}from"./input-B0_NTiRR.js";import{L}from"./label-D8DO87nw.js";import{S as q,a as F,b as I,c as P,e as T,d as v}from"./select-TKsTtRMn.js";import{S as z,o as $,p as A,q as B,r as E}from"./sheet-iBbRuLZ4.js";const l=s=>({url:l.url(s),method:"get"});l.definition={methods:["get","head"],url:"/product"};l.url=s=>l.definition.url+M(s);l.get=s=>({url:l.url(s),method:"get"});l.head=s=>({url:l.url(s),method:"head"});const p=s=>({action:l.url(s),method:"get"});p.get=s=>({action:l.url(s),method:"get"});p.head=s=>({action:l.url({[s?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...s?.query??s?.mergeQuery??{}}}),method:"get"});l.form=p;const u={product:Object.assign(l,l)};function R(s,r,a={}){if(!s)return console.warn("No translations provided"),r;const n=r.split(".");let i=s;for(const x of n)if(i&&typeof i=="object"&&x in i)i=i[x];else return console.warn(`Translation key not found: ${r}`),r;if(typeof i!="string")return r;let c=i;return Object.entries(a).forEach(([x,k])=>{c=c.replace(new RegExp(`:${x}`,"g"),k)}),c}function y(){const{translations:s}=N().props;return{t:(a,n={})=>R(s,a,n),translations:s}}function D(){const{locale:s}=N().props;return s}const H="/build/assets/ns-CsWIdWF7.gif",Q="/build/assets/oko-BkZT_kDH.gif",b="/build/assets/soorya-Ci0dhsli.png",O="#0866FF",W=w.forwardRef(function({title:r="Facebook",color:a="currentColor",size:n=24,...i},c){return a==="default"&&(a=O),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,fill:a,viewBox:"0 0 24 24",ref:c,...i,children:[e.jsx("title",{children:r}),e.jsx("path",{d:"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z"})]})}),V="#FF0069",Z=w.forwardRef(function({title:r="Instagram",color:a="currentColor",size:n=24,...i},c){return a==="default"&&(a=V),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,fill:a,viewBox:"0 0 24 24",ref:c,...i,children:[e.jsx("title",{children:r}),e.jsx("path",{d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"})]})});/**
|
|
* @license lucide-react v0.475.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const G=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],K=o("Mail",G);/**
|
|
* @license lucide-react v0.475.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Y=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],J=o("MapPin",Y);/**
|
|
* @license lucide-react v0.475.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const U=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],X=o("Menu",U);/**
|
|
* @license lucide-react v0.475.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ee=[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]],se=o("MoveRight",ee);/**
|
|
* @license lucide-react v0.475.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const te=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],le=o("Phone",te);function ae(){const{t:s}=y();return e.jsxs("footer",{className:"bg-primary",children:[e.jsxs("div",{className:"mx-auto grid max-w-screen-2xl grid-cols-4 gap-8 px-12 py-8 max-md:grid-cols-1 max-md:grid-rows-4 max-md:px-6",children:[e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("img",{src:b,alt:"Soorya Carpet Logo",className:"w-32"}),e.jsxs("div",{className:"flex flex-col gap-4 text-sm text-white",children:[e.jsx("p",{children:s("footer.desc.title")}),e.jsxs("ul",{children:[e.jsx("li",{children:s("footer.desc.company")}),e.jsx("li",{children:s("footer.desc.address")}),e.jsx("li",{children:s("footer.desc.phone")}),e.jsx("li",{children:s("footer.desc.email")})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx("p",{className:"text-lg font-medium text-white",children:"Quick Link"}),e.jsxs("ul",{className:"flex flex-col gap-1 text-sm",children:[e.jsx("li",{children:e.jsx(t,{href:d(),className:"text-neutral-300",children:s("footer.links.home")})}),e.jsx("li",{children:e.jsx(t,{href:m(),className:"text-neutral-300",children:s("footer.links.contact")})}),e.jsx("li",{children:e.jsx(t,{href:f(),className:"text-neutral-300",children:s("footer.links.about-us")})}),e.jsx("li",{children:e.jsx(t,{href:j(),className:"text-neutral-300",children:s("footer.links.art")})}),e.jsx("li",{children:e.jsx(t,{href:u.product(),className:"text-neutral-300",children:s("footer.links.products")})}),e.jsx("li",{children:e.jsx(t,{href:d(),className:"text-neutral-300",children:s("footer.links.bespoke")})}),e.jsx("li",{children:e.jsx(t,{href:d(),className:"text-neutral-300",children:s("footer.links.gallery")})}),e.jsx("li",{children:e.jsx(t,{href:h(),className:"text-neutral-300",children:s("footer.links.faq")})})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-lg font-medium text-white",children:"Certifications & Trust Badges"}),e.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[e.jsx("img",{src:H,alt:"NS Standard",className:"aspect-square object-cover object-center"}),e.jsx("img",{src:Q,alt:"oko Standard",className:"object-cover object-center"})]})]}),e.jsx("div",{children:e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsxs("form",{className:"flex flex-col gap-2",children:[e.jsx(L,{className:"text-lg font-medium text-white",children:s("footer.news.title")}),e.jsxs("div",{className:"flex items-center gap-2 max-sm:flex-col",children:[e.jsx(C,{id:"newsletter",placeholder:s("footer.news.input"),className:"bg-white"}),e.jsxs(_,{variant:"outline",className:"bg-transparent text-white max-sm:w-full",children:[s("footer.news.button")," ",e.jsx(se,{})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("p",{className:"text-base font-medium text-white",children:s("footer.news.legal.title")}),e.jsxs("ul",{className:"flex flex-col gap-1 text-sm text-neutral-300",children:[e.jsx("li",{children:e.jsx(t,{href:"privacy-policy",children:s("footer.news.legal.privacy")})}),e.jsx("li",{children:e.jsx(t,{href:"terms-and-condition",children:s("footer.news.legal.terms")})}),e.jsx("li",{children:e.jsx(t,{href:h(),children:s("footer.news.legal.policy")})})]})]})]})})]}),e.jsx("hr",{className:"mx-auto my-4 max-w-screen-2xl border-neutral-500 px-12"}),e.jsxs("div",{className:"max-auto flex max-w-screen-2xl items-center justify-between px-12 py-4 max-md:flex-col max-md:gap-4 max-md:px-6",children:[e.jsxs("p",{className:"text-xs text-white",children:["© ",new Date().getFullYear()," Soorya Carpet Industries. All rights reserved."]}),e.jsxs("ul",{className:"flex items-center gap-4",children:[e.jsx("li",{children:e.jsx(t,{href:"https://www.facebook.com/sooryacarpet/?locale=ne_NP",target:"_blank",children:e.jsx(W,{color:"#d4d4d4",size:16})})}),e.jsx("li",{children:e.jsx(t,{href:"https://www.instagram.com/kaleen_carpet/",target:"_blank",children:e.jsx(Z,{color:"#d4d4d4",size:16})})})]})]})]})}function re(){const{t:s}=y(),r=D(),a=n=>{S.post("/locale",{locale:n},{preserveScroll:!0,preserveState:!0,onSuccess:()=>{console.log("Language changed to:",n)}})};return e.jsx(e.Fragment,{children:e.jsxs("header",{className:"mx-auto w-full text-sm not-has-[nav]:hidden",children:[e.jsx("div",{className:"bg-primary py-1.5 text-white/60 max-md:hidden",children:e.jsxs("div",{className:"mx-auto flex max-w-screen-2xl items-center justify-between px-12 max-md:px-2",children:[e.jsxs("ul",{className:"flex items-center gap-4",children:[e.jsx("li",{children:e.jsxs("a",{href:"tel:01-4220087",className:"flex items-center gap-1 text-xs",children:[e.jsx(le,{size:14}),"01-4220087"]})}),e.jsx("li",{children:e.jsxs("a",{href:"mailto:info@soorya.com",className:"flex items-center gap-1 text-xs",children:[e.jsx(K,{size:14}),"info@soorya.com"]})}),e.jsx("li",{children:e.jsxs("a",{href:"#",className:"flex items-center gap-1 text-xs",children:[e.jsx(J,{size:14}),"Thapathali, Kathmandu, Nepal"]})})]}),e.jsxs(q,{value:r,onValueChange:a,children:[e.jsx(F,{className:"h-0 w-32 border-0 focus-visible:ring-0",children:e.jsx(I,{})}),e.jsx(P,{children:e.jsxs(T,{children:[e.jsx(v,{value:"en",children:"English"}),e.jsx(v,{value:"cn",children:"中国人"})]})})]})]})}),e.jsx("div",{className:"mx-auto w-full max-w-screen-2xl px-12 py-2 text-base not-has-[nav]:hidden max-md:px-4",children:e.jsxs("nav",{className:"flex items-center justify-between gap-2",children:[e.jsx(t,{href:d(),children:e.jsx("img",{src:b,alt:"Soorya Carpet Logo",className:"w-36"})}),e.jsxs("ul",{className:"flex items-center gap-6 max-md:hidden",children:[e.jsx("li",{children:e.jsx(t,{href:f(),children:s("nav.about-us")})}),e.jsx("li",{children:e.jsx(t,{href:j(),children:s("nav.art")})}),e.jsx("li",{children:e.jsx(t,{href:u.product(),children:s("nav.products")})}),e.jsx("li",{children:e.jsx(t,{href:g(),children:s("nav.bespoke")})}),e.jsx("li",{children:e.jsx(t,{href:h(),children:s("nav.faq")})}),e.jsx("li",{children:e.jsx(t,{href:m(),children:s("nav.contact")})})]}),e.jsxs(z,{children:[e.jsx($,{className:"md:hidden",children:e.jsx(X,{size:24})}),e.jsxs(A,{className:"w-full",children:[e.jsx(B,{className:"hidden",children:"Menu"}),e.jsx(E,{className:"hidden",children:"Navigation Menu Item"}),e.jsxs("ul",{className:"mt-20 flex flex-col items-center justify-center gap-6",children:[e.jsx("li",{children:e.jsx(t,{href:f(),children:s("nav.about-us")})}),e.jsx("li",{children:e.jsx(t,{href:j(),children:s("nav.art")})}),e.jsx("li",{children:e.jsx(t,{href:u.product(),children:s("nav.products")})}),e.jsx("li",{children:e.jsx(t,{href:g(),children:s("nav.bespoke")})}),e.jsx("li",{children:e.jsx(t,{href:h(),children:s("nav.faq")})}),e.jsx("li",{children:e.jsx(t,{href:m(),children:s("nav.contact")})})]})]})]})]})})]})})}function he({children:s}){return e.jsxs("div",{className:"mx-auto grid min-h-[100dvh] grid-rows-[auto_1fr_auto]",children:[e.jsx(re,{}),e.jsx("main",{children:s}),e.jsx(ae,{})]})}export{he as L,J as M,le as P,K as a,se as b,u as i,H as n,Q as o,y as u};
|