text: // [DozSearchfield]  Build version: 1.2.0  
   !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("doz")):"function"==typeof define&&define.amd?define("DozSearchfield",["doz"],t):"object"==typeof exports?exports.DozSearchfield=t(require("doz")):e.DozSearchfield=t(e.Doz)}(this,function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r,i=(o=['\n            <input\n                placeholder="','"\n                class="','"\n                type="','"\n                name="','"\n                oninput="this.$onInput()"\n                onkeyup="this.$onKeyUp()"\n                d-ref="input"\n                d-bind="value"\n                id="','"\n            >\n            <button \n                class="','" \n                style="display: ','" \n                onclick="this.$search()"\n            >',"</button>\n        "],r=['\n            <input\n                placeholder="','"\n                class="','"\n                type="','"\n                name="','"\n                oninput="this.$onInput()"\n                onkeyup="this.$onKeyUp()"\n                d-ref="input"\n                d-bind="value"\n                id="','"\n            >\n            <button \n                class="','" \n                style="display: ','" \n                onclick="this.$search()"\n            >',"</button>\n        "],Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(r)}})));t.default={props:{name:"",value:"",showButton:!1,buttonLabel:"Search",placeholder:"Search here...",buttonClass:"",inputClass:"",inputId:"",showClearButton:!0,typeahead:0,forceSearch:!1},template:function(e){return e(i,this.props.placeholder,this.props.inputClass,this.props.showClearButton?"search":"text",this.props.name,this.props.inputId,this.props.buttonClass,this.props.showButton?"inline":"none",this.props.buttonLabel)},onCreate:function(){this.$isSearching=!1,this.$lastValue="",this.$overTypehead=!1},$onInput:function(e){""===e.target.value&&this.$clear(),this.props.typeahead&&this.props.value.length>=this.props.typeahead&&(this.$overTypehead=!0)},$onKeyUp:function(e){(13===e.keyCode||8===e.keyCode&&this.props.typeahead&&this.$overTypehead||this.props.typeahead&&this.props.value.length>=this.props.typeahead)&&this.$search()},$search:function(e){void 0!==e&&(this.$lastValue=null),(this.props.forceSearch||this.$lastValue!==this.props.value)&&(this.$lastValue=this.props.value,this.$isSearching=!0,this.emit("search",this.props.value))},$clear:function(){this.props.value="",this.$lastValue="",this.$overTypehead=!1,this.$isSearching=!1,this.emit("clear")}}},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(1)),r=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}"undefined"!=typeof window&&o.default.component("doz-searchfield",r.default),t.default=r.default}])}); 