@donotdev/templates 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AdminLandingTemplate.js +1 -1
- package/dist/DashboardTemplate.js +1 -1
- package/dist/HomeTemplate.js +1 -1
- package/dist/LoginTemplate.js +1 -1
- package/dist/ProfileTemplate.js +1 -1
- package/dist/WhatsNewTemplate.d.ts.map +1 -1
- package/dist/WhatsNewTemplate.js +1 -1
- package/dist/billing/BillingSuccessTemplate.d.ts.map +1 -1
- package/dist/billing/BillingSuccessTemplate.js +1 -1
- package/dist/billing/CheckoutTemplate.d.ts.map +1 -1
- package/dist/billing/CheckoutTemplate.js +1 -1
- package/dist/billing/PaymentTemplate.d.ts.map +1 -1
- package/dist/billing/PaymentTemplate.js +1 -1
- package/dist/billing/SubscriptionTemplate.d.ts.map +1 -1
- package/dist/billing/SubscriptionTemplate.js +1 -1
- package/dist/billing/UserSubscriptionTemplate.js +1 -1
- package/dist/blog/BlogList.d.ts.map +1 -1
- package/dist/blog/BlogList.js +1 -1
- package/dist/blog/BlogPost.js +1 -1
- package/dist/blog/blog-loader.js +2 -2
- package/dist/components/MarkdownViewer.d.ts.map +1 -1
- package/dist/components/MarkdownViewer.js +1 -1
- package/dist/crud/CarCardListTemplate.d.ts.map +1 -1
- package/dist/crud/CarCardListTemplate.js +1 -1
- package/dist/crud/CarDetailTemplate.d.ts.map +1 -1
- package/dist/crud/CarDetailTemplate.js +1 -1
- package/dist/crud/InquiryAdminTemplate.d.ts.map +1 -1
- package/dist/crud/InquiryAdminTemplate.js +1 -1
- package/dist/crud/InquiryFormTemplate.d.ts.map +1 -1
- package/dist/crud/InquiryFormTemplate.js +1 -1
- package/dist/crud/ProductCardListTemplate.d.ts.map +1 -1
- package/dist/crud/ProductCardListTemplate.js +1 -1
- package/dist/legal/LegalNoticeTemplate.js +1 -1
- package/dist/legal/PrivacyPolicyTemplate.d.ts.map +1 -1
- package/dist/legal/PrivacyPolicyTemplate.js +1 -1
- package/dist/legal/TermsOfServiceTemplate.d.ts.map +1 -1
- package/dist/legal/TermsOfServiceTemplate.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as t,Fragment as P,jsxs as a}from"react/jsx-runtime";import{useEffect as x}from"react";import{MultipleAuthProviders as y}from"@donotdev/auth";import{HeroSection as z,Section as L,Text as T,Stack as j}from"@donotdev/components";import{useTranslation as A,useAppConfig as C,getPlatformEnvVar as _}from"@donotdev/core";import{PageContainer as R,useNavigate as W,useRedirectGuard as k,Loader as E,Link as u}from"@donotdev/ui";function N({title:f,subtitle:m,message:i,supportLink:s,publicWebsiteLink:c,redirectConfig:l,children:h}){const{t:d}=A("dndev"),p=W(),g=C("app"),{shouldRedirect:n,redirectTo:e,isChecking:v}=k({condition:l?.condition,redirectTo:l?.redirectTo});if(x(()=>{n&&e&&p(e,{replace:!0})},[n,e,p]),v)return t(E,{});if(n&&e)return null;const o=s?.path||g?.links?.support,r=c?.path||_("APP_URL"),b=s?.label||d("adminLanding.contactSupport","Contact Support"),S=c?.label||d("adminLanding.visitWebsite","Visit Website");return a(R,{children:[t(z,{title:f,subtitle:m,variant:"primary"}),i&&t(L,{title:i.title,align:"center",children:t(T,{as:"p",level:"body",children:i.content})}),t(y,{}),h,(o||r)&&a(j,{direction:"row",gap:"tight",justify:"center",align:"center",children:[o&&a(P,{children:[t(u,{path:o,style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:b}),r&&t("span",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:" | "})]}),r&&t(u,{path:r,style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:S})]})]})}export{N as AdminLandingTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as o}from"react/jsx-runtime";import{Stack as
|
|
1
|
+
"use client";import{jsx as e,jsxs as o}from"react/jsx-runtime";import{Stack as r}from"@donotdev/components";const t=()=>o(r,{gap:"large",children:[e("h1",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700},children:"Dashboard"}),e("p",{style:{color:"var(--muted-foreground)"},children:"Dashboard template coming soon. This is a placeholder for the full dashboard implementation."})]});export{t as DashboardTemplate};
|
package/dist/HomeTemplate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as t,jsxs as
|
|
1
|
+
"use client";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{Button as i,CallToAction as a,Card as n,HeroSection as r,Section as c,Text as e}from"@donotdev/components";import{PageContainer as d}from"@donotdev/ui";function h(){return o(d,{children:[t(r,{title:"I AM HeroSection",subtitle:"I am the hero section component with gradient background and prominent call-to-action",variant:"primary"}),o(c,{title:"I am Section",gridCols:3,children:[t(n,{title:"I am Card1",children:t(e,{children:"I am the first card component. Cards are used to showcase content, features, or information in a contained format."})}),t(n,{title:"I am Card2",children:t(e,{children:"I am the second card component. Cards can contain any content including text, images, buttons, or other components."})}),t(n,{title:"I am Card3",children:t(e,{children:"I am the third card component. When placed inside a Section with gridCols, cards automatically arrange in a responsive grid layout."})})]}),t(a,{title:"I AM CallToAction",subtitle:"I am the call to action component used for conversion-focused sections with primary and secondary actions",primaryAction:t(i,{variant:"primary",children:"Primary Action"}),secondaryAction:t(i,{variant:"outline",children:"Secondary Action"})})]})}export{h as HomeTemplate};
|
package/dist/LoginTemplate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as o,jsxs as c}from"react/jsx-runtime";import{Card as t,Stack as n}from"@donotdev/components";import{useTranslation as g}from"@donotdev/core";import{useAuthVisibility as u}from"@donotdev/ui";const h=({title:r,subtitle:e,redirectTo:a})=>{const{shouldHide:l,isLoading:s,isReady:d}=u(),{t:i}=g("login");return l?o(t,{subtitle:e||i("login.description","Sign in to your account"),children:o("div",{className:"dndev-surface","data-variant":"destructive",style:{borderRadius:"var(--radius-lg)",border:"1px solid var(--destructive)",backgroundColor:"color-mix(in oklab, var(--destructive) 10%, transparent)",padding:"var(--gap-md)"},children:o("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--destructive-foreground)"},children:i("login.authNotAvailable","Authentication is not available. Please contact support if you believe this is an error.")})})}):s||!d?o(t,{title:r||i("login.title","Login"),subtitle:e||i("login.description","Sign in to your account"),children:o(n,{align:"center",justify:"center",style:{paddingTop:"var(--gap-lg)",paddingBottom:"var(--gap-lg)"},children:o("div",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:i("login.loading","Loading authentication...")})})}):o(t,{title:r||i("login.title","Login"),subtitle:e||i("login.description","Sign in to your account"),children:c(n,{children:[o("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:i("login.comingSoon","Login template coming soon. Redirect: {redirectTo}",{redirectTo:a||"/"})}),o("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:i("login.placeholder","This is a placeholder for the full login implementation with Firebase Auth integration.")})]})})};export{h as LoginTemplate};
|
package/dist/ProfileTemplate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as
|
|
1
|
+
"use client";import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Stack as i}from"@donotdev/components";const s=({customClaims:t})=>r(i,{gap:"large",children:[e("h1",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700},children:"Profile"}),e("p",{style:{color:"var(--muted-foreground)"},children:"Profile template coming soon. This is a placeholder for the full profile management implementation."}),t&&t.length>0&&r("div",{style:{fontSize:"var(--font-size-sm)"},children:[e("p",{style:{fontWeight:500},children:"Custom claims tracked:"}),e("ul",{style:{listStyleType:"disc",paddingInlineStart:"2.5rem"},children:t.map(l=>e("li",{children:l},l))})]})]});export{s as ProfileTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WhatsNewTemplate.d.ts","sourceRoot":"","sources":["../src/WhatsNewTemplate.tsx"],"names":[],"mappings":"AAkCA;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE;QACP,IAAI,EACA,OAAO,GACP,SAAS,GACT,YAAY,GACZ,SAAS,GACT,OAAO,GACP,UAAU,GACV,aAAa,CAAC;QAClB,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB,EAAE,CAAC;IACJ,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,SAAS,EACT,cAAqB,EACrB,iBAAwB,EACxB,UAAU,EACV,eAAe,GAChB,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"WhatsNewTemplate.d.ts","sourceRoot":"","sources":["../src/WhatsNewTemplate.tsx"],"names":[],"mappings":"AAkCA;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE;QACP,IAAI,EACA,OAAO,GACP,SAAS,GACT,YAAY,GACZ,SAAS,GACT,OAAO,GACP,UAAU,GACV,aAAa,CAAC;QAClB,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB,EAAE,CAAC;IACJ,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,SAAS,EACT,cAAqB,EACrB,iBAAwB,EACxB,UAAU,EACV,eAAe,GAChB,EAAE,qBAAqB,2CA4avB"}
|
package/dist/WhatsNewTemplate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as r,jsxs as n}from"react/jsx-runtime";import{useState as
|
|
1
|
+
"use client";import{jsx as r,jsxs as n}from"react/jsx-runtime";import{useState as x,useMemo as D}from"react";import{cn as k,Badge as o,BADGE_VARIANT as s,Card as p,Stack as i,Grid as f}from"@donotdev/components";import{useTranslation as N}from"@donotdev/core";function I({changelog:a,className:h,showNavigation:y=!0,showVersionBadges:l=!0,maxEntries:d,onVersionSelect:w}){const{t:c}=N("whatsNew"),[v,z]=x(null),u=D(()=>d?a.slice(0,d):a,[a,d]),g=e=>{switch(e){case"major":return{backgroundColor:"var(--destructive)",color:"var(--destructive-foreground)"};case"minor":return{backgroundColor:"var(--primary)",color:"var(--primary-foreground)"};case"patch":return{backgroundColor:"var(--success)",color:"var(--success-foreground)"};case"preview":return{backgroundColor:"var(--accent)",color:"var(--accent-foreground)"};case"beta":return{backgroundColor:"var(--warning)",color:"var(--warning-foreground)"};default:return{backgroundColor:"var(--muted)",color:"var(--muted-foreground)"}}},S=e=>{switch(e){case"added":return"\u{1F7E2}";case"changed":return"\u{1F7E1}";case"deprecated":return"\u{1F7E0}";case"removed":return"\u{1F534}";case"fixed":return"\u{1F527}";case"security":return"\u{1F512}";case"performance":return"\u26A1";default:return"\u2022"}},b=e=>{switch(e){case"added":return"var(--success)";case"changed":return"var(--warning)";case"deprecated":return"var(--warning)";case"removed":return"var(--destructive)";case"fixed":return"var(--primary)";case"security":return"var(--accent)";case"performance":return"var(--primary)";default:return"var(--muted-foreground)"}},C=e=>{z(e),w?.(e)},t=v?a.find(e=>e.version===v):u[0];return n("div",{className:k("dndev-w-full dndev-mx-auto",h),style:{maxWidth:"72rem"},children:[n("div",{className:"dndev-text-center",style:{marginBottom:"var(--gap-lg)"},children:[r("h1",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700,color:"var(--foreground)",marginBottom:"var(--gap-md)"},children:c("title","What's New in DnDev")}),r("p",{className:"dndev-mx-auto",style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)",maxWidth:"42rem"},children:c("subtitle","Stay up to date with the latest features, improvements, and fixes in the DoNotDev Framework")})]}),n(f,{cols:4,gap:"large",className:"dndev-grid-responsive-1-4",children:[y&&r("div",{style:{gridColumn:"span 1"},children:r(p,{title:r(i,{direction:"row",align:"center",gap:"tight",children:"\u{1F33F} Versions"}),children:r(i,{gap:"tight",children:u.map(e=>n("button",{onClick:()=>C(e.version),className:"dndev-w-full dndev-text-left dndev-surface","data-variant":t?.version===e.version?"accent":"default",style:{padding:"var(--gap-md)",borderInlineStart:t?.version===e.version?"2px solid var(--primary)":void 0,transition:"background-color 0.2s"},children:[n(i,{direction:"row",align:"center",justify:"between",style:{marginBottom:"var(--gap-sm)"},children:[r("span",{style:{fontFamily:"monospace",fontSize:"var(--font-size-sm)",fontWeight:500},children:e.version}),l&&r(o,{variant:s.SECONDARY,style:{fontSize:"var(--font-size-xs)",...g(e.type)},children:e.type})]}),n(i,{direction:"row",align:"center",gap:"tight",style:{fontSize:"var(--font-size-xs)",color:"var(--muted-foreground)"},children:["\u{1F4C5} ",new Date(e.date).toLocaleDateString()]}),r("div",{style:{fontSize:"var(--font-size-sm)",fontWeight:500,marginTop:"var(--gap-sm)",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.title})]},e.version))})})}),r("div",{style:{gridColumn:"span 3"},children:t&&r(p,{title:r(i,{direction:"row",align:"start",justify:"between",children:n("div",{children:[n(i,{direction:"row",align:"center",style:{marginBottom:"var(--gap-sm)"},children:[r("h2",{style:{fontSize:"var(--font-size-2xl)",fontWeight:700,color:"var(--foreground)"},children:t.title}),l&&r(o,{variant:s.SECONDARY,style:{fontSize:"var(--font-size-sm)",...g(t.type)},children:t.type})]}),n(i,{direction:"row",align:"center",style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:[n(i,{direction:"row",align:"center",gap:"tight",children:["\u{1F3F7}\uFE0F"," ",r("span",{style:{fontFamily:"monospace"},children:t.version})]}),n(i,{direction:"row",align:"center",gap:"tight",children:["\u{1F4C5} ",new Date(t.date).toLocaleDateString()]})]})]})}),subtitle:t.description,children:n(i,{children:[t.changes.map(e=>n(i,{children:[r("h3",{className:"dndev-flex dndev-items-center dndev-gap-sm",style:{fontSize:"var(--font-size-lg)",fontWeight:600,color:b(e.type)},children:n(i,{direction:"row",align:"center",gap:"tight",as:"span",children:[r("span",{children:S(e.type)}),r("span",{children:e.type.charAt(0).toUpperCase()+e.type.slice(1)})]})}),r(i,{as:"ul",gap:"tight",style:{marginInlineStart:"1.5rem"},children:e.items.map(m=>r("li",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:m},m))})]},e.type)),t.breaking&&t.breaking.length>0&&n("div",{style:{borderInlineStart:"4px solid var(--destructive)",paddingInlineStart:"var(--gap-md)",paddingTop:"var(--gap-sm)",paddingBottom:"var(--gap-sm)",backgroundColor:"color-mix(in oklab, var(--destructive) 10%, transparent)"},children:[r("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:600,color:"var(--destructive-foreground)",marginBottom:"var(--gap-sm)"},children:"\u26A0\uFE0F Breaking Changes"}),r(i,{as:"ul",gap:"tight",children:t.breaking.map(e=>r("li",{style:{fontSize:"var(--font-size-sm)",color:"var(--destructive-foreground)"},children:e},e))})]}),(t.contributors||t.pullRequests)&&r("div",{style:{paddingTop:"var(--gap-md)",borderTop:"1px solid var(--border)"},children:n(f,{cols:2,className:"dndev-grid-responsive-1-2",children:[t.contributors&&n("div",{children:[r("h4",{style:{fontWeight:500,fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)",marginBottom:"var(--gap-sm)"},children:"Contributors"}),r(i,{direction:"row",wrap:"wrap",gap:"tight",children:t.contributors.map(e=>r(o,{variant:s.OUTLINE,style:{fontSize:"var(--font-size-xs)"},children:e},e))})]}),t.pullRequests&&n("div",{children:[r("h4",{style:{fontWeight:500,fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)",marginBottom:"var(--gap-sm)"},children:"Pull Requests"}),r(i,{direction:"row",wrap:"wrap",gap:"tight",children:t.pullRequests.map(e=>n(o,{variant:s.OUTLINE,style:{fontSize:"var(--font-size-xs)"},children:["#",e]},e))})]})]})})]})})})]})]})}export{I as WhatsNewTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BillingSuccessTemplate.d.ts","sourceRoot":"","sources":["../../src/billing/BillingSuccessTemplate.tsx"],"names":[],"mappings":"AAqCA,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,KAAK,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,KAAK,EACL,QAAQ,EACR,SAAc,EACd,YAAoC,GACrC,EAAE,2BAA2B,
|
|
1
|
+
{"version":3,"file":"BillingSuccessTemplate.d.ts","sourceRoot":"","sources":["../../src/billing/BillingSuccessTemplate.tsx"],"names":[],"mappings":"AAqCA,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,KAAK,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,KAAK,EACL,QAAQ,EACR,SAAc,EACd,YAAoC,GACrC,EAAE,2BAA2B,2CAoR7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as i}from"react/jsx-runtime";import{CheckCircle as m,AlertCircle as S,ExternalLink as z}from"lucide-react";import{Card as a,Button as
|
|
1
|
+
"use client";import{jsx as e,jsxs as i}from"react/jsx-runtime";import{CheckCircle as m,AlertCircle as S,ExternalLink as z}from"lucide-react";import{Card as a,Button as g,BUTTON_VARIANT as x,Stack as r,Grid as N}from"@donotdev/components";import{useTranslation as T}from"@donotdev/core";import{PageContainer as u,useNavigate as B,useAuthSafe as k,useBillingVisibility as w,FeatureDisabled as C}from"@donotdev/ui";function P({namespace:h,title:o,subtitle:p,nextSteps:c=[],supportEmail:s="support@example.com"}){const{shouldHide:v}=w(),{t}=T([h,"billing"]),f=k("userSubscription"),y=B();if(v)return e(u,{variant:"docs",children:e(C,{featureName:"Billing Success",title:o||t("billing:templates.success.title","Payment Successful!"),description:t("billing:templates.success.notAvailable","Billing is not configured or available. Please contact support if you believe this is an error."),showContactSupport:!0,supportEmail:s})});const n=f,b=n?.status==="active";return e(u,{variant:"docs",children:i("div",{children:[i("div",{className:"dndev-text-center",style:{marginBottom:"var(--gap-lg)"},children:[e(r,{align:"center",justify:"center",style:{marginBottom:"var(--gap-md)"},children:b?e(m,{style:{width:"4rem",height:"4rem",color:"var(--success)"}}):e(S,{style:{width:"4rem",height:"4rem",color:"var(--warning)"}})}),e("h1",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700,marginBottom:"var(--gap-md)"},children:o||t("billing:templates.success.title","Payment Successful!")}),e("p",{style:{fontSize:"var(--font-size-xl)",color:"var(--muted-foreground)"},children:p||t("billing:templates.success.subtitle","Thank you for your purchase")})]}),n&&e(a,{style:{marginBottom:"var(--gap-lg)"},children:i("div",{children:[e("h2",{style:{fontSize:"var(--font-size-lg)",fontWeight:600,marginBottom:"var(--gap-md)"},children:t("billing:templates.success.subscriptionDetails","Subscription Details")}),e(r,{children:i(N,{cols:2,className:"dndev-grid-responsive-1-2",children:[i("div",{children:[e("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:t("billing:templates.success.plan","Plan")}),e("p",{style:{fontWeight:600,textTransform:"capitalize"},children:n.tier})]}),i("div",{children:[e("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:t("billing:templates.success.status","Status")}),e("p",{style:{fontWeight:600,textTransform:"capitalize"},children:n.status})]}),i("div",{children:[e("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:n.status==="active"?t("billing:templates.success.validUntil","Valid Until"):t("billing:templates.success.endedOn","Ended On")}),e("p",{style:{fontWeight:600},children:n.subscriptionEnd==null?t("billing:templates.success.lifetime","Lifetime"):new Date(n.subscriptionEnd).toLocaleDateString()})]})]})})]})}),c.length>0&&e(a,{style:{marginBottom:"var(--gap-lg)"},children:i("div",{children:[e("h2",{style:{fontSize:"var(--font-size-lg)",fontWeight:600,marginBottom:"var(--gap-md)"},children:t("billing:templates.success.whatsNext","What's Next?")}),e(r,{as:"ul",children:c.map(l=>i(r,{as:"li",direction:"row",align:"start",children:[e(m,{className:"dndev-size-md",style:{color:"var(--success)",marginInlineEnd:"var(--gap-md)",marginTop:"0.125rem",flexShrink:0}}),i("div",{className:"dndev-flex-1",children:[e("p",{style:{fontWeight:600},children:l.title}),e("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:l.description}),l.link&&e(g,{variant:x.LINK,style:{padding:0,height:"auto",marginTop:"var(--gap-sm)"},onClick:()=>{try{const d=new URL(l.link,window.location.origin);(d.protocol==="http:"||d.protocol==="https:")&&window.open(l.link,"_blank","noopener,noreferrer")}catch{}},icon:z,children:l.linkText||t("billing:templates.success.learnMore","Learn more")})]})]},l.title))})]})}),e(a,{children:e("div",{className:"dndev-text-center",style:{paddingTop:"var(--gap-lg)"},children:i("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:[t("billing:templates.success.needHelp","Need help? Contact us at")," ",e("a",{href:`mailto:${s}`,style:{color:"var(--primary)",textDecoration:"underline"},children:s})]})})}),e("div",{className:"dndev-text-center",style:{marginTop:"var(--gap-lg)"},children:e(g,{onClick:()=>y("/"),children:t("billing:templates.success.goToDashboard","Go to Dashboard")})})]})})}export{P as BillingSuccessTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutTemplate.d.ts","sourceRoot":"","sources":["../../src/billing/CheckoutTemplate.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckoutTemplate.d.ts","sourceRoot":"","sources":["../../src/billing/CheckoutTemplate.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAClC,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,OAAO,EACP,IAAgB,EAChB,KAAK,EACL,WAAW,EACX,eAAe,EACf,cAAc,EACd,cAAc,GACf,EAAE,yBAAyB,2CAsF3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as o}from"react/jsx-runtime";import{StripeCheckoutButton as
|
|
1
|
+
"use client";import{jsx as e,jsxs as o}from"react/jsx-runtime";import{StripeCheckoutButton as p}from"@donotdev/billing";import{Card as s,BUTTON_VARIANT as v,Stack as g}from"@donotdev/components";import{useTranslation as f}from"@donotdev/core";import{useBillingVisibility as k,FeatureDisabled as y}from"@donotdev/ui";function b({children:r,priceId:l,mode:c="payment",title:i,description:n,successRedirect:d,cancelRedirect:m,billingOptions:a}){const{shouldHide:u,isLoading:h}=k(),{t}=f("billing");return u?e(y,{featureName:"Checkout",title:i||t("templates.checkout.title"),description:t("templates.checkout.notAvailable","Stripe billing is not configured or available. Please contact support if you believe this is an error."),showContactSupport:!0,showRetry:!0,onRetry:()=>{window.location.reload()}}):h?e(s,{className:"dndev-mx-auto",style:{maxWidth:"42rem"},children:e("div",{className:"dndev-text-center",style:{paddingTop:"var(--gap-lg)"},children:e("p",{style:{color:"var(--muted-foreground)"},children:t("templates.checkout.loading","Loading checkout...")})})}):e("div",{children:o(s,{className:"dndev-mx-auto",style:{maxWidth:"42rem"},children:[o("div",{className:"dndev-text-center",children:[e("h1",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700,marginBottom:"var(--gap-md)"},children:i||t("templates.checkout.title")}),e("p",{style:{color:"var(--muted-foreground)"},children:n||t("templates.checkout.description")})]}),o(g,{gap:"large",style:{marginTop:"var(--gap-lg)"},children:[r&&e("div",{children:r}),l&&e("div",{children:e(p,{priceId:l,mode:c,successUrl:a?.successUrl||d||"/billing/success",cancelUrl:a?.cancelUrl||m||"/checkout",metadata:a?.metadata,allowPromotionCodes:a?.allowPromotionCodes,variant:v.DEFAULT,className:"dndev-w-full",children:t(c==="payment"?"templates.checkout.completePurchase":"templates.checkout.startSubscription")})})]})]})})}export{b as CheckoutPageTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentTemplate.d.ts","sourceRoot":"","sources":["../../src/billing/PaymentTemplate.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAcxD,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,OAAO,EACP,UAAU,EACV,SAAS,EACT,KAAK,EACL,QAAQ,EACR,MAAe,GAChB,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"PaymentTemplate.d.ts","sourceRoot":"","sources":["../../src/billing/PaymentTemplate.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAcxD,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,OAAO,EACP,UAAU,EACV,SAAS,EACT,KAAK,EACL,QAAQ,EACR,MAAe,GAChB,EAAE,oBAAoB,2CAsGtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as u}from"react/jsx-runtime";import{lazy as m,Suspense as
|
|
1
|
+
"use client";import{jsx as e,jsxs as u}from"react/jsx-runtime";import{lazy as m,Suspense as j}from"react";import{Stack as n,Grid as w,Text as l,Section as x}from"@donotdev/components";import{useTranslation as T,maybeTranslate as h}from"@donotdev/core";import{PageContainer as o,useBillingVisibility as L,FeatureDisabled as N}from"@donotdev/ui";const _=m(()=>import("@donotdev/billing").then(i=>({default:i.ProductCard}))),B=m(()=>import("@donotdev/billing").then(i=>({default:i.SecurityNotice})));function z({namespace:i,billing:s,successUrl:g,cancelUrl:b,title:c,subtitle:d,layout:y="grid"}){const{shouldHide:f,isLoading:v}=L(),{t:r}=T([i,"billing"]),p=c?h(r,c):r("billing:templates.purchase.title"),C=d?h(r,d):r("billing:templates.purchase.subtitle");if(f)return e(o,{variant:"standard",children:e(N,{featureName:"Billing",title:p,description:r("billing:templates.purchase.notAvailable","Stripe billing is not configured or available. Please contact support if you believe this is an error."),showContactSupport:!0,showRetry:!0,onRetry:()=>{window.location.reload()}})});if(v)return e(o,{variant:"standard",children:e(n,{align:"center",children:e(l,{variant:"muted",children:r("billing:templates.purchase.loading","Loading billing...")})})});const S=Object.keys(s).length,P=y==="grid"?S===2?2:3:void 0;return e(o,{variant:"standard",children:e(j,{fallback:e(n,{align:"center",children:e(l,{variant:"muted",children:"Loading..."})}),children:u(n,{gap:"large",align:"center",children:[u(n,{align:"center",children:[e(l,{as:"h1",level:"h1",children:p}),e(l,{as:"h2",level:"h2",variant:"muted",children:C})]}),e(x,{children:e(w,{cols:P,gap:"large",children:Object.entries(s).map(([a,t])=>e(_,{namespace:i,configKey:a,id:a,name:t.name,price:t.price,currency:t.currency,description:t.description||"",features:t.features||[],mode:"payment",priceId:t.priceId,allowPromotionCodes:t.allowPromotionCodes??!0,metadata:{billingConfigKey:a,productType:"payment",source:"payment_template"},successUrl:g,cancelUrl:b},a))})}),e(B,{})]})})})}export{z as PaymentTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriptionTemplate.d.ts","sourceRoot":"","sources":["../../src/billing/SubscriptionTemplate.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAOxD;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,MAAM,CAAC,GAAG;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,KAAK,EACL,UAA+B,EAC/B,SAA2B,EAC3B,KAAK,EACL,QAAQ,GACT,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"SubscriptionTemplate.d.ts","sourceRoot":"","sources":["../../src/billing/SubscriptionTemplate.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAOxD;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,MAAM,CAAC,GAAG;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,KAAK,EACL,UAA+B,EAC/B,SAA2B,EAC3B,KAAK,EACL,QAAQ,GACT,EAAE,yBAAyB,2CAoN3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as r,jsxs as o}from"react/jsx-runtime";import{useState as h}from"react";import{ProductCard as y}from"@donotdev/billing";import{Button as x,BUTTON_VARIANT as N,Badge as T,BADGE_VARIANT as w,Stack as S,Grid as B}from"@donotdev/components";import{useTranslation as I}from"@donotdev/core";import{PageContainer as s,useBillingVisibility as C,FeatureDisabled as z}from"@donotdev/ui";function L({namespace:a,plans:c,successUrl:m="/billing/success",cancelUrl:u="/subscription",title:l,subtitle:g}){const{shouldHide:p,isLoading:b}=C(),{t:i}=I([a,"billing"]),[n,v]=h("year");if(p)return r(s,{variant:"standard",children:r(z,{featureName:"Subscriptions",title:l||i("billing:templates.subscription.title"),description:i("billing:templates.subscription.notAvailable","Stripe billing is not configured or available. Please contact support if you believe this is an error."),showContactSupport:!0,showRetry:!0,onRetry:()=>{window.location.reload()}})});if(b)return r(s,{variant:"standard",children:r("div",{className:"dndev-text-center",style:{paddingTop:"3rem",paddingBottom:"3rem"},children:r("p",{style:{color:"var(--muted-foreground)"},children:i("billing:templates.subscription.loading","Loading subscriptions...")})})});const d=c.filter(t=>t.interval===n),f=()=>{const t=d.length;return t===1?{cols:1,className:"dndev-max-w-md dndev-mx-auto"}:t===2?{cols:2,className:"dndev-max-w-4xl dndev-mx-auto dndev-grid-responsive-1-2"}:t===3?{cols:3,className:"dndev-grid-responsive-1-3"}:t===4?{cols:4,className:"dndev-grid-responsive-1-2-4"}:{cols:4,className:"dndev-grid-responsive-1-2-3-4"}};return r(s,{variant:"standard",children:o("div",{children:[o("div",{className:"dndev-text-center",style:{marginBottom:"3rem"},children:[r("h1",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700,marginBottom:"1rem"},children:l||i("billing:templates.subscription.title")}),r("p",{style:{fontSize:"var(--font-size-xl)",color:"var(--muted-foreground)",marginBottom:"2rem"},children:g||i("billing:templates.subscription.subtitle")}),o(S,{direction:"row",align:"center",justify:"center",children:[r("span",{style:{fontSize:"var(--font-size-sm)",fontWeight:500,color:n==="month"?"var(--primary)":"var(--muted-foreground)"},children:i("billing:templates.subscription.billingToggle.monthly")}),r(x,{variant:N.OUTLINE,onClick:()=>v(n==="month"?"year":"month"),className:"dndev-relative",role:"switch","aria-checked":n==="year","aria-label":i("billing:templates.subscription.billingToggle.ariaLabel","Toggle billing interval"),children:r("div",{style:{width:"3rem",height:"1.5rem",backgroundColor:n==="year"?"var(--primary)":"rgb(229, 231, 235)",borderRadius:"9999px",transition:"background-color 0.2s"},children:r("div",{style:{width:"1.25rem",height:"1.25rem",backgroundColor:"var(--background)",borderRadius:"9999px",boxShadow:"var(--shadow-sm)",transform:n==="year"?"translateX(1.5rem)":"translateX(0.125rem)",marginTop:"0.125rem",transition:"transform 0.2s"}})})}),o("span",{style:{fontSize:"var(--font-size-sm)",fontWeight:500,color:n==="year"?"var(--primary)":"var(--muted-foreground)"},children:[i("billing:templates.subscription.billingToggle.yearly"),r(T,{variant:w.SECONDARY,style:{marginInlineStart:"0.5rem"},children:i("billing:templates.subscription.billingToggle.save20")})]})]})]}),(()=>{const t=f();return r(B,{cols:t.cols,className:t.className,children:d.map(e=>r(y,{namespace:a,configKey:e.id,id:e.id,name:e.name,price:e.price,currency:e.currency,description:e.description??"",features:e.features??[],popular:e.popular,mode:"subscription",priceId:e.priceId,metadata:{billingConfigKey:e.id,planId:e.id,planName:e.name,billingInterval:e.interval,productType:"subscription",source:"subscription_template",...e.metadata},successUrl:m,cancelUrl:u,allowPromotionCodes:!0},e.id))})})()]})})}export{L as SubscriptionTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as i,jsxs as
|
|
1
|
+
"use client";import{jsx as i,jsxs as r}from"react/jsx-runtime";import{SubscriptionManager as a}from"@donotdev/billing";import{useTranslation as m}from"@donotdev/core";import{PageContainer as c}from"@donotdev/ui";function b({namespace:e,meta:p,availablePlans:n,allowPlanChange:o=!1,title:l,subtitle:s}){const{t}=m([e,"billing"]);return i(c,{variant:"docs",children:r("div",{children:[r("div",{style:{marginBottom:"2rem"},children:[i("h1",{style:{fontSize:"var(--font-size-2xl)",fontWeight:700,marginBottom:"0.5rem"},children:l||t("billing:subscription.title")}),i("p",{style:{color:"var(--muted-foreground)"},children:s||t("billing:subscription.subtitle")})]}),i(a,{availablePlans:n,allowPlanChange:o})]})})}export{b as UserSubscriptionTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlogList.d.ts","sourceRoot":"","sources":["../../src/blog/BlogList.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,oDAAoD;IACpD,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB;
|
|
1
|
+
{"version":3,"file":"BlogList.d.ts","sourceRoot":"","sources":["../../src/blog/BlogList.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,oDAAoD;IACpD,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB;AA6BD;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,aAAa,qTAwI5D"}
|
package/dist/blog/BlogList.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as t,jsxs as n,Fragment as u}from"react/jsx-runtime";import{useState as j}from"react";import{Card as h,Grid as x,Stack as d,Tag as f,Text as c}from"@donotdev/components";import{useTranslation as w}from"@donotdev/core";import{Link as v}from"@donotdev/ui";function p({post:i,readMoreLabel:o}){return n(d,{direction:"row",justify:"between",align:"center",style:{width:"100%"},children:[i.tags.length>0&&t(c,{as:"span",level:"caption",variant:"muted",children:i.tags.join(" \xB7 ")}),n(c,{as:"span",level:"small",variant:"accent",children:[o," \u2192"]})]})}function F({posts:i,emptyState:o}){const{t:r}=w("blog"),[l,m]=j(null);if(i.length===0)return o||t(c,{as:"p",variant:"muted",align:"center",children:r("empty")});const s=[...new Set(i.flatMap(e=>e.tags))].sort(),b=l?i.filter(e=>e.tags.includes(l)):i,[a,...g]=b;return n(d,{gap:"large",children:[s.length>0&&n(d,{direction:"row",gap:"tight",wrap:"wrap",justify:"center",children:[t(f,{interactive:!0,variant:l===null?"accent":"outline",onClick:()=>m(null),size:"sm",children:r("all")}),s.map(e=>t(f,{interactive:!0,variant:l===e?"accent":"outline",onClick:()=>m(e===l?null:e),size:"sm",children:e},e))]}),a&&t(v,{path:`/blog/${a.slug}`,children:t(h,{clickable:!0,title:a.meta.title,subtitle:[a.meta.date,`${a.readingTime} ${r("minuteRead")}`].filter(Boolean).join(" \xB7 "),content:n(u,{children:[a.meta.image&&t("img",{src:a.meta.image,alt:a.meta.title,loading:"eager",decoding:"async",style:{width:"100%",maxHeight:"360px",objectFit:"cover",borderRadius:"var(--radius-md)",marginBottom:"var(--gap-md)"}}),t(c,{as:"p",children:a.meta.description})]}),footer:t(p,{post:a,readMoreLabel:r("readMore")})})}),g.length>0&&t(x,{cols:[1,1,2,3],children:g.map(e=>t(v,{path:`/blog/${e.slug}`,children:t(h,{clickable:!0,title:e.meta.title,subtitle:[e.meta.date,`${e.readingTime} ${r("minuteRead")}`].filter(Boolean).join(" \xB7 "),content:n(u,{children:[e.meta.image&&t("img",{src:e.meta.image,alt:e.meta.title,loading:"lazy",decoding:"async",style:{width:"100%",maxHeight:"180px",objectFit:"cover",borderRadius:"var(--radius-md)",marginBottom:"var(--gap-sm)"}}),t(c,{as:"p",level:"small",children:e.meta.description})]}),footer:t(p,{post:e,readMoreLabel:r("readMore")})})},e.slug))})]})}export{F as BlogList};
|
package/dist/blog/BlogPost.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as t,jsxs as i,Fragment as c}from"react/jsx-runtime";import{ArrowLeft as r}from"lucide-react";import{Button as o,HeroSection as g,Section as l,Text as n}from"@donotdev/components";import{useTranslation as s}from"@donotdev/core";import{Link as m}from"@donotdev/ui";import{MarkdownViewer as h}from"../components/MarkdownViewer";function j({post:e}){const{t:a}=s("blog");if(!e)return i(l,{children:[t(n,{as:"p",variant:"muted",align:"center",children:a("notFound")}),t(m,{path:"/blog",children:t(o,{variant:"ghost",icon:r,children:a("backToBlog")})})]});const d=[e.meta.date?`${a("publishedOn")} ${e.meta.date}`:null,`${e.readingTime} ${a("minuteRead")}`].filter(Boolean).join(" \xB7 ");return i(c,{children:[t(g,{title:e.meta.title}),i(l,{children:[t(m,{path:"/blog",children:t(o,{variant:"ghost",icon:r,children:a("backToBlog")})}),t(n,{as:"p",level:"small",variant:"muted",children:d}),e.tags.length>0&&t(n,{as:"p",level:"caption",variant:"muted",children:e.tags.join(" \xB7 ")}),e.meta.image&&t("img",{src:e.meta.image,alt:e.meta.title,loading:"eager",decoding:"async",style:{width:"100%",maxHeight:"480px",objectFit:"cover",borderRadius:"var(--radius-md)",marginTop:"var(--gap-md)",marginBottom:"var(--gap-md)"}}),t(h,{content:e.content})]})]})}export{j as BlogPostView};
|
package/dist/blog/blog-loader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const
|
|
2
|
-
`)){const l=
|
|
1
|
+
const p=200;function g(s){const t=s.trim().split(/\s+/).length;return Math.max(1,Math.ceil(t/200))}function f(s){return s?s.split(",").map(t=>t.trim().toLowerCase()).filter(Boolean):[]}function d(s){const t=s.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n([\s\S]*)$/);if(!t)return{meta:{title:"",description:"",date:""},content:s};const o={title:"",description:"",date:""},r=t[1]??"";for(const a of r.split(`
|
|
2
|
+
`)){const l=a.indexOf(":");if(l===-1)continue;const e=a.slice(0,l).trim(),n=a.slice(l+1).trim();e&&(o[e]=n)}return{meta:o,content:t[2]??""}}function m(s){const t=s.split("/").pop()?.replace(/\.md$/,"");if(!t)return null;const o=t.lastIndexOf("_");if(o===-1)return{slug:t,lang:"en"};const r=t.slice(o+1),a=t.slice(0,o);return r.length>5?{slug:t,lang:"en"}:{slug:a,lang:r}}function h(s,t){const o=new Map;for(const[e,n]of Object.entries(s)){const i=m(e);i&&(o.has(i.slug)||o.set(i.slug,new Map),o.get(i.slug).set(i.lang,n))}const r=[];for(const[e,n]of o){const i=n.get(t)||n.get("en");if(!i)continue;const{meta:c,content:u}=d(i);r.push({slug:e,meta:c,content:u,readingTime:g(u),tags:f(c.tags)})}r.sort((e,n)=>!e.meta.date&&!n.meta.date?0:e.meta.date?n.meta.date?n.meta.date.localeCompare(e.meta.date):-1:1);const a=new Set;for(const e of r)for(const n of e.tags)a.add(n);const l=[...a].sort();return{getAllPosts:()=>r,getPostBySlug:e=>r.find(n=>n.slug===e)||null,getAllTags:()=>l,getPostsByTag:e=>r.filter(n=>n.tags.includes(e.toLowerCase()))}}export{h as createBlogLoader,d as parseFrontmatter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownViewer.d.ts","sourceRoot":"","sources":["../../src/components/MarkdownViewer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MarkdownViewer.d.ts","sourceRoot":"","sources":["../../src/components/MarkdownViewer.tsx"],"names":[],"mappings":"AAqDA,MAAM,WAAW,mBAAmB;IAClC,2BAA2B;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAyFD,eAAO,MAAM,cAAc,2DAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as c}from"react/jsx-runtime";import g,{domToReact as u,Element as o}from"html-react-parser";import{marked as E}from"marked";import{memo as R,useMemo as h}from"react";import{Code as _,cn as x}from"@donotdev/components";import{Link as S}from"@donotdev/ui";const w=/<script[\s\S]*?<\/script>/gi,b=/<iframe[\s\S]*?(?:<\/iframe>|\/?>)/gi,j=/<object[\s\S]*?(?:<\/object>|\/?>)/gi,k=/<embed[\s\S]*?(?:\/?>)/gi,T=/<svg[^>]*\s+on\w+[\s\S]*?(?:<\/svg>|\/?>)/gi,v=/\s+on\w+\s*=\s*["'][^"']*["']/gi,y=/\s+(?:xlink:)?href\s*=\s*["']\s*(?:javascript:|&#\d+;|&#x[0-9a-f]+;)[^"']*["']/gi,M=/\s+src\s*=\s*["']\s*(?:javascript:|&#\d+;|&#x[0-9a-f]+;)[^"']*["']/gi;function V(e){return e.replace(w,"").replace(b,"").replace(j,"").replace(k,"").replace(T,"").replace(v,"").replace(y,"").replace(M,"")}function m(e){let n="";for(const r of e.children)r.type==="text"?n+=r.data:r instanceof o&&(n+=m(r));return n}const C=({content:e,className:n})=>{const r=h(()=>{if(!e)return null;const p=E.parse(e,{async:!1,gfm:!0,breaks:!0}),d=V(p);return g(d,{replace(l){if(!(l instanceof o))return;const{name:a,attribs:i,children:f}=l;if(a==="pre"){const t=f.find(s=>s instanceof o&&s.name==="code");if(t){const s=/language-(\w+)/.exec(t.attribs?.class||"")?.[1]||"text";return c(_,{language:s,children:m(t).replace(/\n$/,"")})}}if(a==="a"){const t=i?.href||"";return c(S,{path:t,children:u(f)})}if(a==="img"){const t=i?.src||"",s=i?.alt||"";return c("img",{src:t,alt:s,loading:"lazy",decoding:"async",style:{maxWidth:"100%",height:"auto"}})}}})},[e]);return r?c("div",{className:x("prose",n),children:r}):null},D=R(C);export{D as MarkdownViewer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarCardListTemplate.d.ts","sourceRoot":"","sources":["../../src/crud/CarCardListTemplate.tsx"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAY1D,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CACpD,mBAAmB,EACnB,MAAM,CACP;IACC,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8GAA8G;IAC9G,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,KAAK,EACL,WAAW,EACX,QAAQ,EACR,OAAO,EACP,IAAmB,EACnB,SAA0B,EAC1B,MAAM,EACN,WAAmB,EACnB,SAAkB,EAClB,UAAoB,EACpB,UAAqB,EACrB,YAAwB,EACxB,SAAkB,EAClB,iBAAkC,EAClC,aAA0B,EAC1B,UAAoB,EACpB,aAAyB,EACzB,MAAM,EACN,gBAAyB,EACzB,WAAmB,GACpB,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"CarCardListTemplate.d.ts","sourceRoot":"","sources":["../../src/crud/CarCardListTemplate.tsx"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAY1D,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CACpD,mBAAmB,EACnB,MAAM,CACP;IACC,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8GAA8G;IAC9G,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,KAAK,EACL,WAAW,EACX,QAAQ,EACR,OAAO,EACP,IAAmB,EACnB,SAA0B,EAC1B,MAAM,EACN,WAAmB,EACnB,SAAkB,EAClB,UAAoB,EACpB,UAAqB,EACrB,YAAwB,EACxB,SAAkB,EAClB,iBAAkC,EAClC,aAA0B,EAC1B,UAAoB,EACpB,aAAyB,EACzB,MAAM,EACN,gBAAyB,EACzB,WAAmB,GACpB,EAAE,wBAAwB,2CA0Z1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,jsxs as
|
|
1
|
+
"use client";import{jsx as e,jsxs as n,Fragment as pe}from"react/jsx-runtime";import{useMemo as he,useCallback as P}from"react";import{Heart as q,Calendar as ve,Gauge as ye,Fuel as we,Sliders as Fe}from"lucide-react";import{Grid as be,Card as Ce,Stack as i,Text as o,Section as J,Button as xe,Spinner as Ve}from"@donotdev/components";import{useTranslation as K,getListCardFieldNames as ke}from"@donotdev/core";import{useNavigate as Se}from"@donotdev/ui";import{useCrudCardList as je,useCrudFilters as Te,EntityFilters as Ne,matchesFilter as $e,useEntityFavorites as ze,formatValue as j}from"@donotdev/crud";function Ue({entity:l,title:Le,description:Oe,basePath:Q,onClick:p,cols:W=[1,2,3,4],staleTime:X=1e3*60*30,filter:h,hideFilters:Y=!1,makeField:Z="make",modelField:ee="model",imageField:te="images",mileageField:re="mileage",yearField:le="year",transmissionField:T="transmission",fuelTypeField:N="fuelType",priceField:$="price",subtitleField:ne="variant",locale:ie,imageAspectRatio:ae="16/9",hideSection:oe=!1}){const z=Se(),L=Q??`/${l.collection}`,O=l.collection,{t:g,i18n:se}=K([l.namespace,"crud"]),{t:a}=K("crud"),ce=ie||se?.language?.replace("_","-")||"en-US",{data:de,loading:A}=je(l,{staleTime:X}),v=de?.items||[],{isFavorite:ue,toggleFavorite:ge,favoritesFilter:I}=ze({collection:O}),{showFavoritesOnly:d,setShowFavoritesOnly:fe,filters:y}=Te({collection:O}),D=P(r=>Object.keys(y).length===0?!0:Object.entries(y).every(([t,f])=>{const m=r[t],F=l.fields[t]?.type||"text";return $e(m,f,F)}),[y,l.fields]),u=he(()=>{let r=v;return r=r.filter(D),d&&(r=r.filter(I)),h&&(r=r.filter(h)),r},[v,D,d,I,h]),me=P(r=>{p?p(r):z(`${L}/${r}`)},[L,z,p]),w=g("name",{defaultValue:l.name});return n(pe,{children:[!Y&&e(J,{title:a("filters.title",{entity:w,defaultValue:`Browse ${w} - Filters`}),collapsible:!0,defaultOpen:!0,children:n(i,{direction:"column",children:[e(xe,{variant:d?"primary":"outline",icon:e(q,{size:18}),onClick:()=>fe(!d),children:d?a("favorites.showAll",{defaultValue:"Show All"}):a("favorites.showFavorites",{defaultValue:"Show Favorites"})}),e(Ne,{entity:l,data:v,fieldsToFilter:ke(l)})]})}),(()=>{const r=A?e(i,{align:"center",justify:"center",style:{padding:"var(--gap-3xl)"},children:e(Ve,{})}):u.length===0?n(i,{align:"center",justify:"center",style:{padding:"var(--gap-3xl)",textAlign:"center"},children:[e(o,{level:"h3",style:{color:"var(--muted-foreground)"},children:a("emptyState.title",{defaultValue:`No ${l.name.toLowerCase()} found`})}),e(o,{style:{color:"var(--muted-foreground)"},children:a("emptyState.description",{defaultValue:`No ${l.name.toLowerCase()} available at this time.`})})]}):e(be,{cols:W,children:u.map(t=>{if(t==null)return null;const f=t[te],m=typeof f=="string"?f:null,R=t[Z],F=t[ee],c=t[re],b=t[le],_=t[T],B=t[N],E=t[$],G=l.fields[$]??void 0,U=t[ne??"variant"],C=ue(t.id),H=l.fields[T],M=l.fields[N],x=H&&_!=null?j(_,H,g,{compact:!0}):null,V=M&&B!=null?j(B,M,g,{compact:!0}):null,k=[R,F].filter(Boolean).join(" ");return n(Ce,{clickable:!0,onClick:()=>me(t.id),elevated:!0,style:{position:"relative",padding:0,overflow:"hidden"},children:[e("button",{type:"button",onClick:s=>{s.stopPropagation(),ge(t.id)},style:{position:"absolute",top:"var(--gap-sm)",insetInlineEnd:"var(--gap-sm)",zIndex:10,cursor:"pointer",padding:"var(--gap-xs)",borderRadius:"var(--radius-full)",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},"aria-label":C?a("favorites.remove",{defaultValue:"Remove from favorites"}):a("favorites.add",{defaultValue:"Add to favorites"}),children:e(q,{fill:C?"#ef4444":"#ffffff",stroke:C?"#ef4444":"var(--muted-foreground)",style:{width:"var(--icon-md)",height:"var(--icon-md)",transition:"fill 0.2s, stroke 0.2s"}})}),m&&e("div",{style:{width:"100%",aspectRatio:ae,overflow:"hidden"},children:e("img",{src:m,alt:k||w,style:{width:"100%",height:"100%",objectFit:"cover"}})}),n(i,{direction:"column",gap:"tight",style:{padding:"var(--gap-md)"},children:[k&&e(o,{level:"h4",weight:"semibold",children:k}),U&&e(o,{variant:"muted",level:"small",children:U}),E!=null&&G!=null&&(()=>{const s=G;if(!s)return null;const S=j(E,s,g,{compact:!0});return e("div",{style:{marginTop:"var(--gap-xs)",textAlign:"end"},children:typeof S=="string"?e(o,{variant:"accent",align:"end",weight:"bold",children:S}):S})})(),n(i,{direction:"column",gap:"tight",style:{marginTop:"var(--gap-sm)"},children:[(b||c)&&n(i,{direction:"row",gap:"tight",align:"center",children:[b&&n(i,{direction:"row",gap:"tight",align:"center",children:[e(ve,{size:16,style:{color:"var(--muted-foreground)"}}),e(o,{level:"small",children:b})]}),c&&n(i,{direction:"row",gap:"tight",align:"center",children:[e(ye,{size:16,style:{color:"var(--muted-foreground)"}}),e(o,{level:"small",children:(()=>{const s=typeof c=="number"?c:Number(c);if(isNaN(s))return String(c)+" km";try{return new Intl.NumberFormat(ce).format(s)+" km"}catch{return String(s)+" km"}})()})]})]}),(V||x)&&n(i,{direction:"row",gap:"tight",align:"center",children:[V&&n(i,{direction:"row",gap:"tight",align:"center",children:[e(we,{size:16,style:{color:"var(--muted-foreground)"}}),e(o,{level:"small",children:V})]}),x&&n(i,{direction:"row",gap:"tight",align:"center",children:[e(Fe,{size:16,style:{color:"var(--muted-foreground)"}}),e(o,{level:"small",children:x})]})]})]})]})]},t.id)})});return oe?r:e(J,{title:A?a("results.title.fetching",{defaultValue:"Fetching..."}):a("results.title.count",{count:u.length,defaultValue:u.length===1?"Found 1 item":`Found ${u.length} items`}),collapsible:!0,defaultOpen:!0,children:r})})()]})}export{Ue as CarCardListTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarDetailTemplate.d.ts","sourceRoot":"","sources":["../../src/crud/CarDetailTemplate.tsx"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,WAAW,sBAAsB;IACrC,gCAAgC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uCAAuC;IACvC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oFAAoF;IACpF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAOD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,EAAE,EAAE,MAAM,EACV,cAAc,EACd,aAAa,EACb,aAAiC,EACjC,MAAM,EACN,SAAkB,EAClB,UAAoB,EACpB,YAAwB,EACxB,SAAkB,EAClB,YAAwB,EACxB,aAA0B,EAC1B,iBAAkC,EAClC,UAAoB,EACpB,WAAsB,EACtB,gBAAgB,EAChB,YAAsB,EACtB,aAAa,GACd,EAAE,sBAAsB,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"CarDetailTemplate.d.ts","sourceRoot":"","sources":["../../src/crud/CarDetailTemplate.tsx"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,WAAW,sBAAsB;IACrC,gCAAgC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uCAAuC;IACvC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oFAAoF;IACpF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAOD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,EAAE,EAAE,MAAM,EACV,cAAc,EACd,aAAa,EACb,aAAiC,EACjC,MAAM,EACN,SAAkB,EAClB,UAAoB,EACpB,YAAwB,EACxB,SAAkB,EAClB,YAAwB,EACxB,aAA0B,EAC1B,iBAAkC,EAClC,UAAoB,EACpB,WAAsB,EACtB,gBAAgB,EAChB,YAAsB,EACtB,aAAa,GACd,EAAE,sBAAsB,GAAG,YAAY,CAogBvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as e,jsxs as l}from"react/jsx-runtime";import{useState as Y,useEffect as ft,useMemo as C,useCallback as gt}from"react";import{Share2 as pt,Heart as mt}from"lucide-react";import{Grid as P,Card as z,Stack as d,Text as s,Section as N,Button as D,ImageGallery as vt,Spinner as St}from"@donotdev/components";import{PageContainer as _,Link as bt,useRouteParam as yt,useNavigate as Ct}from"@donotdev/ui";import{useTranslation as B}from"@donotdev/core";import{useCrud as wt,useCrudCardList as xt,formatValue as k,useRelatedItems as It,useEntityFavorites as Ut}from"@donotdev/crud";import{InquiryFormTemplate as Dt}from"./InquiryFormTemplate";function $t({entity:i,id:Z,customerEntity:A,inquiryEntity:E,relatedFields:F=["make","price"],locale:tt,makeField:p="make",modelField:m="model",variantField:L="variant",yearField:f="year",mileageField:v="mileage",fuelTypeField:w="fuelType",transmissionField:x="transmission",priceField:u="price",imagesField:R="images",descriptionField:T,contextField:et="carId",pageNamespace:rt}){const nt=yt("id"),S=Z||nt||"",it=Ct(),ot=i.namespace||`entity-${i.name.toLowerCase()}`,{t:a,i18n:at}=B([ot,"crud"]),ct=rt||i.collection,{t:o}=B(ct),{t:kt}=B("crud"),V=tt||at?.language?.replace("_","-")||"en-US",{get:M}=wt(i),[r,lt]=Y(null),[W,I]=Y("pending"),{data:st}=xt(i,{staleTime:1e3*60*30}),{isFavorite:ut,toggleFavorite:ht}=Ut({collection:i.collection}),q=ut(S),U=C(()=>i.fields[u],[i.fields,u]),j=gt(t=>t==null?"\u2014":new Intl.NumberFormat(V).format(t)+" km",[V]),G=C(()=>{if(T)return T;const t=`description_${V}`;return i.fields[t]?t:i.fields.description?"description":null},[T,V,i.fields]),H=C(()=>{const t=r?.[R];return t?Array.isArray(t)?t.map(n=>typeof n=="object"&&n&&"fullUrl"in n?{fullUrl:n.fullUrl,thumbUrl:n.thumbUrl}:{fullUrl:n,thumbUrl:n}):[{fullUrl:t,thumbUrl:t}]:[]},[r,R]),g=C(()=>{if(!r)return"";const t=r[p]||"",n=r[m]||"",c=r[L]||"";return[t,n,c].filter(Boolean).join(" ")},[r,p,m,L]),O=C(()=>{if(!r)return[];const t=[],n=r[f];n!=null&&t.push({label:a(f),value:String(n)});const c=r[v];c!=null&&t.push({label:a(v),value:j(c)});const b=r[w];if(b&&i.fields[w]){const h=k(b,i.fields[w],a,{compact:!0});t.push({label:a(w),value:typeof h=="string"?h:String(b)})}const y=r[x];if(y&&i.fields[x]){const h=k(y,i.fields[x],a,{compact:!0});t.push({label:a(x),value:typeof h=="string"?h:String(y)})}return t},[r,f,v,w,x,i.fields,a,j]),{items:J}=It(i,r,st?.items||[],F,{limit:3,tolerance:.3}),K=C(()=>{if(!r)return g;const t=[];if(r[p]&&t.push(String(r[p])),r[m]&&t.push(String(r[m])),r[f]&&t.push(String(r[f])),r[v]&&t.push(j(r[v])),r[u]&&U){const n=r[u],c=k(n,U,a,{asString:!0});t.push(typeof c=="string"?c:String(r[u]))}return t.length>0?t.join(" \u2022 "):g},[r,p,m,f,v,u,U,j,a,g]);ft(()=>{if(!S){I("error");return}I("pending"),M(S).then(t=>{t?(lt(t),I("success")):I("error")}).catch(()=>{I("error")})},[S,M]);const dt=async()=>{try{navigator.share?await navigator.share({title:g,url:window.location.href}):await navigator.clipboard.writeText(window.location.href)}catch(t){if(t instanceof Error&&t.name==="AbortError")return}},Q=G&&r?r[G]:null;return W==="pending"?e(_,{children:e(St,{overlay:!0})}):W==="error"||!r?e(_,{children:l(d,{direction:"column",gap:"large",style:{padding:"var(--gap-xl) 0",textAlign:"center"},children:[e(s,{level:"h2",children:o("notFound","Vehicle not found")}),e(bt,{path:"/",children:e(D,{variant:"primary",children:o("backToHome","Back to home")})})]})}):l(_,{children:[e(N,{children:l(P,{cols:[1,1,2,2],gap:"large",children:[e("div",{children:H.length>0?e(vt,{images:H,altPrefix:g}):e("div",{style:{width:"100%",aspectRatio:"16/9",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"var(--muted)",borderRadius:"var(--radius-lg)"},children:e(s,{variant:"muted",children:o("noImages","No images")})})}),l(d,{direction:"column",gap:"large",children:[l(d,{direction:"column",gap:"tight",children:[e(d,{direction:"row",gap:"tight",align:"center",children:e(s,{level:"h1",style:{margin:0},children:g})}),e("div",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700,color:"var(--accent)"},children:(()=>{const t=r[u];if(t==null||!U)return null;const n=k(t,U,a,{});return typeof n=="string"?e(s,{variant:"accent",weight:"bold",style:{fontSize:"var(--font-size-3xl)"},children:n}):n})()})]}),O.length>0&&e(z,{variant:"glass",children:e(P,{cols:2,children:O.map(({label:t,value:n})=>l(d,{direction:"column",gap:"tight",children:[e(s,{variant:"muted",style:{fontSize:"var(--font-size-sm)"},children:t}),e(s,{style:{fontWeight:500},children:n})]},t))})}),l(d,{direction:"row",children:[A&&E?e(D,{variant:"primary",style:{flex:1},onClick:()=>{const t=document.getElementById("inquiry-form");t&&t.scrollIntoView({behavior:"smooth",block:"start"})},children:o("contactUs","Contact us")}):e(D,{variant:"primary",style:{flex:1},disabled:!0,children:o("contactUs","Contact us")}),e(D,{variant:"outline",icon:e(pt,{size:18}),onClick:dt,children:o("share","Share")}),e(D,{variant:q?"primary":"outline",icon:e(mt,{size:18}),onClick:()=>ht(S),children:q?o("saved","Saved"):o("save","Save")})]})]})]})}),Q&&e(N,{title:o("description","Description"),children:e(z,{variant:"glass",children:e(s,{style:{whiteSpace:"pre-wrap",lineHeight:1.7},children:Q})})}),A&&E&&e(N,{id:"inquiry-form",title:o("interested","Interested?"),children:e(z,{variant:"glass",title:o("getInTouch","Get in touch"),children:e(Dt,{customerEntity:A,inquiryEntity:E,contextId:S,contextName:g,contextDetails:K,messagePlaceholder:K,contextField:et})})}),J.length>0&&e(N,{title:o("similarVehicles","Similar Vehicles"),children:e(P,{cols:[1,2,3,3],children:J.map(t=>{const n=t[R],c=n?typeof n=="string"?n:Array.isArray(n)?n[0]?.thumbUrl||n[0]?.fullUrl||n[0]:null:null,b=t[p]||"",y=t[m]||"";return e(z,{clickable:!0,onClick:()=>it(`/${i.collection}/${t.id}`),elevated:!0,children:l(d,{direction:"column",children:[c&&e("div",{style:{width:"100%",aspectRatio:"16/9",borderRadius:"var(--radius-md)",overflow:"hidden",backgroundColor:"var(--muted)"},children:e("img",{src:c,alt:`${b} ${y}`,style:{width:"100%",height:"100%",objectFit:"cover"}})}),l(d,{direction:"column",gap:"tight",children:[l(s,{level:"h4",style:{margin:0},children:[b," ",y]}),e(s,{variant:"muted",children:t[f]}),(()=>{const h=t[u],X=i.fields[u];if(h==null||!X)return null;const $=k(h,X,a,{compact:!0});return typeof $=="string"?e(s,{style:{fontWeight:700,color:"var(--accent)"},children:$}):e("div",{style:{fontWeight:700,color:"var(--accent)"},children:$})})()]})]})},t.id)})})})]})}export{$t as CarDetailTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryAdminTemplate.d.ts","sourceRoot":"","sources":["../../src/crud/InquiryAdminTemplate.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAe1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAS7C,MAAM,WAAW,yBAAyB;IACxC,yDAAyD;IACzD,cAAc,EAAE,MAAM,CAAC;IACvB,gCAAgC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yCAAyC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,0DAA0D;IAC1D,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,cAAc,EACd,aAAa,EACb,gBAA+B,EAC/B,WAAmB,EACnB,WAAmB,EACnB,IAAI,EACJ,YAAY,EACZ,KAAK,GACN,EAAE,yBAAyB,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"InquiryAdminTemplate.d.ts","sourceRoot":"","sources":["../../src/crud/InquiryAdminTemplate.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAe1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAS7C,MAAM,WAAW,yBAAyB;IACxC,yDAAyD;IACzD,cAAc,EAAE,MAAM,CAAC;IACvB,gCAAgC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yCAAyC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,0DAA0D;IAC1D,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,cAAc,EACd,aAAa,EACb,gBAA+B,EAC/B,WAAmB,EACnB,WAAmB,EACnB,IAAI,EACJ,YAAY,EACZ,KAAK,GACN,EAAE,yBAAyB,GAAG,YAAY,CAgS1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as t,jsxs as
|
|
1
|
+
"use client";import{jsx as t,jsxs as o,Fragment as Y}from"react/jsx-runtime";import{useMemo as D,useCallback as H}from"react";import{Mail as J,Phone as K,User as Q,CheckCircle2 as P,Clock as X}from"lucide-react";import{Button as k,Card as V,Section as M,Stack as i,Text as d,Badge as Z,Grid as q,Spinner as ee}from"@donotdev/components";import{useTranslation as S,formatDate as te}from"@donotdev/core";import{Link as N}from"@donotdev/ui";import{useCrud as ae,useCrudList as L,translateLabel as ne}from"@donotdev/crud";function ue({customerEntity:R,inquiryEntity:m,customerBasePath:T="/customers",collapsible:z=!1,defaultOpen:B=!1,open:W,onOpenChange:_,title:y}){const{t:f}=S(`entity-${m.name.toLowerCase()}`),{t:r}=S("crud"),F=y||f("name"),{items:p,loading:O}=L(m),{items:b}=L(R),U=D(()=>{const e=new Map;return b?.forEach(n=>{n.id&&e.set(n.id,n)}),e},[b]),{update:I}=ae(m),E=H(async e=>{await I(e,{status:"responded"})},[I]),w=D(()=>p?[...p].filter(e=>(typeof e.status=="string"?e.status:"draft")==="draft").sort((e,n)=>{const a=(typeof e.createdAt=="string"?e.createdAt:typeof e.date=="string"?e.date:"")||"";return((typeof n.createdAt=="string"?n.createdAt:typeof n.date=="string"?n.date:"")||"").localeCompare(a)}):[],[p]);if(O)return t(M,{title:f("name"),children:t(ee,{})});const $=t(Y,{children:w.length===0?t(d,{variant:"muted",children:r("noInquiries",{defaultValue:"No inquiries found."})}):t(q,{cols:[1,1,2,2],children:w.map(e=>{const n=typeof e.customerId=="string"?e.customerId:void 0,a=n?U.get(n):void 0,h=typeof e.status=="string"?e.status:"draft",g=h==="available",c=typeof a?.email=="string"?a.email:void 0,u=typeof a?.phone=="string"?a.phone:void 0,G=a&&(a.firstName||a.lastName)?[a.firstName,a.lastName].filter(Boolean).join(" "):void 0,j=typeof e.message=="string"&&e.message?e.message.length>150?`${e.message.substring(0,150)}...`:e.message:"",x=typeof e.date=="string"?e.date:typeof e.createdAt=="string"?e.createdAt:void 0,A=o(i,{children:[o(i,{direction:"row",gap:"tight",align:"center",justify:"between",children:[t(Z,{variant:g?"secondary":"outline",children:o(i,{direction:"row",gap:"tight",align:"center",children:[g?t(P,{size:12}):t(X,{size:12}),ne(`status.${h}`,f)]})}),x&&t(d,{variant:"muted",level:"small",children:te(x)})]}),a?o(i,{gap:"tight",children:[o(i,{direction:"row",gap:"tight",align:"center",children:[t(Q,{size:14}),t(d,{weight:"medium",level:"small",children:G||r("customer",{defaultValue:"Customer"})})]}),c&&t(d,{level:"small",variant:"muted",children:c}),u&&t(d,{level:"small",variant:"muted",children:u})]}):t(d,{variant:"muted",level:"small",children:r("noCustomer",{defaultValue:"No customer linked"})}),j&&t(d,{level:"small",children:j}),o(i,{gap:"tight",children:[(c||u)&&o(i,{direction:"row",gap:"tight",children:[c&&t(k,{variant:"outline",icon:J,fullWidth:!0,className:"dndev-flex-1",render:({children:s,className:l,...v})=>t(N,{path:`mailto:${c}${typeof e.carId=="string"&&e.carId?`?subject=${encodeURIComponent(r("actions.replySubject",{defaultValue:"Re: Your inquiry"}))}`:""}`,className:l,onClick:C=>C.stopPropagation(),...v,children:s}),children:r("actions.email",{defaultValue:"Email"})}),u&&t(k,{variant:"outline",icon:K,fullWidth:!0,className:"dndev-flex-1",render:({children:s,className:l,...v})=>t(N,{path:`tel:${u}`,className:l,onClick:C=>C.stopPropagation(),...v,children:s}),children:r("actions.call",{defaultValue:"Call"})})]}),!g&&t(k,{variant:"outline",icon:P,fullWidth:!0,onClick:s=>{s.preventDefault(),s.stopPropagation(),E(e.id)},children:r("actions.markResponded",{defaultValue:"Mark responded"})})]})]});return a?.id?t(N,{path:`${T}/${a.id}`,className:"dndev-block dndev-h-full",onClick:s=>{const l=s.target;(l.closest("button")||l.closest('a[href^="mailto:"]')||l.closest('a[href^="tel:"]'))&&(s.preventDefault(),s.stopPropagation())},children:t(V,{clickable:!0,children:A})},e.id):t(V,{children:A},e.id)})})});return z?t(M,{title:F,collapsible:!0,defaultOpen:B,open:W,onOpenChange:_,children:$}):$}export{ue as InquiryAdminTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InquiryFormTemplate.d.ts","sourceRoot":"","sources":["../../src/crud/InquiryFormTemplate.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAErD,MAAM,WAAW,wBAAwB;IACvC,iCAAiC;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,gCAAgC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2FAA2F;IAC3F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,wBAAwB;IACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,cAAc,EACd,aAAa,EACb,SAAS,EACT,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,YAAsB,EACtB,cAA4D,EAC5D,YAAwB,EACxB,YAA4B,EAC5B,SAAS,EACT,OAAO,GACR,EAAE,wBAAwB,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"InquiryFormTemplate.d.ts","sourceRoot":"","sources":["../../src/crud/InquiryFormTemplate.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAErD,MAAM,WAAW,wBAAwB;IACvC,iCAAiC;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,gCAAgC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2FAA2F;IAC3F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,wBAAwB;IACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,cAAc,EACd,aAAa,EACb,SAAS,EACT,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,YAAsB,EACtB,cAA4D,EAC5D,YAAwB,EACxB,YAA4B,EAC5B,SAAS,EACT,OAAO,GACR,EAAE,wBAAwB,GAAG,YAAY,CAmPzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as e,jsxs as S,Fragment as G}from"react/jsx-runtime";import{useState as j}from"react";import{Stack as w,Button as R,Card as W,Alert as H,Text as x}from"@donotdev/components";import{useCrud as V,useEntityForm as $,FormFieldRenderer as l}from"@donotdev/crud";import{useTranslation as k}from"@donotdev/core";function Y({customerEntity:o,inquiryEntity:u,contextId:q,contextName:y,contextDetails:b,messagePlaceholder:D,contextField:C="carId",customerFields:f=["firstName","lastName","email","phone"],messageField:c="message",consentField:m="gdprConsent",onSuccess:_,onError:A}){const{add:L}=V(o),{add:O}=V(u),{t:d}=k(`entity-${o.name.toLowerCase()}`),{t:s}=k(`entity-${u.name.toLowerCase()}`),I=b?s("message.placeholder.withDetails",`Inquiry about: ${b}`,{details:b}):y?s("message.placeholder.context",`Inquiry about: ${y}`,{name:y}):"",g=$(u,{operation:"create",defaultValues:{[C]:q||void 0,date:new Date().toISOString(),status:"draft",[c]:I}}),p=u.fields[c],M=D||p?.options?.placeholder,t=$(o,{operation:"create",defaultValues:{type:"Prospect",status:"draft",[m]:!1}}),[h,v]=j("idle"),[N,T]=j(""),P=async a=>{v("loading"),T("");try{const n=await L(a),r=g.getValues(c),z=(typeof r=="string"?r.trim():"")||I||s("message.default","General inquiry"),B={customerId:n,[C]:q||void 0,[c]:z,date:new Date().toISOString(),status:"draft"};await O(B),v("success"),t.reset(),g.reset(),_?.()}catch(n){v("error");const r=n instanceof Error?n:new Error(String(n));T(r.message),A?.(r)}};return h==="success"?e(W,{variant:"glass",children:S(w,{direction:"column",style:{textAlign:"center",padding:"var(--gap-lg)"},children:[e("div",{style:{fontSize:"2rem",color:"var(--success)"},children:"\u2713"}),e(x,{level:"h3",children:s("success.title","Thank you for your inquiry!")}),e(x,{variant:"muted",children:s("success.message","We'll get back to you as soon as possible.")})]})}):e("form",{onSubmit:a=>{a.preventDefault(),t.handleSubmit(P)(a)},children:S(w,{direction:"column",children:[h==="error"&&N&&e(H,{variant:"error",description:N}),(()=>{const a=o.fields.firstName,n=o.fields.lastName;return f.includes("firstName")&&f.includes("lastName")&&a&&n?S(G,{children:[S(w,{direction:"row",children:[e("div",{style:{flex:1},children:e(l,{name:"firstName",config:a,control:t.control,errors:t.formState.errors,t:d})}),e("div",{style:{flex:1},children:e(l,{name:"lastName",config:n,control:t.control,errors:t.formState.errors,t:d})})]}),f.filter(r=>r!=="firstName"&&r!=="lastName").map(r=>{const i=o.fields[r];return i?e(l,{name:r,config:i,control:t.control,errors:t.formState.errors,t:d},r):null})]}):f.map(r=>{const i=o.fields[r];return i?e(l,{name:r,config:i,control:t.control,errors:t.formState.errors,t:d},r):null})})(),p&&e(l,{name:c,config:{...p,options:{...p.options,...M&&{placeholder:M}}},control:g.control,errors:g.formState.errors,t:s}),o.fields[m]&&e(l,{name:m,config:o.fields[m],control:t.control,errors:t.formState.errors,t:d}),e(R,{type:"submit",variant:"primary",disabled:h==="loading"||t.formState.isSubmitting,style:{width:"100%"},children:h==="loading"?s("submit.sending","Sending..."):s("submit","Send Inquiry")})]})})}export{Y as InquiryFormTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCardListTemplate.d.ts","sourceRoot":"","sources":["../../src/crud/ProductCardListTemplate.tsx"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAa1D,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CACxD,mBAAmB,EACnB,MAAM,CACP;IACC,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,wFAAwF;IACxF,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,yCAAyC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sFAAsF;IACtF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sGAAsG;IACtG,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAiCD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,KAAK,EACL,WAAW,EACX,QAAQ,EACR,OAAO,EACP,IAAmB,EACnB,SAA0B,EAC1B,MAAM,EACN,WAAmB,EACnB,WAAW,EACX,aAAa,EACb,UAAU,EACV,WAAW,EACX,UAAU,EACV,MAAM,EACN,gBAAwB,EACxB,WAAmB,GACpB,EAAE,4BAA4B,
|
|
1
|
+
{"version":3,"file":"ProductCardListTemplate.d.ts","sourceRoot":"","sources":["../../src/crud/ProductCardListTemplate.tsx"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAa1D,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CACxD,mBAAmB,EACnB,MAAM,CACP;IACC,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,wFAAwF;IACxF,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,yCAAyC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sFAAsF;IACtF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sGAAsG;IACtG,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAiCD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,KAAK,EACL,WAAW,EACX,QAAQ,EACR,OAAO,EACP,IAAmB,EACnB,SAA0B,EAC1B,MAAM,EACN,WAAmB,EACnB,WAAW,EACX,aAAa,EACb,UAAU,EACV,WAAW,EACX,UAAU,EACV,MAAM,EACN,gBAAwB,EACxB,WAAmB,GACpB,EAAE,4BAA4B,2CAyd9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as l,jsxs as
|
|
1
|
+
"use client";import{jsx as l,jsxs as o,Fragment as pe}from"react/jsx-runtime";import{useMemo as c,useCallback as W}from"react";import{Heart as G}from"lucide-react";import{Grid as ve,Card as me,Stack as y,Text as x,Section as U,Badge as he,Button as be}from"@donotdev/components";import{useTranslation as ye,getListCardFieldNames as H}from"@donotdev/core";import{useNavigate as xe}from"@donotdev/ui";import{translateFieldLabel as q,useCrudCardList as Fe,EntityFilters as Ce,matchesFilter as we,useEntityFavorites as ke,formatValue as J,useCrudFilters as Ve}from"@donotdev/crud";const Se={available:"success",active:"success",in_stock:"success",new:"success",pending:"warning",reserved:"warning",low_stock:"warning",sold:"destructive",unavailable:"destructive",out_of_stock:"destructive",inactive:"secondary",draft:"outline"};function je(e){const F=String(e).toLowerCase().replace(/[\s-]/g,"_");return Se[F]||"secondary"}function $e({entity:e,title:F,description:K,basePath:Q,onClick:C,cols:X=[1,2,3,4],staleTime:Y=1e3*60*30,filter:w,hideFilters:Z=!1,titleFields:p,subtitleField:_,priceField:k,specsFields:v,badgeField:V,locale:ee,imageAspectRatio:te="4/3",hideSection:re=!1}){const B=xe(),I=Q??`/${e.collection}`,{t:s,i18n:le}=ye([e.namespace,"crud"]),Te=ee||le?.language?.replace("_","-")||"en-US",d=c(()=>k||(Object.keys(e.fields).find(t=>e.fields[t]?.type==="price")??void 0),[k,e.fields]),u=c(()=>{if(V)return V;const t=["status","state","condition","availability"];return Object.keys(e.fields).find(r=>t.includes(r.toLowerCase())&&(e.fields[r]?.type==="select"||e.fields[r]?.type==="text"))},[V,e.fields]),se=c(()=>{if(p&&p.length>0)return p;const t=Object.keys(e.fields).find(r=>e.fields[r]?.type==="text");return t?[t]:[]},[p,e.fields]),A=c(()=>v&&v.length>0?v:Object.keys(e.fields).filter(t=>{if(t===d||t===u)return!1;const r=e.fields[t]?.type;return r==="number"||r==="select"}).slice(0,3),[v,e.fields,d,u]),{data:ae,loading:ie}=Fe(e,{staleTime:Y}),S=ae?.items||[],{isFavorite:oe,toggleFavorite:ne,favoritesFilter:$}=ke({collection:e.collection}),{showFavoritesOnly:f,setShowFavoritesOnly:de,filters:j}=Ve({collection:e.collection}),R=W(t=>Object.keys(j).length===0?!0:Object.entries(j).every(([r,n])=>{const i=t[r],h=e.fields[r]?.type||"text";return we(i,n,h)}),[j,e.fields]),g=c(()=>{let t=S;return t=t.filter(R),f&&(t=t.filter($)),w&&(t=t.filter(w)),t},[S,R,f,$,w]),D=c(()=>{const r=H(e).find(n=>{const i=e.fields[n];return i?.type==="image"||i?.type==="images"});return r||Object.keys(e.fields).find(n=>{const i=e.fields[n];return i?.type==="image"||i?.type==="images"})},[e.listCardFields,e.listFields,e.fields]),ce=W(t=>{C?C(t):B(`${I}/${t}`)},[I,B,C]),T=F||s("name",{defaultValue:e.name}),m=K||s("description",{defaultValue:""}),E=s("name",{defaultValue:e.name});return o(pe,{children:[(T||m)&&o("header",{style:{marginBottom:"var(--gap-lg)"},children:[T&&l("h1",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700,margin:0,marginBottom:m?"var(--gap-sm)":0},children:T}),m&&l("p",{style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)",margin:0},children:m})]}),!Z&&l(U,{title:s("crud:filters.title",{entity:E,defaultValue:`Browse ${E} - Filters`}),collapsible:!0,defaultOpen:!0,children:o(y,{direction:"column",children:[l(be,{variant:f?"primary":"outline",icon:l(G,{size:18}),onClick:()=>de(!f),children:f?s("crud:favorites.showAll",{defaultValue:"Show All"}):s("crud:favorites.showFavorites",{defaultValue:"Show Favorites"})}),l(Ce,{entity:e,data:S,fieldsToFilter:H(e)})]})}),(()=>{const t=g.length===0?o(y,{align:"center",justify:"center",style:{padding:"var(--gap-3xl)",textAlign:"center"},children:[l(x,{level:"h3",style:{color:"var(--muted-foreground)"},children:s("crud:emptyState.title",{defaultValue:`No ${e.name.toLowerCase()} found`})}),l(x,{style:{color:"var(--muted-foreground)"},children:s("crud:emptyState.description",{defaultValue:`No ${e.name.toLowerCase()} available at this time.`})})]}):l(ve,{cols:X,children:g.map(r=>{const n=D?r[D]:null,i=typeof n=="string"&&n.length>0?n:null,h=se.map(a=>r[a]).filter(Boolean).join(" ")||String(r.id??""),P=_?r[_]:null,M=d?r[d]:null,N=d?e.fields[d]:null,z=u?r[u]:null,L=oe(r.id);return o(me,{clickable:!0,onClick:()=>ce(r.id),elevated:!0,style:{transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[l("button",{type:"button",onClick:a=>{a.stopPropagation(),ne(r.id)},style:{position:"absolute",top:"var(--gap-sm)",insetInlineStart:"var(--gap-sm)",zIndex:10,cursor:"pointer",padding:"var(--gap-xs)",borderRadius:"var(--radius-full)",backgroundColor:"rgba(255, 255, 255, 0.9)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.2s",border:"none"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="rgba(255, 255, 255, 1)"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.9)"},"aria-label":L?s("crud:favorites.remove",{defaultValue:"Remove from favorites"}):s("crud:favorites.add",{defaultValue:"Add to favorites"}),children:l(G,{size:20,fill:L?"#ef4444":"#ffffff",stroke:L?"#ef4444":"#ffffff",style:{transition:"fill 0.2s, stroke 0.2s"}})}),o(y,{direction:"column",children:[i&&o("div",{style:{position:"relative",width:"100%",aspectRatio:te,overflow:"hidden",borderRadius:"var(--radius-md)",background:"var(--muted)"},children:[l("img",{src:i,alt:h,style:{width:"100%",height:"100%",objectFit:"cover"}}),z&&l("div",{style:{position:"absolute",top:"var(--gap-sm)",insetInlineEnd:"var(--gap-sm)"},children:l(he,{variant:je(z),children:q(String(z),e.fields[u],s)})})]}),o(y,{direction:"column",gap:"tight",children:[o("div",{children:[l(x,{level:"h4",style:{margin:0},children:h}),P&&l(x,{level:"small",variant:"muted",style:{marginTop:"var(--gap-xs)"},children:P})]}),M!=null&&N&&l("div",{style:{fontSize:"var(--font-size-2xl)",fontWeight:700,color:"var(--primary)"},children:(()=>{const a=J(M,N,s,{compact:!0});return a})()}),A.length>0&&l("div",{style:{display:"flex",flexWrap:"wrap",gap:"var(--gap-xs)"},children:A.map(a=>{const b=r[a];if(b==null)return null;const O=e.fields[a],fe=q(a,O,s),ge=O?J(b,O,s,{compact:!0}):String(b);return o("span",{style:{display:"inline-flex",alignItems:"center",gap:"var(--gap-xs)",padding:"var(--gap-xs) var(--gap-sm)",background:"var(--muted)",borderRadius:"var(--radius-full)",fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:[fe,": ",ge]},a)})})]})]})]},r.id)})});return re?t:l(U,{title:ie?s("crud:results.title.fetching",{defaultValue:"Fetching..."}):s("crud:results.title.count",{count:g.length,defaultValue:g.length===1?"Found 1 item":`Found ${g.length} items`}),collapsible:!0,defaultOpen:!0,children:t})})()]})}export{$e as ProductCardListTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsxs as e,jsx as
|
|
1
|
+
"use client";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{Text as b,Stack as i}from"@donotdev/components";import{useTranslation as S,formatDate as D}from"@donotdev/core";const W=({publisherName:s,publisherType:n,legalStatus:d,registrationNumber:o,vatNumber:l,shareCapital:h,registeredOffice:y,email:p,phone:a,directorName:v,directorRole:m="Publication Director",hostingProvider:z,hostingAddress:g,hostingContact:f,lastUpdated:x,sections:c={intellectualProperty:!0,personalData:!0,cookies:!0}})=>{const{t,i18n:P}=S("legalNotice"),u=D(x,P?.language||"en");return r("div",{children:e("div",{style:{maxWidth:"none"},children:[e("div",{className:"dndev-text-center",style:{marginBottom:"3rem"},children:[e("h1",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700,marginBottom:"1rem"},children:["\u2696\uFE0F ",t("title","Legal Notice")]}),e("p",{style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)"},children:[t("lastUpdated","Last updated"),": ",u]})]}),e(i,{gap:"large",children:[e("section",{children:[r("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:t("publisher.title","1. Publisher Information")}),e(i,{gap:"tight",children:[e("p",{children:[e("strong",{children:[t("publisher.name","Publisher name"),":"]})," ",s]}),e("p",{children:[e("strong",{children:[t("publisher.type","Type"),":"]})," ",t(`publisher.types.${n}`,n==="company"?"Company":"Individual")]}),d&&e("p",{children:[e("strong",{children:[t("publisher.legalStatus","Legal status"),":"]})," ",d]}),h&&n==="company"&&e("p",{children:[e("strong",{children:[t("publisher.shareCapital","Share capital"),":"]})," ",h]})]})]}),(o||l)&&e("section",{children:[r("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:t("registration.title","2. Registration Details")}),e(i,{gap:"tight",children:[o&&e("p",{children:[e("strong",{children:[t("registration.number","Registration number / SIRET"),":"]})," ",o]}),l&&e("p",{children:[e("strong",{children:[t("registration.vat","VAT number"),":"]})," ",l]})]})]}),e("section",{children:[r("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:t("office.title","3. Registered Office")}),e("p",{children:[e("strong",{children:[t("office.address","Address"),":"]}),r("br",{}),y]})]}),e("section",{children:[r("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:t("contact.title","4. Contact Information")}),e(i,{gap:"tight",children:[e("p",{children:[e("strong",{children:[t("contact.email","Email"),":"]})," ",e("a",{href:`mailto:${p}`,style:{color:"var(--primary)"},children:[" ",p]})]}),a&&e("p",{children:[e("strong",{children:[t("contact.phone","Phone"),":"]})," ",r("a",{href:`tel:${a}`,style:{color:"var(--primary)"},children:a})]})]})]}),e("section",{children:[r("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:t("director.title","5. Publication Director")}),e(i,{gap:"tight",children:[e("p",{children:[e("strong",{children:[t("director.name","Name"),":"]})," ",v]}),m&&e("p",{children:[e("strong",{children:[t("director.role","Role"),":"]})," ",m]})]})]}),e("section",{children:[r("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:t("hosting.title","6. Hosting Provider")}),e(i,{gap:"tight",children:[e("p",{children:[e("strong",{children:[t("hosting.provider","Provider"),":"]})," ",z]})," ",g&&e("p",{children:[e("strong",{children:[t("hosting.address","Address"),":"]}),r("br",{}),g]}),f&&e("p",{children:[e("strong",{children:[t("hosting.contact","Contact"),":"]})," ",f]})]})]}),c.intellectualProperty&&e("section",{children:[r("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:t("intellectualProperty.title","7. Intellectual Property")}),r("p",{children:t("intellectualProperty.content","All content on this website, including but not limited to text, graphics, logos, images, audio clips, digital downloads, data compilations, and software, is the property of {publisherName} or its content suppliers and is protected by international copyright laws.",{publisherName:s})}),r("p",{style:{marginTop:"1rem"},children:t("intellectualProperty.unauthorized","The unauthorized use of any content from this website may violate copyright, trademark, and other laws.")})]}),c.personalData&&e("section",{children:[r("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:t("personalData.title","8. Personal Data")}),e("p",{children:[t("personalData.content","For information about how we collect, use, and protect your personal data, please refer to our "),r("a",{href:"/privacy",style:{color:"var(--primary)",textDecoration:"underline"},children:t("personalData.privacyPolicy","Privacy Policy")}),"."]})]}),c.cookies&&e("section",{children:[r("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:t("cookies.title","9. Cookies")}),e("p",{children:[t("cookies.content","This website uses cookies. For detailed information about cookies and how we use them, please refer to our "),r("a",{href:"/privacy",style:{color:"var(--primary)",textDecoration:"underline"},children:t("cookies.privacyPolicy","Privacy Policy")}),"."]})]})]}),r("div",{className:"dndev-text-center",style:{marginTop:"3rem",paddingTop:"2rem",borderTop:"1px solid var(--border)"},children:e(b,{variant:"muted",level:"small",children:[t("footer.accurate","The information in this Legal Notice is accurate as of")," ",u," ",t("footer.updated","and may be updated to reflect changes in our company information.")]})})]})})};export{W as LegalNoticeTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivacyPolicyTemplate.d.ts","sourceRoot":"","sources":["../../src/legal/PrivacyPolicyTemplate.tsx"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,QAAQ,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,EAAE,CAAC,EAAE,OAAO,CAAC;KACd,CAAC;IACF,iCAAiC;IACjC,WAAW,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"PrivacyPolicyTemplate.d.ts","sourceRoot":"","sources":["../../src/legal/PrivacyPolicyTemplate.tsx"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,QAAQ,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,EAAE,CAAC,EAAE,OAAO,CAAC;KACd,CAAC;IACF,iCAAiC;IACjC,WAAW,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,mBAAmB,CAw5BpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsxs as t,jsx as o,Fragment as n}from"react/jsx-runtime";import{List as i,Stack as u}from"@donotdev/components";import{useTranslation as p,formatDate as f}from"@donotdev/core";const y=({companyName:a,websiteUrl:v,privacyEmail:d,companyAddress:m,dpoEmail:c,lastUpdated:h,sections:s={children:!0,international:!0,california:!0,eu:!0},contactInfo:r={}})=>{const{t:e,i18n:g}=p("privacy"),l=f(h,g?.language||"en");return o("div",{children:t("div",{style:{maxWidth:"none"},children:[t("div",{className:"dndev-text-center",style:{marginBottom:"3rem"},children:[t("h1",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700,marginBottom:"1rem"},children:["\u{1F512} ",e("title","Privacy Policy")]}),t("p",{style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)"},children:[e("lastUpdated","Last updated"),": ",l]})]}),t(u,{gap:"large",children:[t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.introduction.title","1. Introduction")}),t("p",{style:{marginBottom:"1rem"},children:[e("sections.introduction.welcome","Welcome to")," ",a," ",'("',e("common.we","we"),'," "',e("common.our","our"),',"'," ",e("common.or","or"),' "',e("common.us","us"),'").'," ",e("sections.introduction.commitment","We are committed to protecting your privacy and ensuring you have a positive experience on our platform. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our development framework, tools, and services.")]}),t("p",{children:[e("sections.introduction.agreement","By using")," ",a,","," ",e("sections.introduction.agree","you agree to the collection and use of information in accordance with this policy. If you do not agree with our policies and practices, please do not use our services.")]})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.collection.title","2. Information We Collect")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.collection.provided.title","2.1 Information You Provide")}),o(i,{items:[o("strong",{children:e("sections.collection.provided.accountDesc","Name, email address, password, and profile information when you create an account")},"account"),t(n,{children:[t("strong",{children:[e("sections.collection.provided.usage","Usage Data"),":"]})," ",e("sections.collection.provided.usageDesc","Information about how you use our services, including features accessed and time spent")]}),t(n,{children:[t("strong",{children:[e("sections.collection.provided.communication","Communication"),":"]})," ",e("sections.collection.provided.communicationDesc","Messages, feedback, and support requests you send to us")]}),t(n,{children:[t("strong",{children:[e("sections.collection.provided.payment","Payment Information"),":"]})," ",e("sections.collection.provided.paymentDesc","Billing details and payment method information for premium features")]}),t(n,{children:[t("strong",{children:[e("sections.collection.provided.project","Project Data"),":"]})," ",e("sections.collection.provided.projectDesc","Code, configurations, and project files you create using our framework")]})],style:{paddingInlineStart:"1.5rem",marginBottom:"1rem"}}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.collection.automatic.title","2.2 Automatically Collected Information")}),o(i,{items:[t(n,{children:[t("strong",{children:[e("sections.collection.automatic.device","Device Information"),":"]})," ",e("sections.collection.automatic.deviceDesc","IP address, browser type, operating system, and device identifiers")]}),t(n,{children:[t("strong",{children:[e("sections.collection.automatic.analytics","Usage Analytics"),":"]})," ",e("sections.collection.automatic.analyticsDesc","Pages visited, features used, and interaction patterns")]}),t(n,{children:[t("strong",{children:[e("sections.collection.automatic.performance","Performance Data"),":"]})," ",e("sections.collection.automatic.performanceDesc","Error logs, performance metrics, and system diagnostics")]}),t(n,{children:[t("strong",{children:[e("sections.collection.automatic.cookies","Cookies and Tracking"),":"]})," ",e("sections.collection.automatic.cookiesDesc","Small data files stored on your device to improve your experience")]})],style:{paddingInlineStart:"1.5rem",marginBottom:"1rem"}})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.usage.title","3. How We Use Your Information")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.usage.intro","We use the information we collect to:")}),o(i,{items:[e("sections.usage.provide","Provide, maintain, and improve our services"),e("sections.usage.process","Process transactions and manage your account"),e("sections.usage.send","Send you important updates, security alerts, and support messages"),e("sections.usage.respond","Respond to your comments, questions, and support requests"),e("sections.usage.analyze","Analyze usage patterns to enhance user experience"),e("sections.usage.detect","Detect and prevent fraud, abuse, and security threats"),e("sections.usage.comply","Comply with legal obligations and enforce our terms"),e("sections.usage.develop","Develop new features and services based on user feedback")],style:{paddingInlineStart:"1.5rem"}})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.sharing.title","4. Information Sharing and Disclosure")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.sharing.intro","We do not sell, trade, or rent your personal information to third parties. We may share your information in the following circumstances:")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.sharing.providers.title","4.1 Service Providers")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.sharing.providers.intro","We may share information with trusted third-party service providers who assist us in operating our platform, such as:")}),o(i,{items:[e("sections.sharing.providers.hosting","Cloud hosting and infrastructure providers"),e("sections.sharing.providers.payment","Payment processors for billing and transactions"),e("sections.sharing.providers.analytics","Analytics and monitoring services"),e("sections.sharing.providers.support","Customer support and communication tools")],style:{paddingInlineStart:"1.5rem",marginBottom:"1rem"}}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.sharing.legal.title","4.2 Legal Requirements")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.sharing.legal.desc","We may disclose your information if required by law, court order, or government request, or to protect our rights, property, or safety.")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.sharing.business.title","4.3 Business Transfers")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.sharing.business.desc","In the event of a merger, acquisition, or sale of assets, your information may be transferred as part of the business transaction.")})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.security.title","5. Data Security")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.security.intro","We implement appropriate technical and organizational measures to protect your information against unauthorized access, alteration, disclosure, or destruction. These measures include:")}),o(i,{items:[e("sections.security.encryption","Encryption of data in transit and at rest"),e("sections.security.assessments","Regular security assessments and updates"),e("sections.security.access","Access controls and authentication mechanisms"),e("sections.security.training","Employee training on data protection practices"),e("sections.security.incident","Incident response and breach notification procedures")],style:{paddingInlineStart:"1.5rem"}})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.retention.title","6. Data Retention")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.retention.intro","We retain your information for as long as necessary to provide our services, comply with legal obligations, resolve disputes, and enforce our agreements. The retention period varies based on the type of information:")}),o(i,{items:[t(n,{children:[t("strong",{children:[e("sections.retention.account","Account Information"),":"]})," ",e("sections.retention.accountDesc","Retained while your account is active and for a reasonable period after deletion")]}),t(n,{children:[t("strong",{children:[e("sections.retention.usage","Usage Data"),":"]})," ",e("sections.retention.usageDesc","Retained for analytics and service improvement purposes")]}),t(n,{children:[t("strong",{children:[e("sections.retention.payment","Payment Information"),":"]})," ",e("sections.retention.paymentDesc","Retained as required by financial regulations")]}),t(n,{children:[t("strong",{children:[e("sections.retention.communication","Communication Records"),":"]})," ",e("sections.retention.communicationDesc","Retained for customer support and legal compliance")]})],style:{paddingInlineStart:"1.5rem"}})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.rights.title","7. Your Rights and Choices")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.rights.intro","Depending on your location, you may have the following rights regarding your personal information:")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.rights.access.title","7.1 Access and Portability")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.rights.access.desc","You can request access to your personal information and receive a copy in a portable format.")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.rights.correction.title","7.2 Correction and Update")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.rights.correction.desc","You can request correction of inaccurate or incomplete information.")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.rights.deletion.title","7.3 Deletion")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.rights.deletion.desc","You can request deletion of your personal information, subject to legal requirements.")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.rights.restriction.title","7.4 Restriction and Objection")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.rights.restriction.desc","You can request restriction of processing or object to certain uses of your information.")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.rights.marketing.title","7.5 Marketing Communications")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.rights.marketing.desc","You can opt out of marketing communications at any time using the unsubscribe link or contacting us directly.")})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.cookies.title","8. Cookies and Tracking Technologies")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.cookies.intro","We use cookies and similar tracking technologies to enhance your experience, analyze usage, and provide personalized content. You can control cookie settings through your browser preferences.")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.cookies.types.title","8.1 Types of Cookies We Use")}),o(i,{items:[t(n,{children:[t("strong",{children:[e("sections.cookies.types.essential","Essential Cookies"),":"]})," ",e("sections.cookies.types.essentialDesc","Required for basic functionality and security")]}),t(n,{children:[t("strong",{children:[e("sections.cookies.types.analytics","Analytics Cookies"),":"]})," ",e("sections.cookies.types.analyticsDesc","Help us understand how visitors use our platform")]}),t(n,{children:[t("strong",{children:[e("sections.cookies.types.functional","Functional Cookies"),":"]})," ",e("sections.cookies.types.functionalDesc","Remember your preferences and settings")]}),t(n,{children:[t("strong",{children:[e("sections.cookies.types.marketing","Marketing Cookies"),":"]})," ",e("sections.cookies.types.marketingDesc","Used for targeted advertising and content")]})],style:{paddingInlineStart:"1.5rem"}})]}),s.international&&t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.international.title","9. International Data Transfers")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.international.desc","Your information may be transferred to and processed in countries other than your own. We ensure appropriate safeguards are in place to protect your information in accordance with applicable data protection laws.")})]}),s.children&&t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.children.title","10. Children's Privacy")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.children.desc","Our services are not intended for children under the age of 13. We do not knowingly collect personal information from children under 13. If you believe we have collected information from a child under 13, please contact us immediately.")})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.changes.title","11. Changes to This Privacy Policy")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.changes.desc",'We may update this Privacy Policy from time to time to reflect changes in our practices or applicable laws. We will notify you of any material changes by posting the updated policy on our website and updating the "Last updated" date.')})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.contact.title","12. Contact Us")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.contact.intro","If you have any questions about this Privacy Policy or our data practices, please contact us:")}),t("div",{className:"dndev-grid dndev-gap-sm",style:{backgroundColor:"color-mix(in oklab, var(--muted) 50%, transparent)",padding:"1rem",borderRadius:"var(--radius-lg)"},children:[t("p",{children:[t("strong",{children:[e("sections.contact.email","Email"),":"]})," ",d]}),t("p",{children:[t("strong",{children:[e("sections.contact.address","Address"),":"]})," ",m]}),c&&t("p",{children:[t("strong",{children:[e("sections.contact.dpo","Data Protection Officer"),":"]})," ",c]}),r.phone&&t("p",{children:[t("strong",{children:[e("sections.contact.phone","Phone"),":"]})," ",r.phone]}),r.supportEmail&&t("p",{children:[t("strong",{children:[e("sections.contact.support","Support Email"),":"]})," ",r.supportEmail]})]})]}),s.eu&&t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.eu.title","13. Legal Basis for Processing (EU Users)")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.eu.intro","For users in the European Union, our legal basis for processing your personal information includes:")}),o(i,{items:[t(n,{children:[t("strong",{children:[e("sections.eu.consent","Consent"),":"]})," ",e("sections.eu.consentDesc","When you explicitly agree to our processing")]}),t(n,{children:[t("strong",{children:[e("sections.eu.contract","Contract Performance"),":"]})," ",e("sections.eu.contractDesc","To provide our services under our terms")]}),t(n,{children:[t("strong",{children:[e("sections.eu.legitimate","Legitimate Interest"),":"]})," ",e("sections.eu.legitimateDesc","To improve our services and prevent fraud")]}),t(n,{children:[t("strong",{children:[e("sections.eu.legal","Legal Obligation"),":"]})," ",e("sections.eu.legalDesc","To comply with applicable laws and regulations")]})],style:{paddingInlineStart:"1.5rem"}})]}),s.california&&t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.california.title","14. California Privacy Rights (CCPA)")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.california.desc","California residents have additional rights under the California Consumer Privacy Act (CCPA), including the right to know what personal information we collect and how we use it, the right to delete personal information, and the right to opt out of the sale of personal information.")})]})]}),o("div",{className:"dndev-text-center",style:{marginTop:"3rem",paddingTop:"2rem",borderTop:"1px solid var(--border)",fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:t("p",{children:[e("footer.effective","This Privacy Policy is effective as of")," ",l," ",e("footer.remain","and will remain in effect except with respect to any changes in its provisions in the future.")]})})]})})};export{y as PrivacyPolicyTemplate};
|
|
1
|
+
"use client";import{jsxs as t,jsx as o,Fragment as i}from"react/jsx-runtime";import{List as n,Stack as g}from"@donotdev/components";import{useTranslation as p,formatDate as f}from"@donotdev/core";const w=({companyName:c,websiteUrl:y,privacyEmail:d,companyAddress:m,dpoEmail:a,lastUpdated:h,sections:r={children:!0,international:!0,california:!0,eu:!0},contactInfo:s={}})=>{const{t:e,i18n:u}=p("privacy"),l=f(h,u?.language||"en");return o("div",{children:t("div",{style:{maxWidth:"none"},children:[t("div",{className:"dndev-text-center",style:{marginBottom:"3rem"},children:[t("h1",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700,marginBottom:"1rem"},children:["\u{1F512} ",e("title","Privacy Policy")]}),t("p",{style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)"},children:[e("lastUpdated","Last updated"),": ",l]})]}),t(g,{gap:"large",children:[t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.introduction.title","1. Introduction")}),t("p",{style:{marginBottom:"1rem"},children:[e("sections.introduction.welcome","Welcome to")," ",c," ",'("',e("common.we","we"),'," "',e("common.our","our"),',"'," ",e("common.or","or"),' "',e("common.us","us"),'").'," ",e("sections.introduction.commitment","We are committed to protecting your privacy and ensuring you have a positive experience on our platform. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our development framework, tools, and services.")]}),t("p",{children:[e("sections.introduction.agreement","By using")," ",c,","," ",e("sections.introduction.agree","you agree to the collection and use of information in accordance with this policy. If you do not agree with our policies and practices, please do not use our services.")]})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.collection.title","2. Information We Collect")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.collection.provided.title","2.1 Information You Provide")}),o(n,{items:[o("strong",{children:e("sections.collection.provided.accountDesc","Name, email address, password, and profile information when you create an account")},"account"),t(i,{children:[t("strong",{children:[e("sections.collection.provided.usage","Usage Data"),":"]})," ",e("sections.collection.provided.usageDesc","Information about how you use our services, including features accessed and time spent")]}),t(i,{children:[t("strong",{children:[e("sections.collection.provided.communication","Communication"),":"]})," ",e("sections.collection.provided.communicationDesc","Messages, feedback, and support requests you send to us")]}),t(i,{children:[t("strong",{children:[e("sections.collection.provided.payment","Payment Information"),":"]})," ",e("sections.collection.provided.paymentDesc","Billing details and payment method information for premium features")]}),t(i,{children:[t("strong",{children:[e("sections.collection.provided.project","Project Data"),":"]})," ",e("sections.collection.provided.projectDesc","Code, configurations, and project files you create using our framework")]})],style:{paddingInlineStart:"1.5rem",marginBottom:"1rem"}}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.collection.automatic.title","2.2 Automatically Collected Information")}),o(n,{items:[t(i,{children:[t("strong",{children:[e("sections.collection.automatic.device","Device Information"),":"]})," ",e("sections.collection.automatic.deviceDesc","IP address, browser type, operating system, and device identifiers")]}),t(i,{children:[t("strong",{children:[e("sections.collection.automatic.analytics","Usage Analytics"),":"]})," ",e("sections.collection.automatic.analyticsDesc","Pages visited, features used, and interaction patterns")]}),t(i,{children:[t("strong",{children:[e("sections.collection.automatic.performance","Performance Data"),":"]})," ",e("sections.collection.automatic.performanceDesc","Error logs, performance metrics, and system diagnostics")]}),t(i,{children:[t("strong",{children:[e("sections.collection.automatic.cookies","Cookies and Tracking"),":"]})," ",e("sections.collection.automatic.cookiesDesc","Small data files stored on your device to improve your experience")]})],style:{paddingInlineStart:"1.5rem",marginBottom:"1rem"}})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.usage.title","3. How We Use Your Information")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.usage.intro","We use the information we collect to:")}),o(n,{items:[e("sections.usage.provide","Provide, maintain, and improve our services"),e("sections.usage.process","Process transactions and manage your account"),e("sections.usage.send","Send you important updates, security alerts, and support messages"),e("sections.usage.respond","Respond to your comments, questions, and support requests"),e("sections.usage.analyze","Analyze usage patterns to enhance user experience"),e("sections.usage.detect","Detect and prevent fraud, abuse, and security threats"),e("sections.usage.comply","Comply with legal obligations and enforce our terms"),e("sections.usage.develop","Develop new features and services based on user feedback")],style:{paddingInlineStart:"1.5rem"}})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.sharing.title","4. Information Sharing and Disclosure")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.sharing.intro","We do not sell, trade, or rent your personal information to third parties. We may share your information in the following circumstances:")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.sharing.providers.title","4.1 Service Providers")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.sharing.providers.intro","We may share information with trusted third-party service providers who assist us in operating our platform, such as:")}),o(n,{items:[e("sections.sharing.providers.hosting","Cloud hosting and infrastructure providers"),e("sections.sharing.providers.payment","Payment processors for billing and transactions"),e("sections.sharing.providers.analytics","Analytics and monitoring services"),e("sections.sharing.providers.support","Customer support and communication tools")],style:{paddingInlineStart:"1.5rem",marginBottom:"1rem"}}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.sharing.legal.title","4.2 Legal Requirements")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.sharing.legal.desc","We may disclose your information if required by law, court order, or government request, or to protect our rights, property, or safety.")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.sharing.business.title","4.3 Business Transfers")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.sharing.business.desc","In the event of a merger, acquisition, or sale of assets, your information may be transferred as part of the business transaction.")})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.security.title","5. Data Security")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.security.intro","We implement appropriate technical and organizational measures to protect your information against unauthorized access, alteration, disclosure, or destruction. These measures include:")}),o(n,{items:[e("sections.security.encryption","Encryption of data in transit and at rest"),e("sections.security.assessments","Regular security assessments and updates"),e("sections.security.access","Access controls and authentication mechanisms"),e("sections.security.training","Employee training on data protection practices"),e("sections.security.incident","Incident response and breach notification procedures")],style:{paddingInlineStart:"1.5rem"}})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.retention.title","6. Data Retention")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.retention.intro","We retain your information for as long as necessary to provide our services, comply with legal obligations, resolve disputes, and enforce our agreements. The retention period varies based on the type of information:")}),o(n,{items:[t(i,{children:[t("strong",{children:[e("sections.retention.account","Account Information"),":"]})," ",e("sections.retention.accountDesc","Retained while your account is active and for a reasonable period after deletion")]}),t(i,{children:[t("strong",{children:[e("sections.retention.usage","Usage Data"),":"]})," ",e("sections.retention.usageDesc","Retained for analytics and service improvement purposes")]}),t(i,{children:[t("strong",{children:[e("sections.retention.payment","Payment Information"),":"]})," ",e("sections.retention.paymentDesc","Retained as required by financial regulations")]}),t(i,{children:[t("strong",{children:[e("sections.retention.communication","Communication Records"),":"]})," ",e("sections.retention.communicationDesc","Retained for customer support and legal compliance")]})],style:{paddingInlineStart:"1.5rem"}})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.rights.title","7. Your Rights and Choices")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.rights.intro","Depending on your location, you may have the following rights regarding your personal information:")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.rights.access.title","7.1 Access and Portability")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.rights.access.desc","You can request access to your personal information and receive a copy in a portable format.")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.rights.correction.title","7.2 Correction and Update")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.rights.correction.desc","You can request correction of inaccurate or incomplete information.")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.rights.deletion.title","7.3 Deletion")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.rights.deletion.desc","You can request deletion of your personal information, subject to legal requirements.")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.rights.restriction.title","7.4 Restriction and Objection")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.rights.restriction.desc","You can request restriction of processing or object to certain uses of your information.")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.rights.marketing.title","7.5 Marketing Communications")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.rights.marketing.desc","You can opt out of marketing communications at any time using the unsubscribe link or contacting us directly.")})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.cookies.title","8. Cookies and Tracking Technologies")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.cookies.intro","We use cookies and similar tracking technologies to enhance your experience, analyze usage, and provide personalized content. You can control cookie settings through your browser preferences.")}),o("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.cookies.types.title","8.1 Types of Cookies We Use")}),o(n,{items:[t(i,{children:[t("strong",{children:[e("sections.cookies.types.essential","Essential Cookies"),":"]})," ",e("sections.cookies.types.essentialDesc","Required for basic functionality and security")]}),t(i,{children:[t("strong",{children:[e("sections.cookies.types.analytics","Analytics Cookies"),":"]})," ",e("sections.cookies.types.analyticsDesc","Help us understand how visitors use our platform")]}),t(i,{children:[t("strong",{children:[e("sections.cookies.types.functional","Functional Cookies"),":"]})," ",e("sections.cookies.types.functionalDesc","Remember your preferences and settings")]}),t(i,{children:[t("strong",{children:[e("sections.cookies.types.marketing","Marketing Cookies"),":"]})," ",e("sections.cookies.types.marketingDesc","Used for targeted advertising and content")]})],style:{paddingInlineStart:"1.5rem"}})]}),r.international&&t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.international.title","9. International Data Transfers")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.international.desc","Your information may be transferred to and processed in countries other than your own. We ensure appropriate safeguards are in place to protect your information in accordance with applicable data protection laws.")})]}),r.children&&t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.children.title","10. Children's Privacy")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.children.desc","Our services are not intended for children under the age of 13. We do not knowingly collect personal information from children under 13. If you believe we have collected information from a child under 13, please contact us immediately.")})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.changes.title","11. Changes to This Privacy Policy")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.changes.desc",'We may update this Privacy Policy from time to time to reflect changes in our practices or applicable laws. We will notify you of any material changes by posting the updated policy on our website and updating the "Last updated" date.')})]}),t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.contact.title","12. Contact Us")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.contact.intro","If you have any questions about this Privacy Policy or our data practices, please contact us:")}),t("div",{className:"dndev-grid dndev-gap-sm",style:{backgroundColor:"color-mix(in oklab, var(--muted) 50%, transparent)",padding:"1rem",borderRadius:"var(--radius-lg)"},children:[t("p",{children:[t("strong",{children:[e("sections.contact.email","Email"),":"]})," ",d]}),t("p",{children:[t("strong",{children:[e("sections.contact.address","Address"),":"]})," ",m]}),a&&t("p",{children:[t("strong",{children:[e("sections.contact.dpo","Data Protection Officer"),":"]})," ",a]}),s.phone&&t("p",{children:[t("strong",{children:[e("sections.contact.phone","Phone"),":"]})," ",s.phone]}),s.supportEmail&&t("p",{children:[t("strong",{children:[e("sections.contact.support","Support Email"),":"]})," ",s.supportEmail]})]})]}),r.eu&&t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.eu.title","13. Legal Basis for Processing (EU Users)")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.eu.intro","For users in the European Union, our legal basis for processing your personal information includes:")}),o(n,{items:[t(i,{children:[t("strong",{children:[e("sections.eu.consent","Consent"),":"]})," ",e("sections.eu.consentDesc","When you explicitly agree to our processing")]}),t(i,{children:[t("strong",{children:[e("sections.eu.contract","Contract Performance"),":"]})," ",e("sections.eu.contractDesc","To provide our services under our terms")]}),t(i,{children:[t("strong",{children:[e("sections.eu.legitimate","Legitimate Interest"),":"]})," ",e("sections.eu.legitimateDesc","To improve our services and prevent fraud")]}),t(i,{children:[t("strong",{children:[e("sections.eu.legal","Legal Obligation"),":"]})," ",e("sections.eu.legalDesc","To comply with applicable laws and regulations")]})],style:{paddingInlineStart:"1.5rem"}})]}),r.california&&t("section",{children:[o("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.california.title","14. California Privacy Rights (CCPA)")}),o("p",{style:{marginBottom:"1rem"},children:e("sections.california.desc","California residents have additional rights under the California Consumer Privacy Act (CCPA), including the right to know what personal information we collect and how we use it, the right to delete personal information, and the right to opt out of the sale of personal information.")})]})]}),o("div",{className:"dndev-text-center",style:{marginTop:"3rem",paddingTop:"2rem",borderTop:"1px solid var(--border)",fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:t("p",{children:[e("footer.effective","This Privacy Policy is effective as of")," ",l," ",e("footer.remain","and will remain in effect except with respect to any changes in its provisions in the future.")]})})]})})};export{w as PrivacyPolicyTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TermsOfServiceTemplate.d.ts","sourceRoot":"","sources":["../../src/legal/TermsOfServiceTemplate.tsx"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,QAAQ,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,EAAE,CAAC,EAAE,OAAO,CAAC;KACd,CAAC;IACF,iCAAiC;IACjC,WAAW,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+BAA+B;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2BAA2B;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"TermsOfServiceTemplate.d.ts","sourceRoot":"","sources":["../../src/legal/TermsOfServiceTemplate.tsx"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,QAAQ,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,EAAE,CAAC,EAAE,OAAO,CAAC;KACd,CAAC;IACF,iCAAiC;IACjC,WAAW,CAAC,EAAE;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+BAA+B;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2BAA2B;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC,oBAAoB,CAg7BtE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{Stack as u}from"@donotdev/components";import{useTranslation as g,formatDate as f}from"@donotdev/core";const p=({companyName:o,websiteUrl:y,legalEmail:s,companyAddress:a,lastUpdated:c,sections:v={children:!0,international:!0,california:!0,eu:!0},contactInfo:n={},jurisdiction:l="the United States",arbitrationOrg:m="American Arbitration Association",arbitrationLocation:d="New York, NY"})=>{const{t:e,i18n:h}=g("terms"),r=f(c,h?.language||"en");return t("div",{children:i("div",{style:{maxWidth:"none"},children:[i("div",{className:"dndev-text-center",style:{marginBottom:"3rem"},children:[i("h1",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700,marginBottom:"1rem"},children:["\u{1F4CB} ",e("title","Terms of Service")]}),i("p",{style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)"},children:[e("lastUpdated","Last updated"),": ",r]})]}),i(u,{gap:"large",children:[i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.introduction.title","1. Introduction")}),i("p",{style:{marginBottom:"1rem"},children:[e("sections.introduction.welcome","Welcome to")," ",o," ",'("',e("common.we","we"),'," "',e("common.our","our"),',"'," ",e("common.or","or"),' "',e("common.us","us"),'").'," ",e("sections.introduction.govern",'These Terms of Service ("Terms") govern your use of our development framework, tools, and services (collectively, the "Service"). By accessing or using our Service, you agree to be bound by these Terms.')]}),t("p",{children:e("sections.introduction.organization","If you are using our Service on behalf of an organization, you represent that you have the authority to bind that organization to these Terms. If you do not agree to these Terms, please do not use our Service.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.service.title","2. Service Description")}),i("p",{style:{marginBottom:"1rem"},children:[o," ",e("sections.service.description","is a comprehensive development framework that provides tools, components, and infrastructure for building modern web applications. Our Service includes:")]}),i("ul",{className:"dndev-grid dndev-gap-sm",style:{listStyleType:"disc",paddingInlineStart:"1.5rem"},children:[t("li",{children:e("sections.service.framework","Development framework and libraries")}),t("li",{children:e("sections.service.ui","UI components and design system")}),t("li",{children:e("sections.service.auth","Authentication and authorization services")}),t("li",{children:e("sections.service.i18n","Internationalization and localization tools")}),t("li",{children:e("sections.service.billing","Billing and subscription management")}),t("li",{children:e("sections.service.docs","Documentation and support resources")})]})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.account.title","3. Account Registration and Security")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.account.creation.title","3.1 Account Creation")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.account.creation.desc","To access certain features of our Service, you must create an account. You agree to provide accurate, current, and complete information during registration and to update such information to keep it accurate, current, and complete.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.account.security.title","3.2 Account Security")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.account.security.desc","You are responsible for safeguarding your account credentials and for all activities that occur under your account. You agree to notify us immediately of any unauthorized use of your account or any other breach of security.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.account.eligibility.title","3.3 Account Eligibility")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.account.eligibility.desc","You must be at least 13 years old to use our Service. If you are under 18, you must have parental or guardian consent to use our Service.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.acceptable.title","4. Acceptable Use Policy")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.acceptable.intro","You agree to use our Service only for lawful purposes and in accordance with these Terms. You agree not to:")}),i("ul",{className:"dndev-grid dndev-gap-sm",style:{listStyleType:"disc",paddingInlineStart:"1.5rem"},children:[t("li",{children:e("sections.acceptable.laws","Use the Service to violate any applicable laws or regulations")}),t("li",{children:e("sections.acceptable.infringe","Infringe upon the intellectual property rights of others")}),t("li",{children:e("sections.acceptable.harmful","Transmit harmful, offensive, or inappropriate content")}),t("li",{children:e("sections.acceptable.unauthorized","Attempt to gain unauthorized access to our systems or other users' accounts")}),t("li",{children:e("sections.acceptable.spam","Use the Service for spam, phishing, or other malicious activities")}),t("li",{children:e("sections.acceptable.disrupt","Interfere with or disrupt the Service or servers")}),t("li",{children:e("sections.acceptable.reverse","Reverse engineer, decompile, or disassemble our software")}),t("li",{children:e("sections.acceptable.automated","Use automated systems to access the Service without permission")}),t("li",{children:e("sections.acceptable.share","Share your account credentials with others")}),t("li",{children:e("sections.acceptable.competing","Use the Service to build competing products or services")})]})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.payment.title","5. Subscription and Payment Terms")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.payment.plans.title","5.1 Subscription Plans")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.payment.plans.desc","We offer various subscription plans with different features and pricing. Subscription details, including pricing and features, are available on our website and may be updated from time to time.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.payment.processing.title","5.2 Payment Processing")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.payment.processing.desc","Payments are processed through secure third-party payment processors. You authorize us to charge your payment method for all fees associated with your subscription.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.payment.billing.title","5.3 Billing and Renewal")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.payment.billing.desc","Subscriptions automatically renew unless cancelled before the renewal date. You will be charged the applicable subscription fee on each renewal date.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.payment.refunds.title","5.4 Refunds and Cancellation")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.payment.refunds.desc","You may cancel your subscription at any time through your account settings. Refunds are provided in accordance with our refund policy, which may vary by plan and usage.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.ip.title","6. Intellectual Property Rights")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.ip.ours.title","6.1 Our Intellectual Property")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.ip.ours.desc","The Service, including all software, content, and materials, is owned by us or our licensors and is protected by intellectual property laws. We grant you a limited, non-exclusive, non-transferable license to use the Service in accordance with these Terms.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.ip.yours.title","6.2 Your Content")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.ip.yours.desc","You retain ownership of any content you create using our Service. You grant us a license to use, store, and process your content solely to provide and improve our Service.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.ip.opensource.title","6.3 Open Source Components")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.ip.opensource.desc","Our Service may include open source software components. The use of such components is subject to their respective open source licenses.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.privacy.title","7. Privacy and Data Protection")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.privacy.desc","Your privacy is important to us. Our collection and use of your personal information is governed by our Privacy Policy, which is incorporated into these Terms by reference.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.availability.title","8. Service Availability and Support")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.availability.service.title","8.1 Service Availability")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.availability.service.desc","We strive to maintain high service availability but do not guarantee uninterrupted access. The Service may be temporarily unavailable due to maintenance, updates, or other factors beyond our control.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.availability.support.title","8.2 Support Services")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.availability.support.desc","Support availability varies by subscription plan. We provide support through documentation, community forums, and direct support channels as specified in your plan.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.availability.updates.title","8.3 Updates and Changes")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.availability.updates.desc","We may update the Service from time to time to improve functionality, security, or user experience. We will provide reasonable notice of significant changes that may affect your use of the Service.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.termination.title","9. Termination and Suspension")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.termination.you.title","9.1 Termination by You")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.termination.you.desc","You may terminate your account at any time by cancelling your subscription and deleting your account through your account settings.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.termination.us.title","9.2 Termination by Us")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.termination.us.desc","We may terminate or suspend your account immediately if you violate these Terms, engage in fraudulent activity, or for any other reason at our sole discretion.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.termination.effect.title","9.3 Effect of Termination")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.termination.effect.desc","Upon termination, your right to use the Service ceases immediately. We may delete your account data in accordance with our data retention policies.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.disclaimers.title","10. Disclaimers and Limitations")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.disclaimers.service.title","10.1 Service Disclaimers")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.disclaimers.service.desc",'THE SERVICE IS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.')}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.disclaimers.liability.title","10.2 Limitation of Liability")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.disclaimers.liability.desc","TO THE MAXIMUM EXTENT PERMITTED BY LAW, WE SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, INCLUDING BUT NOT LIMITED TO LOSS OF PROFITS, DATA, OR USE, INCURRED BY YOU OR ANY THIRD PARTY.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.disclaimers.maximum.title","10.3 Maximum Liability")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.disclaimers.maximum.desc","OUR TOTAL LIABILITY TO YOU FOR ANY CLAIMS ARISING OUT OF OR RELATING TO THESE TERMS OR THE SERVICE SHALL NOT EXCEED THE AMOUNT PAID BY YOU FOR THE SERVICE IN THE TWELVE MONTHS PRECEDING THE CLAIM.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.indemnification.title","11. Indemnification")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.indemnification.desc","You agree to indemnify, defend, and hold harmless us and our officers, directors, employees, and agents from and against any claims, damages, losses, and expenses arising out of or relating to your use of the Service or violation of these Terms.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.governing.title","12. Governing Law and Dispute Resolution")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.governing.law.title","12.1 Governing Law")}),i("p",{style:{marginBottom:"1rem"},children:[e("sections.governing.law.desc","These Terms are governed by and construed in accordance with the laws of")," ",l,","," ",e("sections.governing.law.without","without regard to its conflict of law principles.")]}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.governing.dispute.title","12.2 Dispute Resolution")}),i("p",{style:{marginBottom:"1rem"},children:[e("sections.governing.dispute.desc","Any disputes arising out of or relating to these Terms or the Service shall be resolved through binding arbitration in accordance with the rules of")," ",m,"."," ",e("sections.governing.dispute.location","The arbitration shall be conducted in")," ",d,"."]}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.governing.class.title","12.3 Class Action Waiver")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.governing.class.desc","You agree that any arbitration or legal proceeding will be conducted on an individual basis and not as a class action or representative action.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.miscellaneous.title","13. Miscellaneous")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.miscellaneous.entire.title","13.1 Entire Agreement")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.miscellaneous.entire.desc","These Terms, together with our Privacy Policy, constitute the entire agreement between you and us regarding the Service and supersede all prior agreements and understandings.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.miscellaneous.severability.title","13.2 Severability")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.miscellaneous.severability.desc","If any provision of these Terms is held to be invalid or unenforceable, the remaining provisions will continue in full force and effect.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.miscellaneous.waiver.title","13.3 Waiver")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.miscellaneous.waiver.desc","Our failure to enforce any provision of these Terms does not constitute a waiver of that provision or any other provision.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.miscellaneous.assignment.title","13.4 Assignment")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.miscellaneous.assignment.desc","You may not assign or transfer your rights or obligations under these Terms without our written consent. We may assign these Terms without restriction.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.miscellaneous.force.title","13.5 Force Majeure")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.miscellaneous.force.desc","We shall not be liable for any failure to perform our obligations due to circumstances beyond our reasonable control, including but not limited to natural disasters, war, terrorism, or government actions.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.changes.title","14. Changes to These Terms")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.changes.desc",'We may update these Terms from time to time to reflect changes in our practices or applicable laws. We will notify you of any material changes by posting the updated Terms on our website and updating the "Last updated" date.')})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.contact.title","15. Contact Us")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.contact.intro","If you have any questions about these Terms of Service, please contact us:")}),i("div",{className:"dndev-grid dndev-gap-sm",style:{backgroundColor:"color-mix(in oklab, var(--muted) 50%, transparent)",padding:"1rem",borderRadius:"var(--radius-lg)"},children:[i("p",{children:[i("strong",{children:[e("sections.contact.email","Email"),":"]})," ",s]}),i("p",{children:[i("strong",{children:[e("sections.contact.address","Address"),":"]})," ",a]}),n.phone&&i("p",{children:[i("strong",{children:[e("sections.contact.phone","Phone"),":"]})," ",n.phone]}),n.supportEmail&&i("p",{children:[i("strong",{children:[e("sections.contact.support","Support Email"),":"]})," ",n.supportEmail]})]})]})]}),t("div",{className:"dndev-text-center",style:{marginTop:"3rem",paddingTop:"2rem",borderTop:"1px solid var(--border)",fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:i("p",{children:[e("footer.effective","These Terms of Service are effective as of")," ",r," ",e("footer.remain","and will remain in effect except with respect to any changes in its provisions in the future.")]})})]})})};export{p as TermsOfServiceTemplate};
|
|
1
|
+
"use client";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{Stack as u}from"@donotdev/components";import{useTranslation as g,formatDate as f}from"@donotdev/core";const z=({companyName:o,websiteUrl:p,legalEmail:s,companyAddress:a,lastUpdated:c,sections:y={children:!0,international:!0,california:!0,eu:!0},contactInfo:n={},jurisdiction:l="the United States",arbitrationOrg:m="American Arbitration Association",arbitrationLocation:d="New York, NY"})=>{const{t:e,i18n:h}=g("terms"),r=f(c,h?.language||"en");return t("div",{children:i("div",{style:{maxWidth:"none"},children:[i("div",{className:"dndev-text-center",style:{marginBottom:"3rem"},children:[i("h1",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700,marginBottom:"1rem"},children:["\u{1F4CB} ",e("title","Terms of Service")]}),i("p",{style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)"},children:[e("lastUpdated","Last updated"),": ",r]})]}),i(u,{gap:"large",children:[i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.introduction.title","1. Introduction")}),i("p",{style:{marginBottom:"1rem"},children:[e("sections.introduction.welcome","Welcome to")," ",o," ",'("',e("common.we","we"),'," "',e("common.our","our"),',"'," ",e("common.or","or"),' "',e("common.us","us"),'").'," ",e("sections.introduction.govern",'These Terms of Service ("Terms") govern your use of our development framework, tools, and services (collectively, the "Service"). By accessing or using our Service, you agree to be bound by these Terms.')]}),t("p",{children:e("sections.introduction.organization","If you are using our Service on behalf of an organization, you represent that you have the authority to bind that organization to these Terms. If you do not agree to these Terms, please do not use our Service.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.service.title","2. Service Description")}),i("p",{style:{marginBottom:"1rem"},children:[o," ",e("sections.service.description","is a comprehensive development framework that provides tools, components, and infrastructure for building modern web applications. Our Service includes:")]}),i("ul",{className:"dndev-grid dndev-gap-sm",style:{listStyleType:"disc",paddingInlineStart:"1.5rem"},children:[t("li",{children:e("sections.service.framework","Development framework and libraries")}),t("li",{children:e("sections.service.ui","UI components and design system")}),t("li",{children:e("sections.service.auth","Authentication and authorization services")}),t("li",{children:e("sections.service.i18n","Internationalization and localization tools")}),t("li",{children:e("sections.service.billing","Billing and subscription management")}),t("li",{children:e("sections.service.docs","Documentation and support resources")})]})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.account.title","3. Account Registration and Security")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.account.creation.title","3.1 Account Creation")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.account.creation.desc","To access certain features of our Service, you must create an account. You agree to provide accurate, current, and complete information during registration and to update such information to keep it accurate, current, and complete.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.account.security.title","3.2 Account Security")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.account.security.desc","You are responsible for safeguarding your account credentials and for all activities that occur under your account. You agree to notify us immediately of any unauthorized use of your account or any other breach of security.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.account.eligibility.title","3.3 Account Eligibility")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.account.eligibility.desc","You must be at least 13 years old to use our Service. If you are under 18, you must have parental or guardian consent to use our Service.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.acceptable.title","4. Acceptable Use Policy")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.acceptable.intro","You agree to use our Service only for lawful purposes and in accordance with these Terms. You agree not to:")}),i("ul",{className:"dndev-grid dndev-gap-sm",style:{listStyleType:"disc",paddingInlineStart:"1.5rem"},children:[t("li",{children:e("sections.acceptable.laws","Use the Service to violate any applicable laws or regulations")}),t("li",{children:e("sections.acceptable.infringe","Infringe upon the intellectual property rights of others")}),t("li",{children:e("sections.acceptable.harmful","Transmit harmful, offensive, or inappropriate content")}),t("li",{children:e("sections.acceptable.unauthorized","Attempt to gain unauthorized access to our systems or other users' accounts")}),t("li",{children:e("sections.acceptable.spam","Use the Service for spam, phishing, or other malicious activities")}),t("li",{children:e("sections.acceptable.disrupt","Interfere with or disrupt the Service or servers")}),t("li",{children:e("sections.acceptable.reverse","Reverse engineer, decompile, or disassemble our software")}),t("li",{children:e("sections.acceptable.automated","Use automated systems to access the Service without permission")}),t("li",{children:e("sections.acceptable.share","Share your account credentials with others")}),t("li",{children:e("sections.acceptable.competing","Use the Service to build competing products or services")})]})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.payment.title","5. Subscription and Payment Terms")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.payment.plans.title","5.1 Subscription Plans")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.payment.plans.desc","We offer various subscription plans with different features and pricing. Subscription details, including pricing and features, are available on our website and may be updated from time to time.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.payment.processing.title","5.2 Payment Processing")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.payment.processing.desc","Payments are processed through secure third-party payment processors. You authorize us to charge your payment method for all fees associated with your subscription.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.payment.billing.title","5.3 Billing and Renewal")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.payment.billing.desc","Subscriptions automatically renew unless cancelled before the renewal date. You will be charged the applicable subscription fee on each renewal date.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.payment.refunds.title","5.4 Refunds and Cancellation")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.payment.refunds.desc","You may cancel your subscription at any time through your account settings. Refunds are provided in accordance with our refund policy, which may vary by plan and usage.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.ip.title","6. Intellectual Property Rights")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.ip.ours.title","6.1 Our Intellectual Property")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.ip.ours.desc","The Service, including all software, content, and materials, is owned by us or our licensors and is protected by intellectual property laws. We grant you a limited, non-exclusive, non-transferable license to use the Service in accordance with these Terms.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.ip.yours.title","6.2 Your Content")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.ip.yours.desc","You retain ownership of any content you create using our Service. You grant us a license to use, store, and process your content solely to provide and improve our Service.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.ip.opensource.title","6.3 Open Source Components")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.ip.opensource.desc","Our Service may include open source software components. The use of such components is subject to their respective open source licenses.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.privacy.title","7. Privacy and Data Protection")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.privacy.desc","Your privacy is important to us. Our collection and use of your personal information is governed by our Privacy Policy, which is incorporated into these Terms by reference.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.availability.title","8. Service Availability and Support")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.availability.service.title","8.1 Service Availability")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.availability.service.desc","We strive to maintain high service availability but do not guarantee uninterrupted access. The Service may be temporarily unavailable due to maintenance, updates, or other factors beyond our control.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.availability.support.title","8.2 Support Services")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.availability.support.desc","Support availability varies by subscription plan. We provide support through documentation, community forums, and direct support channels as specified in your plan.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.availability.updates.title","8.3 Updates and Changes")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.availability.updates.desc","We may update the Service from time to time to improve functionality, security, or user experience. We will provide reasonable notice of significant changes that may affect your use of the Service.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.termination.title","9. Termination and Suspension")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.termination.you.title","9.1 Termination by You")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.termination.you.desc","You may terminate your account at any time by cancelling your subscription and deleting your account through your account settings.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.termination.us.title","9.2 Termination by Us")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.termination.us.desc","We may terminate or suspend your account immediately if you violate these Terms, engage in fraudulent activity, or for any other reason at our sole discretion.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.termination.effect.title","9.3 Effect of Termination")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.termination.effect.desc","Upon termination, your right to use the Service ceases immediately. We may delete your account data in accordance with our data retention policies.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.disclaimers.title","10. Disclaimers and Limitations")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.disclaimers.service.title","10.1 Service Disclaimers")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.disclaimers.service.desc",'THE SERVICE IS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.')}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.disclaimers.liability.title","10.2 Limitation of Liability")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.disclaimers.liability.desc","TO THE MAXIMUM EXTENT PERMITTED BY LAW, WE SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, INCLUDING BUT NOT LIMITED TO LOSS OF PROFITS, DATA, OR USE, INCURRED BY YOU OR ANY THIRD PARTY.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.disclaimers.maximum.title","10.3 Maximum Liability")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.disclaimers.maximum.desc","OUR TOTAL LIABILITY TO YOU FOR ANY CLAIMS ARISING OUT OF OR RELATING TO THESE TERMS OR THE SERVICE SHALL NOT EXCEED THE AMOUNT PAID BY YOU FOR THE SERVICE IN THE TWELVE MONTHS PRECEDING THE CLAIM.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.indemnification.title","11. Indemnification")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.indemnification.desc","You agree to indemnify, defend, and hold harmless us and our officers, directors, employees, and agents from and against any claims, damages, losses, and expenses arising out of or relating to your use of the Service or violation of these Terms.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.governing.title","12. Governing Law and Dispute Resolution")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.governing.law.title","12.1 Governing Law")}),i("p",{style:{marginBottom:"1rem"},children:[e("sections.governing.law.desc","These Terms are governed by and construed in accordance with the laws of")," ",l,","," ",e("sections.governing.law.without","without regard to its conflict of law principles.")]}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.governing.dispute.title","12.2 Dispute Resolution")}),i("p",{style:{marginBottom:"1rem"},children:[e("sections.governing.dispute.desc","Any disputes arising out of or relating to these Terms or the Service shall be resolved through binding arbitration in accordance with the rules of")," ",m,"."," ",e("sections.governing.dispute.location","The arbitration shall be conducted in")," ",d,"."]}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.governing.class.title","12.3 Class Action Waiver")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.governing.class.desc","You agree that any arbitration or legal proceeding will be conducted on an individual basis and not as a class action or representative action.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.miscellaneous.title","13. Miscellaneous")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.miscellaneous.entire.title","13.1 Entire Agreement")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.miscellaneous.entire.desc","These Terms, together with our Privacy Policy, constitute the entire agreement between you and us regarding the Service and supersede all prior agreements and understandings.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.miscellaneous.severability.title","13.2 Severability")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.miscellaneous.severability.desc","If any provision of these Terms is held to be invalid or unenforceable, the remaining provisions will continue in full force and effect.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.miscellaneous.waiver.title","13.3 Waiver")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.miscellaneous.waiver.desc","Our failure to enforce any provision of these Terms does not constitute a waiver of that provision or any other provision.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.miscellaneous.assignment.title","13.4 Assignment")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.miscellaneous.assignment.desc","You may not assign or transfer your rights or obligations under these Terms without our written consent. We may assign these Terms without restriction.")}),t("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,marginBottom:"0.75rem"},children:e("sections.miscellaneous.force.title","13.5 Force Majeure")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.miscellaneous.force.desc","We shall not be liable for any failure to perform our obligations due to circumstances beyond our reasonable control, including but not limited to natural disasters, war, terrorism, or government actions.")})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.changes.title","14. Changes to These Terms")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.changes.desc",'We may update these Terms from time to time to reflect changes in our practices or applicable laws. We will notify you of any material changes by posting the updated Terms on our website and updating the "Last updated" date.')})]}),i("section",{children:[t("h2",{style:{fontSize:"var(--font-size-xl)",fontWeight:600,marginBottom:"1rem"},children:e("sections.contact.title","15. Contact Us")}),t("p",{style:{marginBottom:"1rem"},children:e("sections.contact.intro","If you have any questions about these Terms of Service, please contact us:")}),i("div",{className:"dndev-grid dndev-gap-sm",style:{backgroundColor:"color-mix(in oklab, var(--muted) 50%, transparent)",padding:"1rem",borderRadius:"var(--radius-lg)"},children:[i("p",{children:[i("strong",{children:[e("sections.contact.email","Email"),":"]})," ",s]}),i("p",{children:[i("strong",{children:[e("sections.contact.address","Address"),":"]})," ",a]}),n.phone&&i("p",{children:[i("strong",{children:[e("sections.contact.phone","Phone"),":"]})," ",n.phone]}),n.supportEmail&&i("p",{children:[i("strong",{children:[e("sections.contact.support","Support Email"),":"]})," ",n.supportEmail]})]})]})]}),t("div",{className:"dndev-text-center",style:{marginTop:"3rem",paddingTop:"2rem",borderTop:"1px solid var(--border)",fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:i("p",{children:[e("footer.effective","These Terms of Service are effective as of")," ",r," ",e("footer.remain","and will remain in effect except with respect to any changes in its provisions in the future.")]})})]})})};export{z as TermsOfServiceTemplate};
|