text: (self.webpackChunk=self.webpackChunk||[]).push([[177],{177:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(629),a=r(8475);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c={data:function(){return{textureMaterial:"",kind:"玄関戸.シリンダー",rowIndex:"25",textureColor:"",texturesInAPI:[],defaultSelectedTextureInfo:{},tmpTextureMaterial:[],visibleIcon:{icon:"mdi-plus-circle",color:"blue lighten-2"}}},computed:s(s({},(0,n.rn)(["UserInterface","PlanInfo"])),(0,n.nv)(["selectedItemsPrevious"])),mounted:function(){var e=this;1==this.$PlanData.isRowShown("45")&&(this.visibleIcon=""),a.$.$on("showIconDoor",(function(t){e.visibleIcon=t}));try{this.$PlanData.preSelectedItem("25"),this.texturesInAPI=this.$PlanData.texturesInAPI(this.$PlanData.itemIndex("25")),this.defaultSelectedTextureInfo=this.PlanInfo.SelectedItems[this.$PlanData.itemIndexInSelected("25")],this.textureColor=this.defaultSelectedTextureInfo.JapaneseName,this.textureMaterial=this.defaultSelectedTextureInfo.Material}catch(e){console.log("no texture defaults")}},methods:{addEntranceDoor:function(){this.visibleIcon="",a.$.$emit("EntranceDoor",!0)},saveTextureInfoASJSON:function(e,t){this.$PlanData.addSelectedItems(e,t),null==this.textureColor||null==this.textureMaterial?(this.textureMaterial="",this.textureColor="",this.$PlanData.removeItemInSelected(this.$PlanData.itemIndexInSelected("25"))):(this.textureMaterial=e.Material,this.textureColor=e.JapaneseName)},textureMaterialApi:function(){return o(new Map(this.texturesInAPI.map((function(e){return[e.TypeId,e]}))).values())}}};const f=(0,r(1900).Z)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-container",{staticClass:"grey lighten-4 pt-0 pr-2 pl-2 pb-2",attrs:{fluid:""}},[r("v-simple-table",{staticClass:"tg",attrs:{width:"100%"}},[r("tr",[r("td",{staticClass:"borderRight borderRight borderAbove",attrs:{width:"38px",rowspan:e.texturesInAPI.length+1}},[r("center",[r("v-icon",{attrs:{color:e.visibleIcon.color},on:{click:function(t){return e.addEntranceDoor()}}},[e._v("\n          "+e._s(this.visibleIcon.icon)+"\n        ")])],1)],1),e._v(" "),r("td",{staticClass:"firstColumnWidth borderAbove borderLeft",attrs:{rowspan:e.texturesInAPI.length+2}},[r("v-label",[e._v(" 玄関戸")])],1),e._v(" "),r("td",{attrs:{rowspan:e.texturesInAPI.length+2}},[r("v-label",[r("center",[e._v("シリンダー")])],1)],1)]),e._v(" "),e._l(e.textureMaterialApi(),(function(t,n){return[r("tr",[r("td",[r("v-checkbox",{staticClass:"shrink mt-0",attrs:{color:"orange","hide-details":"",label:t.Material,value:t.Material},on:{change:function(r){return e.saveTextureInfoASJSON(t,!0)}},model:{value:e.textureMaterial,callback:function(t){e.textureMaterial=t},expression:"textureMaterial"}})],1),e._v(" "),r("td",e._l(e.texturesInAPI,(function(n,a){return r("tr",[n.TypeId==t.TypeId?[r("v-checkbox",{staticClass:"shrink mt-0",attrs:{color:"orange","hide-details":"",label:n.JapaneseName,value:n.JapaneseName},on:{change:function(t){return e.saveTextureInfoASJSON(n,!0)}},model:{value:e.textureColor,callback:function(t){e.textureColor=t},expression:"textureColor"}})]:e._e()],2)})),0)])]}))],2)],1)}),[],!1,null,null,null).exports}}]);