import WithDraggable from "@/components/common/draggable/withDraggable";
import Qselect from "@/components/common/select/Qselect";
import PopSpinner from "@/components/common/spinner/PopSpiner";

const SelectOption01 = [
    {name: '瓦53A',}, {name: '瓦53A'}, {name: '瓦53A'}, {name: '瓦53A'}
]
const SelectOption04 = [
    {name: '세로 455mm이하'}, {name: '455'}, {name: '455'}, {name: '455'}
]

export default function RoofAllocation() {
    return(
        <WithDraggable isShow={true} size={'lr'}>
                <div className="modal-head handle">
                    <h1 className="title">屋根面の割り当て</h1>
                    <button className="modal-close">닫기</button>
                </div>
                <div className="modal-body">
                <div className="left-bar handle"></div>
                <div className="right-bar handle"></div>
                    <div className="properties-guide">
                        ※配置面初期設定で保存した[基本屋根材]を変更したり、屋根材を追加して割り当てることができます。
                    </div>
                    <div className="allocation-select-wrap">
                        {/* <span>屋根材の選択</span>
                        <div className="grid-select" >
                            <Qselect title={'瓦53A'} option={SelectOption01}/>
                        </div> */}
                        <button className="allocation-edit"><i className="edit-ico"></i>屋根材の追加</button>
                    </div>
                    <div className="grid-option-overflow">
                        <div className="grid-option-wrap">
                            <div className="grid-option-box">
                                <div className="d-check-radio pop no-text">
                                    <input type="radio" name="radio01" id="ra01" />
                                    <label htmlFor="ra01"></label>
                                </div>
                                <div className="grid-option-block-form">
                                    <div className="block-box">
                                        <div className="flex-ment">
                                            <div className="grid-select" >
                                                <Qselect title={'瓦53A'} option={SelectOption01}/>
                                            </div>
                                            <span className="absol dec">基本屋根材</span>
                                        </div>
                                    </div>
                                    <div className="block-box" >
                                        <div className="flex-ment">
                                            <span>斜傾</span>
                                            <div className="input-grid" >
                                                <input type="text" className="input-origin block" defaultValue={100} readOnly/>
                                            </div>
                                            <span className="absol">寸(度)</span>
                                        </div>
                                    </div>
                                    <div className="block-box">
                                        <div className="flex-ment">
                                            <span>W</span>
                                            <div className="input-grid" >
                                                <input type="text" className="input-origin block" defaultValue={100} readOnly/>
                                            </div>
                                        </div>
                                    </div>
                                    <div className="block-box">
                                        <div className="flex-ment">
                                            <span>L</span>
                                            <div className="input-grid">
                                                <input type="text" className="input-origin block" defaultValue={100} readOnly/>
                                            </div>
                                        </div>
                                    </div>
                                    <div className="block-box">
                                        <div className="flex-ment">
                                            <span>垂木の間隔</span>
                                            <div className="grid-select">
                                                <Qselect title={'455'} option={SelectOption04}/>
                                            </div>
                                        </div>
                                    </div>
                                    <div className="block-box" >
                                        <div className="flex-ment">
                                            <span>ハゼビーチ</span>
                                            <div className="input-grid" >
                                                <input type="text" className="input-origin block" defaultValue={100} readOnly/>
                                            </div>
                                        </div>
                                    </div>
                                    {/* <div className="block-box">
                                        <div className="icon-btn-wrap">
                                            <button className="act">並列式<i className="allocation01"></i></button>
                                            <button>カスケード <i className="allocation02"></i></button>
                                        </div>
                                    </div> */}
                                    
                                </div>
                            </div>
                            
                            <div className="grid-option-box">
                                <div className="d-check-radio pop no-text">
                                    <input type="radio" name="radio01" id="ra01" />
                                    <label htmlFor="ra01"></label>
                                </div>
                                <div className="grid-option-block-form">
                                    <div className="block-box">
                                        <div className="flex-ment">
                                            <div className="grid-select" >
                                                <Qselect title={'瓦53A'} option={SelectOption01}/>
                                            </div>
                                            <span className="absol">
                                                <button className="delete"></button>
                                            </span>
                                        </div>
                                    </div>
                                    <div className="block-box" >
                                        <div className="flex-ment">
                                            <span>斜傾</span>
                                            <div className="input-grid" >
                                                <input type="text" className="input-origin block" defaultValue={100} readOnly/>
                                            </div>
                                            <span className="absol">寸(度)</span>
                                        </div>
                                    </div>
                                    <div className="block-box">
                                        <div className="flex-ment">
                                            <span>W</span>
                                            <div className="input-grid" >
                                                <input type="text" className="input-origin block" defaultValue={100} readOnly/>
                                            </div>
                                        </div>
                                    </div>
                                    <div className="block-box">
                                        <div className="flex-ment">
                                            <span>L</span>
                                            <div className="input-grid">
                                                <input type="text" className="input-origin block" defaultValue={100} readOnly/>
                                            </div>
                                        </div>
                                    </div>
                                    <div className="block-box">
                                        <div className="flex-ment">
                                            <span>垂木の間隔</span>
                                            <div className="grid-select">
                                                <Qselect title={'455'} option={SelectOption04}/>
                                            </div>
                                        </div>
                                    </div>
                                    <div className="block-box" >
                                        <div className="flex-ment">
                                            <span>ハゼビーチ</span>
                                            <div className="input-grid" >
                                                <input type="text" className="input-origin block" defaultValue={100} readOnly/>
                                            </div>
                                        </div>
                                    </div>
                                    {/* <div className="block-box">
                                        <div className="icon-btn-wrap">
                                            <button className="act">並列式<i className="allocation01"></i></button>
                                            <button>カスケード <i className="allocation02"></i></button>
                                        </div>
                                    </div> */}
                                    
                                </div>
                            </div>
                            
                        </div>
                    </div>
                    <div className="grid-btn-wrap">
                        <button className="btn-frame modal act">選択した屋根材として割り当て</button>
                    </div>
                </div>
                <div className="modal-foot handle"></div>
        </WithDraggable>
    )
}