4001}4002inputRequired = that.deliveryState.city.hasStreets;4003if (that.deliveryState.city.hasHousesWithoutStreets) {4004inputRequired = false;4005// autocomplete = true;4006}4007break;4008case 'house':4009counter++;4010inputLabel = t_delivery__dict('house');4011if (!that.deliveryState.city.hasStreets && !that.deliveryState.city.hasHousesWithoutStreets) {4012
inputRequired = true; break; } inputRequired = that.deliveryState.city.hasStreets; if (that.deliveryState.city.hasHousesWithoutStreets) { inputRequired = true; } break; case 'entrance': counter++; inputLabel = t_delivery__dict('entrance'); inputRequired = false; break; case 'floor': counter++; inputLabel = t_delivery__dict('floor'); inputType = 'number'; inputMode = 'numeric'; inputRequired = false; break; case 'aptOffice': counter++; inputLabel = t_delivery__dict('apt'); inputRequired = false; break; case 'phone': counter++; inputLabel = t_delivery__dict('phone'); inputType = 'number'; inputMode = 'numeric'; break; case 'entranceCode': counter++; inputLabel = t_delivery__dict('entranceCode'); inputRequired = false; break; case 'comment': inputLabel = t_delivery__dict('comment'); inputGroupStyle = 'width: 100%'; inputRequired = false; inputPlaceholder = t_delivery__dict('orderComment'); break; case 'oneLineAddress': counter++; inputLabel = t_delivery__dict('address'); break; case 'userInitials': inputGroupStyle = 'width: 100%'; inputLabel = t_delivery__dict('fullName'); inputPlaceholder = t_delivery__dict('johnDoe'); break; default: break; } if (smallSizeFieldsCount === counter && smallSizeFieldsCount % 2 !== 0) { inputGroupStyle = 'width: 100%'; } inputLabel = inputLabel || ''; var inputName = 'tildadelivery-' + fieldKey; var tildaRule = ''; if (autocomplete) { if (inputRequired) tildaRule = 'chosevalue'; var inputWithAutocomplete = this.createInput( inputType, inputLabel, inputPlaceholder, '', '', deliveryServiceId, 'searchbox-input js-tilda-rule', inputName, false, inputGroupStyle, inputRequired, inputMode, tildaRule ); var searchboxId = fieldKey + '-searchbox'; var searchbox = this.createSearchbox(inputWithAutocomplete, searchboxId); wrapper.appendChild(searchbox); this.searchboxInit(searchboxId, fieldKey); } else { if (fieldKey === 'userInitials') {