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AAC,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC;QAC3C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,CAAC,CAAC;QACN,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC;QAE3B,IAAI,CAAC,OAAO,CAAC,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAC,CAAC;QAC5C,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACvC,CAAC;IAED,WAAW;QACT,IAAI,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5B,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED,SAAS,CAAC,CAAC;QACT,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACzC,CAAC;IAED,aAAa;QACX,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC5B,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;IACpC,CAAC;CACF,CAAA;AAjEoB,MAAM;IAD1B,WAAW,EAAE;GACO,MAAM,CAiE1B;eAjEoB,MAAM","file":"search.js","sourcesContent":["import { SuperComponent, wxComponent } from '../common/src/index';\nimport config from '../common/config';\nimport props from './props';\n\nconst { prefix } = config;\nconst name = `${prefix}-search`;\n\n@wxComponent()\nexport default class Search extends SuperComponent {\n externalClasses = [\n `${prefix}-class`,\n `${prefix}-class-input-container`,\n `${prefix}-class-input`,\n `${prefix}-class-cancel`,\n `${prefix}-class-left`,\n `${prefix}-class-right`,\n ];\n\n options = {\n multipleSlots: true,\n };\n\n properties = props;\n\n observers = {\n focus(this: Search, nextValue: boolean) {\n this.setData({ 'localValue.focus': nextValue });\n },\n };\n\n data = {\n classPrefix: name,\n prefix,\n localValue: {\n focus: false,\n },\n };\n\n onInput(e) {\n const { value } = e.detail;\n\n this.setData({ value });\n this.triggerEvent('change', { value });\n }\n\n onFocus(e) {\n const { value } = e.detail;\n\n this.setData({ 'localValue.focus': true });\n this.triggerEvent('focus', { value });\n }\n\n onBlur(e) {\n const { value } = e.detail;\n\n this.setData({ 'localValue.focus': false });\n this.triggerEvent('blur', { value });\n }\n\n handleClear() {\n this.setData({ value: '' });\n this.triggerEvent('clear', { value: '' });\n }\n\n onConfirm(e) {\n const { value } = e.detail;\n this.triggerEvent('submit', { value });\n }\n\n onActionClick() {\n this.triggerEvent('cancel');\n this.triggerEvent('action-click');\n }\n}\n"]}