{
    "version": "1.0.0",
    "layout_name": "plugin_settings",
    "permissions": [
        "core.plugins.update"
    ],
    "extends": "_admin_base",
    "meta": {
        "title": "$t:sirsoft-pay_nhnkcp.settings.title",
        "description": "$t:sirsoft-pay_nhnkcp.settings.description"
    },
    "data_sources": [
        {
            "id": "settings",
            "label_key": "$t:sirsoft-pay_nhnkcp.editor.data_source.settings",
            "type": "api",
            "endpoint": "/api/admin/plugins/{{route.identifier}}/settings",
            "method": "GET",
            "auto_fetch": true,
            "auth_required": true,
            "initLocal": "form",
            "refetchOnMount": true
        },
        {
            "id": "vbank_info",
            "label_key": "$t:sirsoft-pay_nhnkcp.editor.data_source.vbank_info",
            "type": "api",
            "endpoint": "/api/plugins/sirsoft-pay_nhnkcp/admin/vbank-notify-url",
            "method": "GET",
            "auto_fetch": true,
            "auth_required": true,
            "initLocal": "vbankInfo"
        },
        {
            "id": "health",
            "label_key": "$t:sirsoft-pay_nhnkcp.editor.data_source.health",
            "type": "api",
            "endpoint": "/api/plugins/sirsoft-pay_nhnkcp/admin/health",
            "method": "GET",
            "auto_fetch": true,
            "auth_required": true
        }
    ],
    "slots": {
        "content": [
            {
                "id": "plugin_settings_content",
                "type": "basic",
                "name": "Div",
                "dataKey": "form",
                "trackChanges": true,
                "props": {
                    "className": "p-4 sm:p-6 lg:p-8 min-h-screen bg-gray-50 dark:bg-gray-900"
                },
                "children": [
                    {
                        "id": "page_header",
                        "type": "composite",
                        "name": "PageHeader",
                        "props": {
                            "title": "$t:sirsoft-pay_nhnkcp.settings.title",
                            "description": "$t:sirsoft-pay_nhnkcp.settings.description",
                            "backPath": "/admin/plugins",
                            "backLabel": "$t:admin.plugins.back_to_list"
                        }
                    },
                    {
                        "id": "health_check_card",
                        "comment": "시스템 점검 — PC 결제(CLI 바이너리)와 모바일 결제(SOAP 확장) 사전조건 진단",
                        "type": "basic",
                        "name": "Div",
                        "if": "{{health.data}}",
                        "props": {
                            "className": "mt-6 rounded-lg bg-white dark:bg-gray-800 shadow-sm border border-gray-200 dark:border-gray-700"
                        },
                        "children": [
                            {
                                "comment": "헤더 — PC/모바일 결제 가능 여부 요약 + 새로고침 버튼",
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "flex items-center justify-between p-4 border-b border-gray-200 dark:border-gray-700"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": { "className": "flex-center gap-3" },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Icon",
                                                "props": {
                                                    "name": "{{health.data.summary.error_count > 0 ? 'triangle-exclamation' : (health.data.summary.warning_count > 0 ? 'circle-info' : 'circle-check')}}",
                                                    "className": "{{health.data.summary.error_count > 0 ? 'w-5 h-5 text-red-600 dark:text-red-400' : (health.data.summary.warning_count > 0 ? 'w-5 h-5 text-amber-500 dark:text-amber-400' : 'w-5 h-5 text-green-600 dark:text-green-400')}}"
                                                }
                                            },
                                            {
                                                "type": "basic",
                                                "name": "H2",
                                                "props": { "className": "text-base font-semibold text-gray-900 dark:text-gray-100" },
                                                "text": "시스템 점검"
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Span",
                                                "if": "{{health.data.summary.error_count > 0}}",
                                                "props": { "className": "ml-2 inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300" },
                                                "text": "오류 {{health.data.summary.error_count}}건"
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Span",
                                                "if": "{{health.data.summary.warning_count > 0}}",
                                                "props": { "className": "ml-2 inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300" },
                                                "text": "경고 {{health.data.summary.warning_count}}건"
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Span",
                                                "if": "{{health.data.summary.fixed_count > 0}}",
                                                "props": { "className": "ml-2 inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300" },
                                                "text": "자동 복구 {{health.data.summary.fixed_count}}건"
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Span",
                                                "if": "{{health.data.summary.error_count === 0 && health.data.summary.warning_count === 0 && health.data.summary.fixed_count === 0}}",
                                                "props": { "className": "ml-2 inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300" },
                                                "text": "모두 정상"
                                            }
                                        ]
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Button",
                                        "props": {
                                            "className": "px-3 py-1.5 text-sm border rounded hover:bg-gray-50 dark:hover:bg-gray-700 dark:border-gray-600 dark:text-gray-200 inline-flex items-center gap-1.5"
                                        },
                                        "children": [
                                            { "type": "basic", "name": "Icon", "props": { "name": "arrows-rotate", "className": "w-4 h-4" } },
                                            { "type": "basic", "name": "Span", "text": "다시 검사" }
                                        ],
                                        "actions": [
                                            {
                                                "type": "click",
                                                "handler": "refetchDataSource",
                                                "params": { "dataSourceId": "health" }
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "comment": "PC/모바일 카드/모바일 가상계좌 결제 가능 여부 요약 배지",
                                "type": "basic",
                                "name": "Div",
                                "props": { "className": "grid grid-cols-1 sm:grid-cols-3 gap-3 p-4 border-b border-gray-200 dark:border-gray-700" },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "{{health.data.summary.pc_payment_ready ? 'p-3 rounded border border-green-200 bg-green-50 dark:bg-green-900/20 dark:border-green-800' : 'p-3 rounded border border-red-200 bg-red-50 dark:bg-red-900/20 dark:border-red-800'}}"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": { "className": "flex-center gap-2" },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Icon",
                                                        "props": {
                                                            "name": "{{health.data.summary.pc_payment_ready ? 'circle-check' : 'circle-xmark'}}",
                                                            "className": "{{health.data.summary.pc_payment_ready ? 'w-4 h-4 text-green-600 dark:text-green-400' : 'w-4 h-4 text-red-600 dark:text-red-400'}}"
                                                        }
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "Span",
                                                        "props": { "className": "font-medium text-sm text-gray-900 dark:text-gray-100" },
                                                        "text": "PC 결제 (Standard Pay)"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "Span",
                                                        "props": {
                                                            "className": "{{health.data.summary.pc_payment_ready ? 'text-success-soft' : 'text-danger-soft'}}"
                                                        },
                                                        "text": "{{health.data.summary.pc_payment_ready ? '동작 가능' : '동작 불가'}}"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "basic",
                                                "name": "P",
                                                "props": { "className": "text-secondary text-xs mt-1 ml-6" },
                                                "text": "CLI 바이너리 필요"
                                            }
                                        ]
                                    },
                                    {
                                        "comment": "모바일 카드/일반결제 — SOAP + CLI 모두 필요 (KCP가 enc_data를 콜백으로 보냄)",
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "{{health.data.summary.mobile_payment_ready ? 'p-3 rounded border border-green-200 bg-green-50 dark:bg-green-900/20 dark:border-green-800' : 'p-3 rounded border border-red-200 bg-red-50 dark:bg-red-900/20 dark:border-red-800'}}"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": { "className": "flex-center gap-2" },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Icon",
                                                        "props": {
                                                            "name": "{{health.data.summary.mobile_payment_ready ? 'circle-check' : 'circle-xmark'}}",
                                                            "className": "{{health.data.summary.mobile_payment_ready ? 'w-4 h-4 text-green-600 dark:text-green-400' : 'w-4 h-4 text-red-600 dark:text-red-400'}}"
                                                        }
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "Span",
                                                        "props": { "className": "font-medium text-sm text-gray-900 dark:text-gray-100" },
                                                        "text": "모바일 카드/일반결제"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "Span",
                                                        "props": {
                                                            "className": "{{health.data.summary.mobile_payment_ready ? 'text-success-soft' : 'text-danger-soft'}}"
                                                        },
                                                        "text": "{{health.data.summary.mobile_payment_ready ? '동작 가능' : '동작 불가'}}"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "basic",
                                                "name": "P",
                                                "props": { "className": "text-secondary text-xs mt-1 ml-6" },
                                                "text": "SmartPhone Pay (SOAP) + CLI 바이너리 모두 필요"
                                            }
                                        ]
                                    },
                                    {
                                        "comment": "모바일 가상계좌 — SOAP만 필요 (KCP가 평문 콜백)",
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "{{health.data.summary.mobile_vbank_only_ready ? 'p-3 rounded border border-green-200 bg-green-50 dark:bg-green-900/20 dark:border-green-800' : 'p-3 rounded border border-red-200 bg-red-50 dark:bg-red-900/20 dark:border-red-800'}}"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": { "className": "flex-center gap-2" },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Icon",
                                                        "props": {
                                                            "name": "{{health.data.summary.mobile_vbank_only_ready ? 'circle-check' : 'circle-xmark'}}",
                                                            "className": "{{health.data.summary.mobile_vbank_only_ready ? 'w-4 h-4 text-green-600 dark:text-green-400' : 'w-4 h-4 text-red-600 dark:text-red-400'}}"
                                                        }
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "Span",
                                                        "props": { "className": "font-medium text-sm text-gray-900 dark:text-gray-100" },
                                                        "text": "모바일 가상계좌"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "Span",
                                                        "props": {
                                                            "className": "{{health.data.summary.mobile_vbank_only_ready ? 'text-success-soft' : 'text-danger-soft'}}"
                                                        },
                                                        "text": "{{health.data.summary.mobile_vbank_only_ready ? '동작 가능' : '동작 불가'}}"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "basic",
                                                "name": "P",
                                                "props": { "className": "text-secondary text-xs mt-1 ml-6" },
                                                "text": "SmartPhone Pay (SOAP) 만 필요 (평문 콜백)"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "comment": "개별 점검 항목 리스트",
                                "type": "basic",
                                "name": "Div",
                                "props": { "className": "divide-y dark:divide-gray-700" },
                                "iteration": {
                                    "source": "{{health.data.checks ?? []}}",
                                    "item_var": "check"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": { "className": "p-4" },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": { "className": "panel-header-row" },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Icon",
                                                        "props": {
                                                            "name": "{{check.status === 'ok' ? 'circle-check' : (check.status === 'fixed' ? 'wrench' : (check.status === 'warning' ? 'circle-info' : 'circle-xmark'))}}",
                                                            "className": "{{check.status === 'ok' ? 'w-5 h-5 text-green-600 dark:text-green-400 mt-0.5' : (check.status === 'fixed' ? 'w-5 h-5 text-blue-600 dark:text-blue-400 mt-0.5' : (check.status === 'warning' ? 'w-5 h-5 text-amber-500 dark:text-amber-400 mt-0.5' : 'w-5 h-5 text-red-600 dark:text-red-400 mt-0.5'))}}"
                                                        }
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "Div",
                                                        "props": { "className": "flex-1 min-w-0" },
                                                        "children": [
                                                            {
                                                                "type": "basic",
                                                                "name": "Div",
                                                                "props": { "className": "flex-center gap-2 flex-wrap" },
                                                                "children": [
                                                                    {
                                                                        "type": "basic",
                                                                        "name": "Span",
                                                                        "props": { "className": "text-sm font-medium text-gray-900 dark:text-gray-100" },
                                                                        "text": "{{check.label}}"
                                                                    },
                                                                    {
                                                                        "type": "basic",
                                                                        "name": "Span",
                                                                        "props": {
                                                                            "className": "{{check.category === 'pc' ? 'text-xs px-1.5 py-0.5 rounded bg-gray-100 dark:bg-gray-700 text-gray-600 dark:text-gray-300' : 'text-xs px-1.5 py-0.5 rounded bg-indigo-100 dark:bg-indigo-900/30 text-indigo-700 dark:text-indigo-300'}}"
                                                                        },
                                                                        "text": "{{check.category === 'pc' ? 'PC' : '모바일'}}"
                                                                    },
                                                                    {
                                                                        "type": "basic",
                                                                        "name": "Span",
                                                                        "if": "{{check.status === 'fixed'}}",
                                                                        "props": { "className": "text-xs px-1.5 py-0.5 rounded bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300" },
                                                                        "text": "자동 복구됨"
                                                                    }
                                                                ]
                                                            },
                                                            {
                                                                "type": "basic",
                                                                "name": "P",
                                                                "props": { "className": "text-secondary text-xs mt-1" },
                                                                "text": "{{check.detail}}"
                                                            },
                                                            {
                                                                "comment": "사용자 조치 안내 — error/warning에서만 표시",
                                                                "type": "basic",
                                                                "name": "Div",
                                                                "if": "{{check.remediation}}",
                                                                "props": { "className": "mt-2 p-2.5 rounded bg-amber-50 border border-amber-200 dark:bg-amber-900/20 dark:border-amber-800" },
                                                                "children": [
                                                                    {
                                                                        "type": "basic",
                                                                        "name": "P",
                                                                        "props": { "className": "text-xs font-medium text-amber-900 dark:text-amber-200 mb-1" },
                                                                        "text": "↓ 사용자 조치 필요"
                                                                    },
                                                                    {
                                                                        "type": "basic",
                                                                        "name": "Pre",
                                                                        "props": { "className": "text-xs text-amber-900 dark:text-amber-100 whitespace-pre-wrap font-mono leading-relaxed" },
                                                                        "text": "{{check.remediation}}"
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "validation_error",
                        "type": "basic",
                        "name": "Div",
                        "if": "{{_local.errors}}",
                        "props": {
                            "className": "alert-danger"
                        },
                        "children": [
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "flex gap-3"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Icon",
                                        "props": {
                                            "name": "triangle-exclamation",
                                            "className": "w-5 h-5 text-red-600 dark:text-red-400 dark:text-red-400 flex-shrink-0 mt-0.5"
                                        }
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "H3",
                                                "props": {
                                                    "className": "text-error-soft"
                                                },
                                                "text": "$t:admin.plugins.settings.validation_error"
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Ul",
                                                "if": "{{typeof _local.errors === 'object' && Object.keys(_local.errors).length > 0}}",
                                                "props": {
                                                    "className": "mt-2 list-disc list-inside space-y-1"
                                                },
                                                "iteration": {
                                                    "source": "Object.entries(_local.errors ?? {}).flatMap(([field, messages]) => Array.isArray(messages) ? messages : [messages])",
                                                    "item_var": "message"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Li",
                                                        "props": {
                                                            "className": "grid-3col-responsive"
                                                        },
                                                        "text": "{{message}}"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "test_mode_card",
                        "type": "basic",
                        "name": "Div",
                        "props": {
                            "className": "mt-6 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700"
                        },
                        "children": [
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "p-6"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "flex items-center justify-between"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Label",
                                                        "props": {
                                                            "className": "form-label"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.test_mode"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "form-hint"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.test_mode_hint"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "composite",
                                                "name": "Toggle",
                                                "props": {
                                                    "name": "is_test_mode"
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "live_mode_warning",
                        "type": "basic",
                        "name": "Div",
                        "if": "{{_local.form && !_local.form.is_test_mode}}",
                        "props": {
                            "className": "mt-6 bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-700 rounded-lg p-4"
                        },
                        "children": [
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "flex gap-3"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Icon",
                                        "props": {
                                            "name": "triangle-exclamation",
                                            "className": "w-5 h-5 text-amber-600 dark:text-amber-400 flex-shrink-0 mt-0.5"
                                        }
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "H3",
                                                "props": {
                                                    "className": "text-sm font-semibold text-warning-soft"
                                                },
                                                "text": "$t:sirsoft-pay_nhnkcp.settings.live_mode_warning_title"
                                            },
                                            {
                                                "type": "basic",
                                                "name": "P",
                                                "props": {
                                                    "className": "mt-1 text-warning-soft"
                                                },
                                                "text": "$t:sirsoft-pay_nhnkcp.settings.live_mode_warning_body"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "live_keys_section",
                        "type": "basic",
                        "name": "Div",
                        "props": {
                            "className": "mt-6 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700"
                        },
                        "children": [
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "flex-start justify-between px-6 py-4"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "H3",
                                        "props": {
                                            "className": "text-error-strong"
                                        },
                                        "text": "$t:sirsoft-pay_nhnkcp.settings.section_live_keys"
                                    }
                                ]
                            },
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "p-6 space-y-6"
                                },
                                "children": [
                                    {
                                        "id": "field_live_site_cd",
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "section-heading-md"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": {
                                                    "className": "lg:col-span-1"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Label",
                                                        "props": {
                                                            "className": "form-label"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.live_site_cd"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "form-hint"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.live_site_cd_hint"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": {
                                                    "className": "lg:col-span-2"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Div",
                                                        "props": {
                                                            "className": "flex rounded-lg border border-gray-300 dark:border-gray-600 overflow-hidden focus-within:ring-2 focus-within:ring-blue-500 dark:focus-within:ring-blue-400 focus-within:border-transparent"
                                                        },
                                                        "children": [
                                                            {
                                                                "type": "basic",
                                                                "name": "Span",
                                                                "props": {
                                                                    "className": "inline-flex items-center px-3 bg-gray-100 dark:bg-gray-600 border-r border-gray-300 dark:border-gray-600 text-body font-mono font-bold select-none"
                                                                },
                                                                "text": "SR"
                                                            },
                                                            {
                                                                "type": "basic",
                                                                "name": "Input",
                                                                "props": {
                                                                    "type": "text",
                                                                    "name": "live_site_cd",
                                                                    "placeholder": "xxxxxx",
                                                                    "className": "flex-1 font-mono outline-none border-0"
                                                                }
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "mt-1.5 text-tertiary"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.live_site_cd_example"
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "id": "field_live_site_key",
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "section-heading-md"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": {
                                                    "className": "lg:col-span-1"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Label",
                                                        "props": {
                                                            "className": "form-label"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.live_site_key"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "form-hint"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.live_site_key_hint"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": {
                                                    "className": "lg:col-span-2"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Input",
                                                        "props": {
                                                            "type": "password",
                                                            "name": "live_site_key",
                                                            "placeholder": "••••••••••••••••",
                                                            "className": "dark:focus:ring-blue-400 focus:border-transparent font-mono"
                                                        }
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "easy_pay_section",
                        "_comment_hidden": "간편결제는 차후 오픈 예정 — 현재는 렌더링 차단. 오픈 시 if 키 제거하면 복원됨.",
                        "if": "{{false}}",
                        "type": "basic",
                        "name": "Div",
                        "props": {
                            "className": "mt-6 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700"
                        },
                        "children": [
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "flex-start justify-between px-6 py-4"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "H3",
                                        "props": {
                                            "className": "text-error-strong"
                                        },
                                        "text": "$t:sirsoft-pay_nhnkcp.settings.section_easy_pay"
                                    },
                                    {
                                        "type": "basic",
                                        "name": "P",
                                        "props": {
                                            "className": "form-hint"
                                        },
                                        "text": "$t:sirsoft-pay_nhnkcp.settings.section_easy_pay_hint"
                                    }
                                ]
                            },
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "divide-y divide-gray-100 dark:divide-gray-700"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "flex items-center justify-between px-6 py-4 bg-blue-50 dark:bg-blue-900/20"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Label",
                                                        "props": {
                                                            "className": "form-label"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.easy_pay_allow_with_other_pg"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "form-hint"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.easy_pay_allow_with_other_pg_hint"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "composite",
                                                "name": "Toggle",
                                                "props": {
                                                    "name": "easy_pay_allow_with_other_pg"
                                                }
                                            }
                                        ]
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "flex items-center justify-between px-6 py-4"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Label",
                                                "props": {
                                                    "className": "form-label"
                                                },
                                                "text": "$t:sirsoft-pay_nhnkcp.settings.easy_pay_payco"
                                            },
                                            {
                                                "type": "composite",
                                                "name": "Toggle",
                                                "props": {
                                                    "name": "easy_pay_payco"
                                                }
                                            }
                                        ]
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "flex-start justify-between px-6 py-4"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Label",
                                                        "props": {
                                                            "className": "form-label"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.easy_pay_naverpay"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "mt-1 text-xs text-amber-600 dark:text-amber-400"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.easy_pay_naverpay_hint"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "composite",
                                                "name": "Toggle",
                                                "props": {
                                                    "name": "easy_pay_naverpay"
                                                }
                                            }
                                        ]
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "flex-start justify-between px-6 py-4"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Label",
                                                        "props": {
                                                            "className": "form-label"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.easy_pay_naverpay_point"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "mt-1 text-xs text-amber-600 dark:text-amber-400"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.easy_pay_naverpay_point_hint"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "composite",
                                                "name": "Toggle",
                                                "props": {
                                                    "name": "easy_pay_naverpay_point"
                                                }
                                            }
                                        ]
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "flex-start justify-between px-6 py-4"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Label",
                                                        "props": {
                                                            "className": "form-label"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.easy_pay_kakaopay"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "mt-1 text-xs text-amber-600 dark:text-amber-400"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.easy_pay_kakaopay_hint"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "composite",
                                                "name": "Toggle",
                                                "props": {
                                                    "name": "easy_pay_kakaopay"
                                                }
                                            }
                                        ]
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "flex-start justify-between px-6 py-4"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Label",
                                                        "props": {
                                                            "className": "form-label"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.easy_pay_applepay"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "form-hint"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.easy_pay_applepay_hint"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "composite",
                                                "name": "Toggle",
                                                "props": {
                                                    "name": "easy_pay_applepay"
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "redirect_section",
                        "type": "basic",
                        "name": "Div",
                        "props": {
                            "className": "mt-6 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700"
                        },
                        "children": [
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "flex-start justify-between px-6 py-4"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "H3",
                                        "props": {
                                            "className": "text-error-strong"
                                        },
                                        "text": "$t:sirsoft-pay_nhnkcp.settings.section_redirect"
                                    }
                                ]
                            },
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "p-6 space-y-6"
                                },
                                "children": [
                                    {
                                        "id": "field_redirect_success_url",
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "section-heading-md"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": {
                                                    "className": "lg:col-span-1"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Label",
                                                        "props": {
                                                            "className": "form-label"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.redirect_success_url"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "form-hint"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.redirect_success_url_hint"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": {
                                                    "className": "lg:col-span-2"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Input",
                                                        "props": {
                                                            "type": "text",
                                                            "name": "redirect_success_url",
                                                            "placeholder": "/shop/orders/{orderId}/complete",
                                                            "className": "dark:focus:ring-blue-400 focus:border-transparent"
                                                        }
                                                    }
                                                ]
                                            }
                                        ]
                                    },
                                    {
                                        "id": "field_redirect_fail_url",
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "section-heading-md"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": {
                                                    "className": "lg:col-span-1"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Label",
                                                        "props": {
                                                            "className": "form-label"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.redirect_fail_url"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "form-hint"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.redirect_fail_url_hint"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": {
                                                    "className": "lg:col-span-2"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Input",
                                                        "props": {
                                                            "type": "text",
                                                            "name": "redirect_fail_url",
                                                            "placeholder": "/shop/checkout",
                                                            "className": "dark:focus:ring-blue-400 focus:border-transparent"
                                                        }
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "vbank_settings_section",
                        "type": "basic",
                        "name": "Div",
                        "props": {
                            "className": "mt-6 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700"
                        },
                        "children": [
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "flex-start justify-between px-6 py-4"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "H3",
                                        "props": {
                                            "className": "text-error-strong"
                                        },
                                        "text": "$t:sirsoft-pay_nhnkcp.settings.section_vbank"
                                    },
                                    {
                                        "type": "basic",
                                        "name": "P",
                                        "props": {
                                            "className": "form-hint"
                                        },
                                        "text": "$t:sirsoft-pay_nhnkcp.settings.section_vbank_hint"
                                    }
                                ]
                            },
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "p-6"
                                },
                                "children": [
                                    {
                                        "id": "field_vbank_expire_days",
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "section-heading-md"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": {
                                                    "className": "lg:col-span-1"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Label",
                                                        "props": {
                                                            "className": "form-label"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.vbank_expire_days"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "form-hint"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.vbank_expire_days_hint"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": {
                                                    "className": "lg:col-span-2"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Div",
                                                        "props": {
                                                            "className": "flex-center gap-2"
                                                        },
                                                        "children": [
                                                            {
                                                                "type": "basic",
                                                                "name": "Input",
                                                                "props": {
                                                                    "type": "number",
                                                                    "name": "vbank_expire_days",
                                                                    "min": "1",
                                                                    "max": "7",
                                                                    "placeholder": "3",
                                                                    "className": "w-24 dark:focus:ring-blue-400 focus:border-transparent"
                                                                }
                                                            },
                                                            {
                                                                "type": "basic",
                                                                "name": "Span",
                                                                "props": {
                                                                    "className": "text-label-subtle"
                                                                },
                                                                "text": "$t:sirsoft-pay_nhnkcp.settings.vbank_expire_days_unit"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "cancel_server_ip_notice",
                        "type": "basic",
                        "name": "Div",
                        "props": {
                            "className": "mt-6 bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-700 rounded-lg p-4"
                        },
                        "children": [
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "flex gap-3"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Icon",
                                        "props": {
                                            "name": "triangle-exclamation",
                                            "className": "w-5 h-5 text-amber-600 dark:text-amber-400 flex-shrink-0 mt-0.5"
                                        }
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "flex-1 min-w-0"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "H3",
                                                "props": {
                                                    "className": "text-sm font-semibold text-warning-soft"
                                                },
                                                "text": "$t:sirsoft-pay_nhnkcp.settings.cancel_server_ip_title"
                                            },
                                            {
                                                "type": "basic",
                                                "name": "P",
                                                "props": {
                                                    "className": "mt-1 text-warning-soft"
                                                },
                                                "text": "$t:sirsoft-pay_nhnkcp.settings.cancel_server_ip_body"
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": {
                                                    "className": "mt-3 rounded border border-amber-200 dark:border-amber-800 bg-white/70 dark:bg-gray-900/30 px-3 py-2"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "text-xs font-medium text-amber-900 dark:text-amber-200"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.cancel_server_ip_path"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "mt-1 text-xs text-amber-800 dark:text-amber-100"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.cancel_server_ip_effect"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": {
                                                    "className": "mt-3"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "text-xs font-medium text-amber-900 dark:text-amber-200 mb-1.5"
                                                        },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.cancel_server_ip_value_label"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "Div",
                                                        "props": {
                                                            "className": "flex-center gap-2"
                                                        },
                                                        "children": [
                                                            {
                                                                "type": "basic",
                                                                "name": "Input",
                                                                "props": {
                                                                    "type": "text",
                                                                    "readOnly": true,
                                                                    "value": "{{health.data.summary.cancel_server_ip.address ?? ''}}",
                                                                    "placeholder": "$t:sirsoft-pay_nhnkcp.settings.cancel_server_ip_unavailable",
                                                                    "className": "input-readonly flex-1 font-mono"
                                                                }
                                                            },
                                                            {
                                                                "type": "basic",
                                                                "name": "Button",
                                                                "if": "{{!!health.data.summary.cancel_server_ip.address}}",
                                                                "props": {
                                                                    "className": "flex-center gap-1.5 px-3 py-2 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 text-body border border-gray-300 dark:border-gray-600 rounded-lg font-medium transition-colors whitespace-nowrap"
                                                                },
                                                                "actions": [
                                                                    {
                                                                        "type": "click",
                                                                        "handler": "sequence",
                                                                        "actions": [
                                                                            {
                                                                                "handler": "sirsoft-pay_nhnkcp.copyToClipboard",
                                                                                "params": {
                                                                                    "text": "{{health.data.summary.cancel_server_ip.address}}"
                                                                                }
                                                                            },
                                                                            {
                                                                                "handler": "toast",
                                                                                "params": {
                                                                                    "type": "success",
                                                                                    "message": "$t:sirsoft-pay_nhnkcp.settings.cancel_server_ip_copied"
                                                                                }
                                                                            }
                                                                        ]
                                                                    }
                                                                ],
                                                                "children": [
                                                                    {
                                                                        "type": "basic",
                                                                        "name": "Icon",
                                                                        "props": {
                                                                            "name": "copy",
                                                                            "className": "w-4 h-4"
                                                                        }
                                                                    },
                                                                    {
                                                                        "type": "basic",
                                                                        "name": "Span",
                                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.copy"
                                                                    }
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": {
                                                            "className": "mt-1.5 text-xs text-amber-800 dark:text-amber-100"
                                                        },
                                                        "text": "{{health.data.summary.cancel_server_ip.source_label ?? ''}}"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "basic",
                                                "name": "A",
                                                "props": {
                                                    "href": "https://partner.kcp.co.kr/",
                                                    "target": "_blank",
                                                    "rel": "noopener noreferrer",
                                                    "className": "mt-3 inline-flex items-center gap-1.5 text-sm font-medium text-amber-800 hover:text-amber-950 dark:text-amber-200 dark:hover:text-amber-100"
                                                },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Icon",
                                                        "props": {
                                                            "name": "external-link",
                                                            "className": "w-4 h-4"
                                                        }
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "Span",
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.cancel_server_ip_link"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "vbank_notify_section",
                        "type": "basic",
                        "name": "Div",
                        "props": {
                            "className": "mt-6 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-blue-200 dark:border-blue-800"
                        },
                        "children": [
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "px-6 py-4 border-b border-blue-200 dark:border-blue-800 bg-blue-50 dark:bg-blue-900/20 rounded-t-lg"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "flex-center gap-2"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Icon",
                                                "props": {
                                                    "name": "bell",
                                                    "className": "w-4 h-4 text-blue-600 dark:text-blue-400"
                                                }
                                            },
                                            {
                                                "type": "basic",
                                                "name": "H3",
                                                "props": {
                                                    "className": "text-base font-semibold text-blue-900 dark:text-blue-100"
                                                },
                                                "text": "$t:sirsoft-pay_nhnkcp.settings.section_vbank_notify"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "p-6"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "P",
                                        "props": {
                                            "className": "text-label mb-3"
                                        },
                                        "text": "$t:sirsoft-pay_nhnkcp.settings.vbank_notify_hint"
                                    },
                                    {
                                        "type": "basic",
                                        "name": "P",
                                        "props": {
                                            "className": "text-xs text-gray-600 dark:text-gray-400 mb-4"
                                        },
                                        "text": "$t:sirsoft-pay_nhnkcp.settings.vbank_notify_path"
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": {
                                            "className": "flex-center gap-2"
                                        },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Input",
                                                "props": {
                                                    "type": "text",
                                                    "readOnly": true,
                                                    "value": "{{_local.vbankInfo?.url ?? '/plugins/sirsoft-pay_nhnkcp/payment/vbank-notify'}}",
                                                    "className": "input-readonly flex-1 font-mono"
                                                }
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Button",
                                                "props": {
                                                    "className": "flex-center gap-1.5 px-3 py-2 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 text-body border border-gray-300 dark:border-gray-600 rounded-lg font-medium transition-colors whitespace-nowrap"
                                                },
                                                "actions": [
                                                    {
                                                        "type": "click",
                                                        "handler": "sequence",
                                                        "actions": [
                                                            {
                                                                "handler": "sirsoft-pay_nhnkcp.copyToClipboard",
                                                                "params": {
                                                                    "text": "{{_local.vbankInfo?.url ?? '/plugins/sirsoft-pay_nhnkcp/payment/vbank-notify'}}"
                                                                }
                                                            },
                                                            {
                                                                "handler": "toast",
                                                                "params": {
                                                                    "type": "success",
                                                                    "message": "$t:sirsoft-pay_nhnkcp.settings.vbank_notify_copied"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                ],
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Icon",
                                                        "props": {
                                                            "name": "copy",
                                                            "className": "w-4 h-4"
                                                        }
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "Span",
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.copy"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "escrow_settings_section",
                        "type": "basic",
                        "name": "Div",
                        "props": {
                            "className": "mt-6 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700"
                        },
                        "children": [
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "flex-start justify-between px-6 py-4"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": { "className": "flex-center gap-2" },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Icon",
                                                "props": { "name": "shield-check", "className": "text-secondary w-4 h-4" }
                                            },
                                            {
                                                "type": "basic",
                                                "name": "H3",
                                                "props": { "className": "text-base font-semibold text-gray-900 dark:text-gray-100" },
                                                "text": "$t:sirsoft-pay_nhnkcp.settings.section_escrow"
                                            }
                                        ]
                                    },
                                    {
                                        "type": "basic",
                                        "name": "P",
                                        "props": { "className": "mt-1 text-label-subtle" },
                                        "text": "$t:sirsoft-pay_nhnkcp.settings.section_escrow_hint"
                                    }
                                ]
                            },
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": { "className": "p-6 space-y-4" },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": { "className": "flex items-center justify-between" },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Label",
                                                        "props": { "className": "form-label" },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.use_escrow"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": { "className": "form-hint" },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.use_escrow_hint"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "composite",
                                                "name": "Toggle",
                                                "props": { "name": "use_escrow" }
                                            }
                                        ]
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "if": "{{_local.form.use_escrow && _local.form.is_test_mode}}",
                                        "props": { "className": "section-heading-md" },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": { "className": "lg:col-span-1" },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Label",
                                                        "props": { "className": "form-label" },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.escrow_test_site_cd"
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "P",
                                                        "props": { "className": "form-hint" },
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.escrow_test_site_cd_hint"
                                                    }
                                                ]
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Div",
                                                "props": { "className": "lg:col-span-2" },
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Input",
                                                        "props": {
                                                            "type": "text",
                                                            "name": "escrow_test_site_cd",
                                                            "placeholder": "T0007",
                                                            "className": "dark:focus:ring-blue-400 focus:border-transparent"
                                                        }
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "escrow_notify_section",
                        "type": "basic",
                        "name": "Div",
                        "if": "{{_local.form.use_escrow}}",
                        "props": {
                            "className": "mt-6 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-purple-200 dark:border-purple-800"
                        },
                        "children": [
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": {
                                    "className": "px-6 py-4 border-b border-purple-200 dark:border-purple-800 bg-purple-50 dark:bg-purple-900/20 rounded-t-lg"
                                },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": { "className": "flex-center gap-2" },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Icon",
                                                "props": { "name": "bell", "className": "w-4 h-4 text-purple-600 dark:text-purple-400" }
                                            },
                                            {
                                                "type": "basic",
                                                "name": "H3",
                                                "props": { "className": "text-base font-semibold text-purple-900 dark:text-purple-100" },
                                                "text": "$t:sirsoft-pay_nhnkcp.settings.section_escrow_notify"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "basic",
                                "name": "Div",
                                "props": { "className": "p-6" },
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "P",
                                        "props": { "className": "text-label mb-3" },
                                        "text": "$t:sirsoft-pay_nhnkcp.settings.escrow_common_notify_hint"
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Div",
                                        "props": { "className": "flex-center gap-2" },
                                        "children": [
                                            {
                                                "type": "basic",
                                                "name": "Input",
                                                "props": {
                                                    "type": "text",
                                                    "readOnly": true,
                                                    "value": "{{_local.vbankInfo?.escrow_common_notify_url ?? '/plugins/sirsoft-pay_nhnkcp/payment/escrow-common-notify'}}",
                                                    "className": "input-readonly flex-1 font-mono"
                                                }
                                            },
                                            {
                                                "type": "basic",
                                                "name": "Button",
                                                "props": {
                                                    "className": "flex-center gap-1.5 px-3 py-2 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 text-body border border-gray-300 dark:border-gray-600 rounded-lg font-medium transition-colors whitespace-nowrap"
                                                },
                                                "actions": [
                                                    {
                                                        "type": "click",
                                                        "handler": "sequence",
                                                        "actions": [
                                                            {
                                                                "handler": "sirsoft-pay_nhnkcp.copyToClipboard",
                                                                "params": {
                                                                    "text": "{{_local.vbankInfo?.escrow_common_notify_url ?? '/plugins/sirsoft-pay_nhnkcp/payment/escrow-common-notify'}}"
                                                                }
                                                            },
                                                            {
                                                                "handler": "toast",
                                                                "params": {
                                                                    "type": "success",
                                                                    "message": "$t:sirsoft-pay_nhnkcp.settings.escrow_common_notify_copied"
                                                                }
                                                            }
                                                        ]
                                                    }
                                                ],
                                                "children": [
                                                    {
                                                        "type": "basic",
                                                        "name": "Icon",
                                                        "props": { "name": "copy", "className": "w-4 h-4" }
                                                    },
                                                    {
                                                        "type": "basic",
                                                        "name": "Span",
                                                        "text": "$t:sirsoft-pay_nhnkcp.settings.copy"
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "footer_buttons",
                        "type": "basic",
                        "name": "Div",
                        "props": {
                            "className": "sticky bottom-0 z-10 flex justify-end items-center gap-3 mt-6 px-4 py-3 bg-gray-50 border border-gray-200 rounded-lg dark:bg-gray-800 dark:border-gray-700"
                        },
                        "children": [
                            {
                                "id": "cancel_button",
                                "type": "basic",
                                "name": "Button",
                                "props": {
                                    "className": "btn btn-secondary"
                                },
                                "actions": [
                                    {
                                        "type": "click",
                                        "handler": "navigate",
                                        "params": {
                                            "path": "/admin/plugins"
                                        }
                                    }
                                ],
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Span",
                                        "text": "$t:common.cancel"
                                    }
                                ]
                            },
                            {
                                "id": "save_button",
                                "type": "basic",
                                "name": "Button",
                                "props": {
                                    "disabled": "{{!_local.hasChanges || _local.isSaving}}",
                                    "className": "btn btn-primary flex-center gap-1.5"
                                },
                                "actions": [
                                    {
                                        "type": "click",
                                        "handler": "sequence",
                                        "actions": [
                                            {
                                                "handler": "setState",
                                                "params": {
                                                    "target": "local",
                                                    "isSaving": true,
                                                    "errors": null
                                                }
                                            },
                                            {
                                                "handler": "apiCall",
                                                "auth_required": true,
                                                "target": "/api/admin/plugins/{{route.identifier}}/settings",
                                                "params": {
                                                    "method": "PUT",
                                                    "body": "{{_local.form}}"
                                                },
                                                "onSuccess": [
                                                    {
                                                        "handler": "setState",
                                                        "params": {
                                                            "target": "local",
                                                            "isSaving": false,
                                                            "hasChanges": false
                                                        }
                                                    },
                                                    {
                                                        "handler": "toast",
                                                        "params": {
                                                            "type": "success",
                                                            "message": "$t:admin.plugins.settings.save_success"
                                                        }
                                                    },
                                                    {
                                                        "handler": "refetchDataSource",
                                                        "params": {
                                                            "dataSourceId": "settings"
                                                        }
                                                    }
                                                ],
                                                "onError": [
                                                    {
                                                        "handler": "setState",
                                                        "params": {
                                                            "target": "local",
                                                            "isSaving": false,
                                                            "errors": "{{$error.errors}}"
                                                        }
                                                    },
                                                    {
                                                        "handler": "toast",
                                                        "params": {
                                                            "type": "error",
                                                            "message": "$t:admin.plugins.settings.save_error"
                                                        }
                                                    }
                                                ]
                                            }
                                        ]
                                    }
                                ],
                                "children": [
                                    {
                                        "type": "basic",
                                        "name": "Icon",
                                        "if": "{{_local.isSaving}}",
                                        "props": {
                                            "name": "spinner",
                                            "className": "spinner-sm"
                                        }
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Span",
                                        "if": "{{!_local.isSaving}}",
                                        "text": "$t:common.save"
                                    },
                                    {
                                        "type": "basic",
                                        "name": "Span",
                                        "if": "{{_local.isSaving}}",
                                        "text": "$t:common.saving"
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    }
}
