{"id":14442,"date":"2025-08-06T16:32:22","date_gmt":"2025-08-06T07:32:22","guid":{"rendered":"https:\/\/chois2080.mycafe24.com\/?page_id=14442"},"modified":"2025-08-06T16:36:08","modified_gmt":"2025-08-06T07:36:08","slug":"%ea%b2%bd%eb%a7%a4-%ea%b3%b5%eb%a7%a4-%ea%b6%8c%eb%a6%ac%eb%b6%84%ec%84%9d","status":"publish","type":"page","link":"https:\/\/chois2080.mycafe24.com\/?page_id=14442","title":{"rendered":"\uacbd\ub9e4\/\uacf5\ub9e4 \uad8c\ub9ac\ubd84\uc11d"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"14442\" class=\"elementor elementor-14442\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-af6b16b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"af6b16b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-94397c3\" data-id=\"94397c3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-878012a elementor-widget elementor-widget-html\" data-id=\"878012a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!DOCTYPE html>\n<html lang=\"ko\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>\uacbd\ub9e4\/\uacf5\ub9e4 \uad8c\ub9ac\ubd84\uc11d \uc9c4\ub2e8<\/title>\n    <style>\n        body {\n            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n            margin: 40px;\n            background-color: #eef1f5; \/* \ub354 \ubd80\ub4dc\ub7ec\uc6b4 \ubc30\uacbd\uc0c9 *\/\n            color: #333;\n        }\n        h1, h2 {\n            color: #2c3e50;\n            border-bottom: 2px solid #3498db;\n            padding-bottom: 5px;\n            margin-bottom: 20px; \/* \uc81c\ubaa9 \uc544\ub798 \uc5ec\ubc31 \uc99d\uac00 *\/\n        }\n        .container {\n            max-width: 1000px;\n            margin: auto;\n            background-color: #fff;\n            padding: 30px; \/* \ud328\ub529 \uc99d\uac00 *\/\n            border-radius: 10px; \/* \ub354 \ub465\uadfc \ubaa8\uc11c\ub9ac *\/\n            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); \/* \ub354 \ubd80\ub4dc\ub7ec\uc6b4 \uadf8\ub9bc\uc790 *\/\n        }\n        .input-section {\n            margin-bottom: 30px; \/* \uc5ec\ubc31 \uc99d\uac00 *\/\n            padding: 20px; \/* \ud328\ub529 \uc99d\uac00 *\/\n            border: 1px solid #e0e0e0; \/* \ubd80\ub4dc\ub7ec\uc6b4 \ud14c\ub450\ub9ac *\/\n            border-radius: 8px; \/* \ub465\uadfc \ubaa8\uc11c\ub9ac *\/\n            background-color: #f7f9fc; \/* \ub354 \ubc1d\uc740 \ubc30\uacbd\uc0c9 *\/\n        }\n        .input-group {\n            display: flex;\n            align-items: center;\n            margin-bottom: 15px; \/* \uc5ec\ubc31 \uc99d\uac00 *\/\n            gap: 20px; \/* \uac04\uaca9 \uc99d\uac00 *\/\n            flex-wrap: wrap;\n        }\n        .input-group label {\n            min-width: 90px; \/* \ucd5c\uc18c \ub108\ube44 \uc99d\uac00 *\/\n            font-weight: bold;\n            color: #444;\n        }\n        .input-group select, .input-group input[type=\"date\"], .input-group input[type=\"text\"] {\n            padding: 10px; \/* \ud328\ub529 \uc99d\uac00 *\/\n            border: 1px solid #ccc;\n            border-radius: 6px; \/* \ub354 \ub465\uadfc \ubaa8\uc11c\ub9ac *\/\n            font-size: 1rem;\n            flex-grow: 1;\n            min-width: 180px; \/* \ucd5c\uc18c \ub108\ube44 \uc99d\uac00 *\/\n            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08); \/* \ubbf8\uc138\ud55c \ub0b4\ubd80 \uadf8\ub9bc\uc790 *\/\n            transition: border-color 0.3s ease, box-shadow 0.3s ease;\n        }\n        .input-group select:focus, .input-group input[type=\"date\"]:focus, .input-group input[type=\"text\"]:focus {\n            border-color: #3498db;\n            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(52, 152, 219, 0.2); \/* \ud3ec\ucee4\uc2a4 \uc2dc \uadf8\ub9bc\uc790 *\/\n            outline: none;\n        }\n        \n        \/* \ubc84\ud2bc \uc2a4\ud0c0\uc77c *\/\n        .input-group button {\n            padding: 10px 25px; \/* \ud328\ub529 \uc99d\uac00 *\/\n            background-color: #3498db;\n            color: white;\n            border: none;\n            border-radius: 6px; \/* \ub354 \ub465\uadfc \ubaa8\uc11c\ub9ac *\/\n            cursor: pointer;\n            font-size: 1rem;\n            font-weight: 600; \/* \ud3f0\ud2b8 \uad75\uae30 \uc99d\uac00 *\/\n            transition: background-color 0.3s ease, transform 0.2s ease;\n            flex-shrink: 0; \n            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); \/* \ubc84\ud2bc \uadf8\ub9bc\uc790 *\/\n        }\n        .input-group button:hover {\n            background-color: #2980b9;\n            transform: translateY(-1px); \/* \uc0b4\uc9dd \uc62c\ub77c\uac00\ub294 \ud6a8\uacfc *\/\n        }\n        .input-group button:active {\n            transform: translateY(0); \/* \ud074\ub9ad \uc2dc \uc6d0\uc704\uce58 *\/\n            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;\n        }\n\n        \/* \ubd84\uc11d \uc2e4\ud589 \ubc84\ud2bc \uc2a4\ud0c0\uc77c *\/\n        #analyzeButton {\n            display: block;\n            max-width: 300px; \/* \ud3ed \uc81c\ud55c *\/\n            margin: 30px auto 10px auto; \/* \uc911\uc559 \uc815\ub82c \ubc0f \uc5ec\ubc31 *\/\n            padding: 15px 25px; \/* \ud328\ub529 \uc99d\uac00 *\/\n            background-color: #2ecc71;\n            color: white;\n            border: none;\n            border-radius: 8px; \/* \ub354 \ub465\uadfc \ubaa8\uc11c\ub9ac *\/\n            font-size: 1.15rem; \/* \ud3f0\ud2b8 \ud06c\uae30 \uc99d\uac00 *\/\n            font-weight: 700; \/* \ud3f0\ud2b8 \uad75\uae30 \uc99d\uac00 *\/\n            cursor: pointer;\n            transition: background-color 0.3s ease, transform 0.2s ease;\n            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); \/* \ubc84\ud2bc \uadf8\ub9bc\uc790 *\/\n        }\n        #analyzeButton:hover {\n            background-color: #27ae60;\n            transform: translateY(-2px);\n        }\n        #analyzeButton:active {\n            transform: translateY(0);\n            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) inset;\n        }\n\n        .reset-button {\n            background-color: #e74c3c;\n            margin-left: 10px;\n        }\n        .reset-button:hover {\n            background-color: #c0392b;\n        }\n\n        .result-section {\n            margin-top: 40px; \/* \uc5ec\ubc31 \uc99d\uac00 *\/\n        }\n        table {\n            width: 100%;\n            border-collapse: collapse;\n            margin-top: 20px;\n            border-radius: 8px; \/* \ud14c\uc774\ube14 \ubaa8\uc11c\ub9ac \ub465\uae00\uac8c *\/\n            overflow: hidden; \/* \ubaa8\uc11c\ub9ac \ub465\uae00\uac8c \uc801\uc6a9\uc744 \uc704\ud574 \ud544\uc694 *\/\n            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); \/* \ud14c\uc774\ube14 \uadf8\ub9bc\uc790 *\/\n        }\n        th, td {\n            border: 1px solid #e0e0e0; \/* \ubd80\ub4dc\ub7ec\uc6b4 \ud14c\ub450\ub9ac *\/\n            padding: 14px 12px; \/* \ud328\ub529 \uc99d\uac00 *\/\n            text-align: left;\n            font-size: 1.05rem; \/* \ud14c\uc774\ube14 \ub0b4\uc6a9 \ud3f0\ud2b8 \ud06c\uae30 \uc99d\uac00 *\/\n            line-height: 1.5; \/* \uc904 \uac04\uaca9 \uc870\uc808 *\/\n        }\n        th {\n            background-color: #f2f2f2;\n            font-weight: 600; \/* \ud3f0\ud2b8 \uad75\uae30 \uc870\uc808 *\/\n            color: #555;\n            white-space: nowrap; \/* \ud5e4\ub354 \uc904\ubc14\uafc8 \ubc29\uc9c0 *\/\n        }\n        tr:nth-child(even) {\n            background-color: #fcfcfc; \/* \uc9dd\uc218 \ud589 \ubc30\uacbd\uc0c9 *\/\n        }\n\n        \/* \uceec\ub7fc \ud3ed \uc870\uc808 *\/\n        th:nth-child(1), td:nth-child(1) { width: 5%; min-width: 40px; } \/* \uc21c\uc11c *\/\n        th:nth-child(2), td:nth-child(2) { width: 15%; min-width: 100px; } \/* \uad8c\ub9ac \uc885\ub958 *\/\n        th:nth-child(3), td:nth-child(3) { width: 15%; min-width: 100px; } \/* \uc124\uc815\/\ubc1c\uc0dd \uc77c\uc790 *\/\n        th:nth-child(4), td:nth-child(4) { width: 18%; min-width: 80px; } \/* \ucd94\uac00 \uc815\ubcf4 *\/\n        th:nth-child(5), td:nth-child(5) { width: 10%; min-width: 60px; } \/* \ub9d0\uc18c\uae30\uc900\uad8c\ub9ac *\/\n        th:nth-child(6), td:nth-child(6) { width: 15%; min-width: 90px; } \/* \ubd84\uc11d \uacb0\uacfc *\/\n        th:nth-child(7), td:nth-child(7) { width: 15%; min-width: 230px; } \/* \ube44\uace0 *\/\n        th:nth-child(8), td:nth-child(8) { width: 7%; min-width: 60px; } \/* \uad00\ub9ac *\/\n\n\n        .malso-gijun {\n            background-color: #fff3e0; \/* \ub354 \ubd80\ub4dc\ub7ec\uc6b4 \uc624\ub80c\uc9c0 \uacc4\uc5f4 *\/\n            font-weight: bold;\n        }\n        .insoo {\n            background-color: #ffebee; \/* \ub354 \ubd80\ub4dc\ub7ec\uc6b4 \ub808\ub4dc \uacc4\uc5f4 *\/\n            font-weight: bold;\n            color: #c0392b;\n        }\n        .malso {\n            background-color: #e8f5e9; \/* \ub354 \ubd80\ub4dc\ub7ec\uc6b4 \uadf8\ub9b0 \uacc4\uc5f4 *\/\n            color: #27ae60;\n        }\n        .note {\n            font-size: 0.85em; \/* \ube44\uace0 \ud3f0\ud2b8 \ud06c\uae30 \uc0b4\uc9dd \uc904\uc784 *\/\n            color: #777;\n        }\n        #optionsForType {\n            display: none;\n            width: 100%;\n            margin-top: 10px;\n        }\n        #optionsForType div {\n            margin-bottom: 10px;\n        }\n        #optionsForType label {\n            min-width: unset; \n            font-weight: normal; \n            margin-right: 5px;\n        }\n        #optionsForType select {\n            width: auto;\n            min-width: 100px;\n            flex-grow: 0;\n        }\n        .delete-button {\n            background-color: #f39c12;\n            color: white;\n            border: none;\n            padding: 5px 10px;\n            border-radius: 4px;\n            cursor: pointer;\n            font-size: 0.8rem;\n            transition: background-color 0.3s ease, transform 0.2s ease;\n        }\n        .delete-button:hover {\n            background-color: #e67e22;\n            transform: translateY(-1px);\n        }\n        .delete-button:active {\n            transform: translateY(0);\n            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;\n        }\n\n        \/* \ubc18\uc751\ud615 \ub514\uc790\uc778 *\/\n        @media (max-width: 768px) {\n            .input-group {\n                flex-direction: column;\n                align-items: flex-start;\n            }\n            .input-group label {\n                margin-bottom: 5px;\n            }\n            .input-group select, .input-group input, .input-group button {\n                width: 100%;\n                min-width: unset;\n                margin-left: 0 !important;\n            }\n            #optionsForType {\n                flex-direction: column; \n                align-items: flex-start;\n            }\n            #optionsForType div {\n                width: 100%;\n            }\n            \/* \ud14c\uc774\ube14 \ubc18\uc751\ud615 \uc2a4\ud06c\ub864 *\/\n            .result-section {\n                overflow-x: auto; \/* \uac00\ub85c \uc2a4\ud06c\ub864 \ud5c8\uc6a9 *\/\n            }\n            table {\n                width: 700px; \/* \uc791\uc740 \ud654\uba74\uc5d0\uc11c \uac15\uc81c\ub85c \ub108\ube44 \ud655\ubcf4\ud558\uc5ec \uc2a4\ud06c\ub864 \uc720\ub3c4 *\/\n                display: table; \/* \ub2e4\uc2dc \ud14c\uc774\ube14 \ub514\uc2a4\ud50c\ub808\uc774\ub85c *\/\n                box-shadow: none; \/* \ubaa8\ubc14\uc77c\uc5d0\uc11c\ub294 \uadf8\ub9bc\uc790 \uc81c\uac70 *\/\n            }\n            th, td {\n                display: table-cell; \/* \ub2e4\uc2dc \ud14c\uc774\ube14 \uc140 \ub514\uc2a4\ud50c\ub808\uc774\ub85c *\/\n                white-space: nowrap; \/* \uc140 \ub0b4\uc6a9 \uc904\ubc14\uafc8 \ubc29\uc9c0 (\uc2a4\ud06c\ub864 \uc720\ub3c4) *\/\n            }\n            td::before { \/* \ubaa8\ubc14\uc77c\uc5d0\uc11c \ub77c\ubca8 \uc228\uae40 *\/\n                content: none;\n            }\n        }\n    <\/style>\n<\/head>\n<body>\n    <div class=\"container\">\n        <h1>\uacbd\ub9e4 \uad8c\ub9ac\ubd84\uc11d \uc9c4\ub2e8<\/h1>\n        <p class=\"note\">\uac01 \uad8c\ub9ac\uc758 \uc885\ub958\uc640 \uc124\uc815(\ubc1c\uc0dd)\uc77c\uc790\ub97c \uc785\ub825\ud558\uace0 '\uad8c\ub9ac \ucd94\uac00' \ubc84\ud2bc\uc744 \ub20c\ub7ec \ubaa9\ub85d\uc5d0 \ucd94\uac00\ud558\uc138\uc694. '\uad8c\ub9ac\ubd84\uc11d \uc2e4\ud589' \ubc84\ud2bc\uc744 \ub204\ub974\uba74 \uacb0\uacfc\ub97c \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n        <p class=\"note\"><strong>\u26a0\ufe0f \uc720\uc758\uc0ac\ud56d:<\/strong> \ud559\uc2b5\uc6a9\uc774\ubbc0\ub85c, \uc2e4\uc81c \uacbd\ub9e4\uc758 \ubcf5\uc7a1\uc131\uc744 \ubc18\uc601\ud558\uc9c0 \uc54a\uc74c. \ud2b9\ud788 \ubc30\ub2f9\uae08 \uacc4\uc0b0\uc774\ub098 \uc720\uce58\uad8c \ub4f1 \uc131\ub9bd\uc5ec\ubd80\ub294 \uc804\ubb38\uac00\uc758 \ubd84\uc11d \ud544\uc218...<\/p>\n\n        <div class=\"input-section\">\n            <h2>\uad8c\ub9ac \ucd94\uac00<\/h2>\n            <div class=\"input-group\">\n                <label for=\"rightType\">\uad8c\ub9ac \uc885\ub958:<\/label>\n                <select id=\"rightType\">\n                    <option value=\"\">-- \uc120\ud0dd --<\/option>\n                    <option value=\"\uadfc\uc800\ub2f9\uad8c\">\uadfc\uc800\ub2f9\uad8c<\/option>\n                    <option value=\"\uc800\ub2f9\uad8c\">\uc800\ub2f9\uad8c<\/option>\n                    <option value=\"\uc555\ub958\">\uc555\ub958<\/option>\n                    <option value=\"\uac00\uc555\ub958\">\uac00\uc555\ub958<\/option>\n                    <option value=\"\ub2f4\ubcf4\uac00\ub4f1\uae30\">\ub2f4\ubcf4\uac00\ub4f1\uae30<\/option>\n                    <option value=\"\uacbd\ub9e4\uac1c\uc2dc\uacb0\uc815\ub4f1\uae30\">\uacbd\ub9e4\uac1c\uc2dc\uacb0\uc815\ub4f1\uae30<\/option>\n                    <option value=\"\uc804\uc138\uad8c\">\uc804\uc138\uad8c<\/option>\n                    <option value=\"\uc784\ucc28\uad8c\">\uc784\ucc28\uad8c (\uc8fc\ud0dd\/\uc0c1\uac00)<\/option>\n                    <option value=\"\uccad\uad6c\uad8c\ubcf4\uc804\uac00\ub4f1\uae30\">\uccad\uad6c\uad8c\ubcf4\uc804\uac00\ub4f1\uae30<\/option>\n                    <option value=\"\uc720\uce58\uad8c\">\uc720\uce58\uad8c<\/option>\n                    <option value=\"\ubc95\uc815\uc9c0\uc0c1\uad8c\">\ubc95\uc815\uc9c0\uc0c1\uad8c<\/option>\n                    <option value=\"\ubd84\ubb18\uae30\uc9c0\uad8c\">\ubd84\ubb18\uae30\uc9c0\uad8c<\/option>\n                <\/select>\n\n                <label for=\"rightDate\">\uc124\uc815\/\ubc1c\uc0dd \uc77c\uc790:<\/label>\n                <input type=\"date\" id=\"rightDate\">\n                \n                <div id=\"optionsForType\">\n                    <div id=\"option_\uc784\ucc28\uad8c\" style=\"display: none;\">\n                        <label for=\"hasBaeDang\">\ubc30\ub2f9\uc694\uad6c \uc5ec\ubd80:<\/label>\n                        <select id=\"hasBaeDang\">\n                            <option value=\"Y\">\uc788\uc74c<\/option>\n                            <option value=\"N\">\uc5c6\uc74c<\/option>\n                        <\/select>\n                    <\/div>\n                    <div id=\"option_\uc804\uc138\uad8c\" style=\"display: none;\">\n                        <label for=\"jeonseAuction\">\uc804\uc138\uad8c\uc790 \uacbd\ub9e4\uc2e0\uccad \uc5ec\ubd80:<\/label>\n                        <select id=\"jeonseAuction\">\n                            <option value=\"N\">\uc544\ub2c8\uc624<\/option>\n                            <option value=\"Y\">\uc608<\/option>\n                        <\/select>\n                        <label for=\"hasBaeDangJeonse\">\ubc30\ub2f9\uc694\uad6c \uc5ec\ubd80:<\/label>\n                        <select id=\"hasBaeDangJeonse\">\n                            <option value=\"Y\">\uc788\uc74c<\/option>\n                            <option value=\"N\">\uc5c6\uc74c<\/option>\n                        <\/select>\n                    <\/div>\n                <\/div>\n\n                <button type=\"button\" onclick=\"addRight()\">\uad8c\ub9ac \ucd94\uac00<\/button>\n                <button type=\"button\" class=\"reset-button\" onclick=\"resetSimulator()\">\ucd08\uae30\ud654<\/button>\n            <\/div>\n        <\/div>\n\n        <div class=\"result-section\">\n            <h2>\uc785\ub825\ub41c \uad8c\ub9ac \ubaa9\ub85d \ubc0f \ubd84\uc11d \uacb0\uacfc<\/h2>\n            <table id=\"rightsTable\">\n                <thead>\n                    <tr>\n                        <th>\uc21c\uc11c<\/th>\n                        <th>\uad8c\ub9ac \uc885\ub958<\/th>\n                        <th>\uc124\uc815\/\ubc1c\uc0dd \uc77c\uc790<\/th>\n                        <th>\ucd94\uac00 \uc815\ubcf4<\/th> \n                        <th>\ub9d0\uc18c\uae30\uc900<\/th>\n                        <th>\ubd84\uc11d \uacb0\uacfc<\/th>\n                        <th>\ube44\uace0<\/th>\n                        <th>\uad00\ub9ac<\/th>\n                    <\/tr>\n                <\/thead>\n                <tbody>\n                <\/tbody>\n            <\/table>\n            <button type=\"button\" id=\"analyzeButton\" onclick=\"analyzeRights()\">\uad8c\ub9ac\ubd84\uc11d \uc2e4\ud589<\/button>\n        <\/div>\n    <\/div>\n\n<script>\nlet rightsData = [];\n\ndocument.addEventListener('DOMContentLoaded', function() {\n    console.log(\"DOM \ub85c\ub4dc \uc644\ub8cc \ubc0f \ucd08\uae30\ud654 \uc2dc\uc791\");\n    \n    \/\/ \uad8c\ub9ac \uc885\ub958 \uc120\ud0dd \uc2dc \uc635\uc158 \ud1a0\uae00 \uc774\ubca4\ud2b8 \ub9ac\uc2a4\ub108 \ubc14\uc778\ub529 (HTML\uc5d0\uc11c \uc81c\uac70\ud588\uc73c\ubbc0\ub85c JS\uc5d0\uc11c \ubc14\uc778\ub529)\n    const rightTypeSelect = document.getElementById('rightType');\n    if (rightTypeSelect) {\n        rightTypeSelect.addEventListener('change', toggleOptions);\n    }\n    \n    toggleOptions(); \/\/ \ucd08\uae30 \uc635\uc158 \uc0c1\ud0dc \uc124\uc815\n    \n    rightsData = []; \n    renderRightsTable(); \/\/ \ube48 \ud14c\uc774\ube14 \ub80c\ub354\ub9c1\n    \n    console.log(\"\uc2dc\ubbac\ub808\uc774\ud130 \ucd08\uae30\ud654 \uc644\ub8cc\");\n});\n\nfunction toggleOptions() {\n    console.log(\"toggleOptions \ud638\ucd9c\ub428\");\n    const rightType = document.getElementById('rightType').value;\n    \n    document.getElementById('optionsForType').style.display = 'none';\n    document.getElementById('option_\uc784\ucc28\uad8c').style.display = 'none';\n    document.getElementById('option_\uc804\uc138\uad8c').style.display = 'none';\n\n    if (rightType === '\uc784\ucc28\uad8c') {\n        document.getElementById('optionsForType').style.display = 'block';\n        document.getElementById('option_\uc784\ucc28\uad8c').style.display = 'block';\n    } else if (rightType === '\uc804\uc138\uad8c') {\n        document.getElementById('optionsForType').style.display = 'block';\n        document.getElementById('option_\uc804\uc138\uad8c').style.display = 'block';\n    }\n}\n\nfunction addRight() {\n    console.log(\"addRight \ud568\uc218 \ud638\ucd9c\ub428\");\n    \n    const rightType = document.getElementById('rightType').value;\n    const rightDate = document.getElementById('rightDate').value;\n\n    if (!rightType || !rightDate) {\n        alert('\uad8c\ub9ac \uc885\ub958\uc640 \uc124\uc815\/\ubc1c\uc0dd \uc77c\uc790\ub97c \ubaa8\ub450 \uc785\ub825\ud574\uc8fc\uc138\uc694.');\n        return;\n    }\n\n    const newRight = {\n        type: rightType,\n        date: rightDate,\n        isMGK: false,\n        outcome: \"\",\n        notes: \"\"\n    };\n\n    if (rightType === '\uc784\ucc28\uad8c') {\n        newRight.baeDangYogu = document.getElementById('hasBaeDang').value;\n    } else if (rightType === '\uc804\uc138\uad8c') {\n        newRight.jeonseAuction = document.getElementById('jeonseAuction').value;\n        newRight.baeDangYogu = document.getElementById('hasBaeDangJeonse').value;\n    }\n\n    rightsData.push(newRight);\n    \n    rightsData.sort(function(a, b) { \n        return new Date(a.date) - new Date(b.date); \n    });\n    \n    renderRightsTable();\n\n    clearInputFields();\n}\n\nfunction clearInputFields() {\n    document.getElementById('rightType').value = '';\n    document.getElementById('rightDate').value = '';\n    document.getElementById('hasBaeDang').value = 'Y';\n    document.getElementById('jeonseAuction').value = 'N';\n    document.getElementById('hasBaeDangJeonse').value = 'Y';\n    toggleOptions();\n}\n\nfunction renderRightsTable() {\n    console.log(\"renderRightsTable \ud638\ucd9c\ub428, rightsData \uae38\uc774:\", rightsData.length);\n    \n    const tableBody = document.getElementById('rightsTable').getElementsByTagName('tbody')[0];\n    tableBody.innerHTML = ''; \n\n    rightsData.forEach(function(right, index) {\n        console.log(`\ud589 ${index + 1} \ucd94\uac00 \uc911:`, right);\n        \n        const row = tableBody.insertRow();\n        \n        const mgkClass = right.isMGK ? 'malso-gijun' : '';\n        let outcomeClass = '';\n        if (right.outcome) {\n            if (right.outcome.includes('\uc778\uc218') || right.outcome.includes('\uc704\ud5d8')) {\n                outcomeClass = 'insoo';\n            } else if (right.outcome === '\ub9d0\uc18c' || right.outcome === '\ub9d0\uc18c\uae30\uc900\uad8c\ub9ac') {\n                outcomeClass = 'malso';\n            }\n        }\n\n        row.insertCell(0).innerText = index + 1; \n        row.insertCell(1).innerText = right.type; \n        row.insertCell(2).innerText = right.date; \n        \n        \/\/ \ucd94\uac00 \uc815\ubcf4 \uc140\n        const additionalInfoCell = row.insertCell(3);\n        let additionalInfo = '';\n        if (right.type === '\uc784\ucc28\uad8c') {\n            additionalInfo = `\ubc30\ub2f9\uc694\uad6c: ${right.baeDangYogu === 'Y' ? '\u2705' : '\u274c'}`;\n        } else if (right.type === '\uc804\uc138\uad8c') {\n            additionalInfo = `\uacbd\ub9e4\uc2e0\uccad: ${right.jeonseAuction === 'Y' ? '\u2705' : '\u274c'}<br>\ubc30\ub2f9\uc694\uad6c: ${right.baeDangYogu === 'Y' ? '\u2705' : '\u274c'}`;\n        }\n        additionalInfoCell.innerHTML = additionalInfo;\n        \n        const mgkCell = row.insertCell(4); \n        mgkCell.innerText = right.isMGK ? '\u2705' : '';\n        if (mgkClass) mgkCell.className = mgkClass;\n        \n        const outcomeCell = row.insertCell(5); \n        outcomeCell.innerText = right.outcome || '';\n        if (outcomeClass) outcomeCell.className = outcomeClass;\n        \n        row.insertCell(6).innerHTML = '<span class=\"note\">' + (right.notes || '') + '<\/span>'; \n\n        const manageCell = row.insertCell(7); \n        const deleteButton = document.createElement('button');\n        deleteButton.innerText = '\uc0ad\uc81c';\n        deleteButton.className = 'delete-button';\n        deleteButton.onclick = (function(idx) { \n            return function() { \n                deleteRight(idx); \n            };\n        })(index);\n        manageCell.appendChild(deleteButton);\n    });\n    \n    console.log(\"\ud14c\uc774\ube14 \ub80c\ub354\ub9c1 \uc644\ub8cc\");\n}\n\nfunction deleteRight(index) {\n    if (confirm('\uc120\ud0dd\ud55c \uad8c\ub9ac\ub97c \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?')) {\n        rightsData.splice(index, 1);\n        renderRightsTable();\n        if (rightsData.length > 0) {\n            analyzeRights(); \n        } else { \n            resetSimulator(true); \n        }\n    }\n}\n\nfunction analyzeRights() {\n    console.log(\"analyzeRights \ud638\ucd9c\ub428\");\n    if (rightsData.length === 0) {\n        alert('\ubd84\uc11d\ud560 \uad8c\ub9ac\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. \uad8c\ub9ac\ub97c \uba3c\uc800 \ucd94\uac00\ud574\uc8fc\uc138\uc694.');\n        return;\n    }\n\n    let malsoGijunIndex = -1;\n    const mgkCandidates = ['\uadfc\uc800\ub2f9\uad8c', '\uc800\ub2f9\uad8c', '\ub2f4\ubcf4\uac00\ub4f1\uae30', '\uc555\ub958', '\uac00\uc555\ub958'];\n\n    for (let i = 0; i < rightsData.length; i++) {\n        if (mgkCandidates.includes(rightsData[i].type)) {\n            malsoGijunIndex = i;\n            break; \n        }\n    }\n\n    if (malsoGijunIndex === -1) {\n        for (let i = 0; i < rightsData.length; i++) {\n            if (rightsData[i].type === '\uacbd\ub9e4\uac1c\uc2dc\uacb0\uc815\ub4f1\uae30') {\n                malsoGijunIndex = i;\n                break;\n            }\n        }\n    }\n\n    if (malsoGijunIndex === -1) {\n        alert('\ub9d0\uc18c\uae30\uc900\uad8c\ub9ac\ub97c \ucc3e\uc744 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \uadfc\uc800\ub2f9\uad8c, \uc800\ub2f9\uad8c, \uc555\ub958, \uac00\uc555\ub958, \ub2f4\ubcf4\uac00\ub4f1\uae30 \ub610\ub294 \uacbd\ub9e4\uac1c\uc2dc\uacb0\uc815\ub4f1\uae30 \uc911 \ud558\ub098\ub97c \ud3ec\ud568\ud574\uc57c \ud569\ub2c8\ub2e4.');\n        rightsData.forEach(function(right) {\n            right.isMGK = false;\n            right.outcome = \"\ub9d0\uc18c\uae30\uc900\uad8c\ub9ac \uc5c6\uc74c\";\n            right.notes = \"\ub9d0\uc18c\uae30\uc900\uad8c\ub9ac\uac00 \uc124\uc815\ub418\uc9c0 \uc54a\uc558\uac70\ub098, \uc778\uc2dd\ud560 \uc218 \uc788\ub294 \uad8c\ub9ac\uac00 \uc5c6\uc2b5\ub2c8\ub2e4.\";\n        });\n        renderRightsTable();\n        return;\n    }\n\n    const malsoGijunDate = new Date(rightsData[malsoGijunIndex].date);\n\n    rightsData.forEach(function(right) {\n        right.isMGK = false;\n        right.outcome = \"\";\n        right.notes = \"\";\n    });\n\n    rightsData[malsoGijunIndex].isMGK = true;\n    rightsData[malsoGijunIndex].outcome = \"\ub9d0\uc18c\uae30\uc900\uad8c\ub9ac\";\n    rightsData[malsoGijunIndex].notes = \"\uc774 \uad8c\ub9ac\ub97c \uae30\uc900\uc73c\ub85c \ud6c4\uc21c\uc704 \uad8c\ub9ac\uc758 \uc18c\uba78 \uc5ec\ubd80\uac00 \uacb0\uc815\ub429\ub2c8\ub2e4.\";\n\n    rightsData.forEach(function(right, index) {\n        if (index === malsoGijunIndex) return;\n\n        const currentRightDate = new Date(right.date);\n\n        if (['\uc720\uce58\uad8c', '\ubc95\uc815\uc9c0\uc0c1\uad8c', '\ubd84\ubb18\uae30\uc9c0\uad8c'].includes(right.type)) {\n            right.outcome = '\uc778\uc218';\n            right.notes = '\ub4f1\uae30\ubd80\uc640 \ubb34\uad00\ud558\uac8c \uc131\ub9bd\uc694\uac74 \ucda9\uc871 \uc2dc \ub9e4\uc218\uc778\uc5d0\uac8c \uc778\uc218\ub429\ub2c8\ub2e4. \ud604\uc7a5 \uc870\uc0ac \ud544\uc218!';\n            return;\n        }\n\n        if (currentRightDate < malsoGijunDate) { \n            if (right.type === '\uc784\ucc28\uad8c') {\n                if (right.baeDangYogu === 'Y') {\n                    right.outcome = '\uc778\uc218 (\ubd80\ubd84)'; \n                    right.notes = '\ub300\ud56d\ub825 \uc788\ub294 \uc120\uc21c\uc704 \uc784\ucc28\uc778. \ubc30\ub2f9\uc694\uad6c\ud558\uc600\uc73c\ub098 \ubcf4\uc99d\uae08 \uc804\uc561\uc744 \ubc30\ub2f9\ubc1b\uc9c0 \ubabb\ud558\uba74 \ubd80\uc871\ubd84\uc740 \ub9e4\uc218\uc778\uc5d0\uac8c \uc778\uc218\ub429\ub2c8\ub2e4.';\n                } else {\n                    right.outcome = '\uc778\uc218 (\uc804\uc561)';\n                    right.notes = '\ub300\ud56d\ub825 \uc788\ub294 \uc120\uc21c\uc704 \uc784\ucc28\uc778. \ubc30\ub2f9\uc694\uad6c\ub97c \ud558\uc9c0 \uc54a\uc544 \ubcf4\uc99d\uae08 \uc804\uc561\uc744 \ub9e4\uc218\uc778\uc774 \uc778\uc218\ud574\uc57c \ud569\ub2c8\ub2e4. \uba85\ub3c4 \ub09c\uc774\ub3c4 \ub192\uc74c.';\n                }\n            } else if (right.type === '\uc804\uc138\uad8c') {\n                if (right.jeonseAuction === 'Y') {\n                    right.outcome = '\ub9d0\uc18c'; \n                    right.notes = '\uc120\uc21c\uc704 \uc804\uc138\uad8c\uc790\uac00 \uc9c1\uc811 \uacbd\ub9e4\ub97c \uc2e0\uccad\ud558\uc5ec \ud574\ub2f9 \uc804\uc138\uad8c\uc740 \uc18c\uba78\ub429\ub2c8\ub2e4.';\n                } else if (right.baeDangYogu === 'Y') {\n                    right.outcome = '\uc778\uc218 (\ubd80\ubd84)';\n                    right.notes = '\uc120\uc21c\uc704 \uc804\uc138\uad8c. \ubc30\ub2f9\uc694\uad6c\ud558\uc600\uc73c\ub098 \uc804\uc138\uae08 \uc804\uc561\uc744 \ubc30\ub2f9\ubc1b\uc9c0 \ubabb\ud558\uba74 \ubd80\uc871\ubd84\uc740 \ub9e4\uc218\uc778\uc5d0\uac8c \uc778\uc218\ub429\ub2c8\ub2e4.';\n                } else if (right.baeDangYogu === 'N') {\n                    right.outcome = '\uc778\uc218 (\uc804\uc561)';\n                    right.notes = '\uc120\uc21c\uc704 \uc804\uc138\uad8c. \ubc30\ub2f9\uc694\uad6c \ud558\uc9c0 \uc54a\uc544 \uc804\uc138\uae08 \uc804\uc561\uc744 \ub9e4\uc218\uc778\uc774 \uc778\uc218\ud574\uc57c \ud569\ub2c8\ub2e4.';\n                }\n            } else if (right.type === '\uccad\uad6c\uad8c\ubcf4\uc804\uac00\ub4f1\uae30') {\n                right.outcome = '\uc778\uc218 (\ub9e4\uc6b0 \uc704\ud5d8!)';\n                right.notes = '\uac00\ub4f1\uae30\uc5d0 \uae30\ud55c \ubcf8\ub4f1\uae30\uac00 \uc774\ub8e8\uc5b4\uc9c0\uba74 \ub9e4\uc218\uc778\uc740 \uc18c\uc720\uad8c\uc744 \uc0c1\uc2e4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc8fc\uc758!';\n            } else { \n                right.outcome = '\uc778\uc218 (\ud655\uc778 \ud544\uc694)';\n                right.notes = '\ub9d0\uc18c\uae30\uc900\uad8c\ub9ac\ubcf4\ub2e4 \uc120\uc21c\uc704\uc774\ubbc0\ub85c \uc6d0\uce59\uc801\uc73c\ub85c \uc778\uc218\ub429\ub2c8\ub2e4. \uad8c\ub9ac \uc131\uaca9\uc5d0 \ub530\ub978 \ucd94\uac00 \ubd84\uc11d \ud544\uc694.';\n            }\n        } else { \n            right.outcome = '\ub9d0\uc18c';\n            if (right.type === '\uc784\ucc28\uad8c') {\n                right.notes = '\ub300\ud56d\ub825 \uc5c6\ub294 \ud6c4\uc21c\uc704 \uc784\ucc28\uc778. \ubcf4\uc99d\uae08\uc744 \ub9e4\uc218\uc778\uc774 \uc778\uc218\ud558\uc9c0 \uc54a\uc73c\uba70, \uc784\ucc28\uad8c\uc740 \uc18c\uba78\ub429\ub2c8\ub2e4.';\n            } else if (right.type === '\uc804\uc138\uad8c') {\n                right.notes = '\ud6c4\uc21c\uc704 \uc804\uc138\uad8c. \ub9d0\uc18c\uae30\uc900\uad8c\ub9ac\ubcf4\ub2e4 \ud6c4\uc21c\uc704\uc774\ubbc0\ub85c \uc18c\uba78\ub429\ub2c8\ub2e4.';\n            } else if (right.type === '\uccad\uad6c\uad8c\ubcf4\uc804\uac00\ub4f1\uae30') {\n                right.notes = '\ub9d0\uc18c\uae30\uc900\uad8c\ub9ac\ubcf4\ub2e4 \ud6c4\uc21c\uc704\uc774\ubbc0\ub85c \uc18c\uba78\ub429\ub2c8\ub2e4.';\n            } else {\n                right.notes = '\ub9d0\uc18c\uae30\uc900\uad8c\ub9ac\ubcf4\ub2e4 \ud6c4\uc21c\uc704\uc774\ubbc0\ub85c \uc18c\uba78\ub429\ub2c8\ub2e4.';\n            }\n        }\n    });\n\n    renderRightsTable();\n}\n\nfunction resetSimulator(skipConfirm = false) {\n    if (!skipConfirm && rightsData.length > 0 && !confirm('\ubaa8\ub4e0 \ub370\uc774\ud130\ub97c \ucd08\uae30\ud654\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?')) {\n        return; \n    }\n    rightsData = [];\n    renderRightsTable();\n    clearInputFields();\n}\n<\/script>\n<\/body>\n<\/html>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\uacbd\ub9e4\/\uacf5\ub9e4 \uad8c\ub9ac\ubd84\uc11d \uc9c4\ub2e8 \uacbd\ub9e4 \uad8c\ub9ac\ubd84\uc11d \uc9c4\ub2e8 \uac01 \uad8c\ub9ac\uc758 \uc885\ub958\uc640 \uc124\uc815(\ubc1c\uc0dd)\uc77c\uc790\ub97c \uc785\ub825\ud558\uace0 &#8216;\uad8c\ub9ac \ucd94\uac00&#8217; \ubc84\ud2bc\uc744 \ub20c\ub7ec \ubaa9\ub85d\uc5d0 \ucd94\uac00\ud558\uc138\uc694. &#8216;\uad8c\ub9ac\ubd84\uc11d \uc2e4\ud589&#8217; \ubc84\ud2bc\uc744 \ub204\ub974\uba74 \uacb0\uacfc\ub97c \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4. \u26a0\ufe0f \uc720\uc758\uc0ac\ud56d: \ud559\uc2b5\uc6a9\uc774\ubbc0\ub85c, \uc2e4\uc81c \uacbd\ub9e4\uc758 \ubcf5\uc7a1\uc131\uc744 \ubc18\uc601\ud558\uc9c0 \uc54a\uc74c. \ud2b9\ud788 \ubc30\ub2f9\uae08 \uacc4\uc0b0\uc774\ub098 \uc720\uce58\uad8c \ub4f1 \uc131\ub9bd\uc5ec\ubd80\ub294 \uc804\ubb38\uac00\uc758 \ubd84\uc11d \ud544\uc218&#8230; \uad8c\ub9ac \ucd94\uac00 \uad8c\ub9ac \uc885\ub958: &#8212; \uc120\ud0dd &#8212;\uadfc\uc800\ub2f9\uad8c\uc800\ub2f9\uad8c\uc555\ub958\uac00\uc555\ub958\ub2f4\ubcf4\uac00\ub4f1\uae30\uacbd\ub9e4\uac1c\uc2dc\uacb0\uc815\ub4f1\uae30\uc804\uc138\uad8c\uc784\ucc28\uad8c (\uc8fc\ud0dd\/\uc0c1\uac00)\uccad\uad6c\uad8c\ubcf4\uc804\uac00\ub4f1\uae30\uc720\uce58\uad8c\ubc95\uc815\uc9c0\uc0c1\uad8c\ubd84\ubb18\uae30\uc9c0\uad8c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/template-pagebuilder-full-width.php","meta":{"footnotes":""},"class_list":["post-14442","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/chois2080.mycafe24.com\/index.php?rest_route=\/wp\/v2\/pages\/14442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chois2080.mycafe24.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/chois2080.mycafe24.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/chois2080.mycafe24.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chois2080.mycafe24.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14442"}],"version-history":[{"count":9,"href":"https:\/\/chois2080.mycafe24.com\/index.php?rest_route=\/wp\/v2\/pages\/14442\/revisions"}],"predecessor-version":[{"id":14451,"href":"https:\/\/chois2080.mycafe24.com\/index.php?rest_route=\/wp\/v2\/pages\/14442\/revisions\/14451"}],"wp:attachment":[{"href":"https:\/\/chois2080.mycafe24.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}