// Code generated by templ - DO NOT EDIT.

// templ: version: v0.2.663
package dev_kesimpulan

//lint:file-ignore SA4006 This context is only used if a nested component is present.

import "github.com/a-h/templ"
import "context"
import "io"
import "bytes"

import (
	"cpone/component/customtextfield"
	"cpone/layout"
	"cpone/models"
)

func MainKesimpulan(
	tableID string,
	tablecontent templ.Component,
	tablecontentnonlab templ.Component,
	tablecontentfisik templ.Component,
) templ.Component {
	return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer)
		if !templ_7745c5c3_IsBuffer {
			templ_7745c5c3_Buffer = templ.GetBuffer()
			defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
		}
		ctx = templ.InitializeContext(ctx)
		templ_7745c5c3_Var1 := templ.GetChildren(ctx)
		if templ_7745c5c3_Var1 == nil {
			templ_7745c5c3_Var1 = templ.NopComponent
		}
		ctx = templ.ClearChildren(ctx)
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"container-fluid\">")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		templ_7745c5c3_Err = customtextfield.CustomTextFieldv2(models.CustomTextFieldv2Prm{ID: "tableID",
			Name:  "tableID",
			Type:  "hidden",
			Value: tableID}).Render(ctx, templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"d-flex justify-content-center pt-10 pb-10\"><h2 class=\"title text-black\" style=\"margin-bottom: 0\">Kesimpulan</h2></div>")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		templ_7745c5c3_Err = tablecontent.Render(ctx, templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		templ_7745c5c3_Err = tablecontentnonlab.Render(ctx, templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		templ_7745c5c3_Err = tablecontentfisik.Render(ctx, templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div>")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		if !templ_7745c5c3_IsBuffer {
			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W)
		}
		return templ_7745c5c3_Err
	})
}

func CssKesimpulan() templ.Component {
	return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer)
		if !templ_7745c5c3_IsBuffer {
			templ_7745c5c3_Buffer = templ.GetBuffer()
			defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
		}
		ctx = templ.InitializeContext(ctx)
		templ_7745c5c3_Var2 := templ.GetChildren(ctx)
		if templ_7745c5c3_Var2 == nil {
			templ_7745c5c3_Var2 = templ.NopComponent
		}
		ctx = templ.ClearChildren(ctx)
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<link rel=\"stylesheet\" href=\"assets/css/googlefont/poppins.css\"><link rel=\"stylesheet\" href=\"assets/css/googlefont/publicsans.css\"><link rel=\"stylesheet\" href=\"assets/css/googlefont/roboto.css\"><style>\r\n      #canvas {\r\n        /* overflow-x: scroll; */\r\n        margin: 40px 10vw 40px 10vw;\r\n      }\r\n      #title {\r\n        font-weight: 600;\r\n      }\r\n      .breadcrumb {\r\n        background-color: white;\r\n        padding: 0px 0px !important;\r\n        padding-left: 0 !important;\r\n      }\r\n\r\n      .breadcrumb-item a {\r\n        color: #3f4254;\r\n        font-family: Poppins;\r\n        font-size: 13px;\r\n        font-style: normal;\r\n        font-weight: 500;\r\n        line-height: 21px;\r\n      }\r\n\r\n      .breadcrumb-item.active {\r\n        color: #b5b5c3;\r\n        font-family: Poppins;\r\n        font-size: 13px;\r\n        font-style: normal;\r\n        font-weight: 500;\r\n        line-height: 21px;\r\n      }\r\n      .nav-tabs {\r\n        border-bottom: 0px solid #000000 !important;\r\n      }\r\n      .nav-link {\r\n        color: #637381;\r\n        font-family: Public Sans;\r\n        font-size: 14px;\r\n        font-style: normal;\r\n        font-weight: 600;\r\n        line-height: 22px;\r\n        text-align: center;\r\n      }\r\n\r\n      .nav-link.active {\r\n        color: #212b36 !important; /* Warna teks untuk tab yang aktif */\r\n        border-bottom: 2px solid #0c518c !important; /* Garis bawah untuk tab yang aktif */\r\n        font-family: Public Sans;\r\n        font-size: 14px;\r\n        font-style: normal;\r\n        font-weight: 600;\r\n        line-height: 22px;\r\n        text-align: center;\r\n      }\r\n\r\n      th {\r\n        color: #637381;\r\n        font-family: Roboto;\r\n        font-weight: 700 !important;\r\n        font-size: 14px !important;\r\n        padding-bottom: 5px !important;\r\n        padding-left: 1px !important;\r\n        border-bottom: 1pt dashed #e4e6ef !important;\r\n      }\r\n      tr {\r\n        border-bottom: 1pt dashed #e4e6ef !important;\r\n        font-family: Roboto;\r\n      }\r\n      td {\r\n        color: #0e1e28;\r\n        font-family: Roboto;\r\n        font-style: normal;\r\n        font-weight: 500 !important;\r\n        font-size: 16px !important;\r\n        line-height: 30px; /* 187.5% */\r\n        letter-spacing: -0.32px;\r\n        padding-left: 1px !important;\r\n        padding-top: 16px !important;\r\n        padding-bottom: 16px !important;\r\n      }\r\n      thead {\r\n        border-bottom: 1pt dashed #e4e6ef !important;\r\n      }\r\n      .kesimpulan-desc {\r\n        color: #0e1e28;\r\n        font-family: Roboto;\r\n        font-size: 12px;\r\n        font-style: normal;\r\n        font-weight: 500;\r\n        line-height: normal;\r\n        letter-spacing: -0.24px;\r\n      }\r\n      .label-text {\r\n        background-color: grey;\r\n        color: black;\r\n        padding: 5px 20px 5px 20px !important;\r\n        border-radius: 6px;\r\n        font-family: Poppins !important;\r\n        font-size: 11px !important;\r\n        font-style: normal !important;\r\n        font-weight: 500 !important;\r\n        line-height: normal !important;\r\n      }\r\n      .label-text.fit {\r\n        background: #c9f7f5;\r\n        color: #1bc5bd;\r\n        padding: 5px 20px 5px 20px !important;\r\n        border-radius: 6px;\r\n        font-family: Poppins !important;\r\n        font-size: 11px !important;\r\n        font-style: normal !important;\r\n        font-weight: 500 !important;\r\n        line-height: normal !important;\r\n      }\r\n      .label-text.unfit {\r\n        background: #fff4de;\r\n        color: #ffa800;\r\n        padding: 5px 20px 5px 20px !important;\r\n        border-radius: 6px;\r\n        font-family: Poppins !important;\r\n        font-size: 11px !important;\r\n        font-style: normal !important;\r\n        font-weight: 500 !important;\r\n        line-height: normal !important;\r\n      }\r\n\r\n      .iconify-btn {\r\n        color: #637381 !important;\r\n        width: 23px !important;\r\n        height: 23px !important;\r\n        margin-right: 1em;\r\n      }\r\n      .iconify-btn-blue {\r\n        color: #0c518c !important;\r\n        width: 23px !important;\r\n        height: 23px !important;\r\n        margin-right: 1em;\r\n      }\r\n      .modal-header {\r\n        border-bottom: none !important;\r\n      }\r\n      .modal-title {\r\n        font-family: \"Public Sans\" !important;\r\n        font-size: 18px !important;\r\n        font-style: normal !important;\r\n        font-weight: 700 !important;\r\n        line-height: 28px !important;\r\n      }\r\n      .modal-dialog {\r\n        border-radius: 8px;\r\n      }\r\n      .btn-print {\r\n        border-radius: 6px !important;\r\n        background-color: #f5f8fa !important;\r\n        font-family: Roboto;\r\n        font-size: 14px;\r\n        margin-bottom: 12px;\r\n        font-style: normal;\r\n        font-weight: 500;\r\n        line-height: normal;\r\n        display: flex;\r\n        width: 100%;\r\n        justify-content: space-between;\r\n        align-items: center;\r\n      }\r\n      .modal-xl {\r\n        border-radius: 6px !important;\r\n        max-width: 90vw !important;\r\n        max-height: 95vh !important;\r\n        width: 90vw !important;\r\n        height: 95vh !important;\r\n      }\r\n      .header-print {\r\n        background-color: #d9d9d9;\r\n      }\r\n      .modal-print-title {\r\n        color: #000;\r\n        font-family: \"Open Sans\";\r\n        font-size: 28px;\r\n        font-style: normal;\r\n        font-weight: 700;\r\n        line-height: normal;\r\n      }\r\n      .close-print {\r\n        color: red !important;\r\n        width: 30px !important;\r\n        height: 30px !important;\r\n      }\r\n      .form-label {\r\n        font-family: Poppins !important;\r\n        font-size: 14px !important;\r\n        font-style: normal !important;\r\n        font-weight: 600 !important;\r\n        line-height: 24px !important; /* 171.429% */\r\n      }\r\n      .form-input {\r\n        font-family: Poppins !important;\r\n        font-size: 16px !important;\r\n        font-style: normal !important;\r\n        font-weight: 400 !important;\r\n        line-height: 24px !important;\r\n      }\r\n      .btn-text {\r\n        font-family: \"Public Sans\";\r\n        font-size: 14px;\r\n        font-style: normal;\r\n        font-weight: 700;\r\n        line-height: 24px;\r\n      }\r\n      .dot-text {\r\n        position: relative;\r\n        padding-left: 1.5em; /* Menambahkan padding untuk memberi ruang pada titik */\r\n      }\r\n\r\n      .dot-text::before {\r\n        content: \"•\"; /* Menambahkan titik di depan teks */\r\n        position: absolute;\r\n        left: 1em; /* Atur posisi titik */\r\n        top: 0;\r\n        transform: translateX(-100%);\r\n      }\r\n\r\n      .information-title {\r\n        color: #0e1e28;\r\n        font-family: Poppins;\r\n        font-size: 20px;\r\n        font-style: normal;\r\n        font-weight: 600;\r\n        line-height: normal;\r\n      }\r\n    </style>")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		if !templ_7745c5c3_IsBuffer {
			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W)
		}
		return templ_7745c5c3_Err
	})
}

func JsKesimpulan() templ.Component {
	return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer)
		if !templ_7745c5c3_IsBuffer {
			templ_7745c5c3_Buffer = templ.GetBuffer()
			defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
		}
		ctx = templ.InitializeContext(ctx)
		templ_7745c5c3_Var3 := templ.GetChildren(ctx)
		if templ_7745c5c3_Var3 == nil {
			templ_7745c5c3_Var3 = templ.NopComponent
		}
		ctx = templ.ClearChildren(ctx)
		if !templ_7745c5c3_IsBuffer {
			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W)
		}
		return templ_7745c5c3_Err
	})
}

func ShowKesimpulan(title string, cmp templ.Component, css templ.Component, js templ.Component) templ.Component {
	return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer)
		if !templ_7745c5c3_IsBuffer {
			templ_7745c5c3_Buffer = templ.GetBuffer()
			defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
		}
		ctx = templ.InitializeContext(ctx)
		templ_7745c5c3_Var4 := templ.GetChildren(ctx)
		if templ_7745c5c3_Var4 == nil {
			templ_7745c5c3_Var4 = templ.NopComponent
		}
		ctx = templ.ClearChildren(ctx)
		templ_7745c5c3_Var5 := templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
			templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer)
			if !templ_7745c5c3_IsBuffer {
				templ_7745c5c3_Buffer = templ.GetBuffer()
				defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
			}
			templ_7745c5c3_Err = cmp.Render(ctx, templ_7745c5c3_Buffer)
			if templ_7745c5c3_Err != nil {
				return templ_7745c5c3_Err
			}
			if !templ_7745c5c3_IsBuffer {
				_, templ_7745c5c3_Err = io.Copy(templ_7745c5c3_W, templ_7745c5c3_Buffer)
			}
			return templ_7745c5c3_Err
		})
		templ_7745c5c3_Err = layout.PlaygroundLayout(title, css, js).Render(templ.WithChildren(ctx, templ_7745c5c3_Var5), templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		if !templ_7745c5c3_IsBuffer {
			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W)
		}
		return templ_7745c5c3_Err
	})
}
