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OAAhE,EAAyE,MAAzE;AACD;AACD,YAAI,MAAM,QAAV,EAAoB;AAClB,sBAAU,qBAAV,EAAiC,2BAAjC,EAA8D,OAA9D,EAAuE,MAAvE;AACD;AAED,aAAK,KAAL,GAAa,KAAK,KAAL,IAAc,EAA3B;AAEA,YAAI,MAAM,QAAN,IAAkB,MAAM,IAA5B,EAAkC;AAChC,iBAAK,KAAL,CAAW,QAAX,GAAsB,MAAM,IAA5B;AACA,mBAAO,EAAE,SAAF,EAAa,IAAb,EAAmB,QAAnB,CAAP;AACD,SAHD,MAGO,IAAI,MAAM,YAAV,EAAwB;AAC7B,iBAAK,KAAL,CAAW,QAAX,GAAsB,MAAM,QAA5B;AACA,mBAAO,EAAE,aAAF,EAAiB,IAAjB,EAAuB,QAAvB,CAAP;AACD,SAHM,MAGA,IAAI,MAAM,QAAN,IAAkB,MAAM,SAAxB,IAAqC,MAAM,QAA/C,EAAyD;AAC9D,iBAAK,KAAL,CAAW,SAAX,GAAuB,MAAM,SAA7B;AACA,iBAAK,KAAL,CAAW,QAAX,GAAsB,MAAM,QAA5B;AACA,mBAAO,EAAE,YAAF,EAAgB,IAAhB,EAAsB,QAAtB,CAAP;AACD,SAJM,MAIA;AACL,iBAAK,KAAL,CAAW,QAAX,GAAsB,MAAM,QAA5B;AACA,mBAAO,EAAE,OAAF,EAAW,IAAX,EAAiB,QAAjB,CAAP;AACD;AACF;AA/Da,CAAhB;AAkEA,SAAS,WAAW,OAApB;AAEA,eAAe,OAAf","sourcesContent":["import VSelect from './VSelect'\nimport VOverflowBtn from '../VOverflowBtn'\nimport VAutocomplete from '../VAutocomplete'\nimport VCombobox from '../VCombobox'\nimport rebuildSlots from '../../util/rebuildFunctionalSlots'\nimport dedupeModelListeners from '../../util/dedupeModelListeners'\nimport { deprecate } from '../../util/console'\n\n/* @vue/component */\nconst wrapper = {\n functional: true,\n\n $_wrapperFor: VSelect,\n\n props: {\n // VAutoComplete\n /** @deprecated */\n autocomplete: Boolean,\n /** @deprecated */\n combobox: Boolean,\n multiple: Boolean,\n /** @deprecated */\n tags: Boolean,\n // VOverflowBtn\n /** @deprecated */\n editable: Boolean,\n /** @deprecated */\n overflow: Boolean,\n /** @deprecated */\n segmented: Boolean\n },\n\n render (h, { props, data, slots, parent }) { // eslint-disable-line max-statements\n dedupeModelListeners(data)\n const children = rebuildSlots(slots(), h)\n\n if (props.autocomplete) {\n deprecate('<v-select autocomplete>', '<v-autocomplete>', wrapper, parent)\n }\n if (props.combobox) {\n deprecate('<v-select combobox>', '<v-combobox>', wrapper, parent)\n }\n if (props.tags) {\n deprecate('<v-select tags>', '<v-combobox multiple>', wrapper, parent)\n }\n\n if (props.overflow) {\n deprecate('<v-select overflow>', '<v-overflow-btn>', wrapper, parent)\n }\n if (props.segmented) {\n deprecate('<v-select segmented>', '<v-overflow-btn segmented>', wrapper, parent)\n }\n if (props.editable) {\n deprecate('<v-select editable>', '<v-overflow-btn editable>', wrapper, parent)\n }\n\n data.attrs = data.attrs || {}\n\n if (props.combobox || props.tags) {\n data.attrs.multiple = props.tags\n return h(VCombobox, data, children)\n } else if (props.autocomplete) {\n data.attrs.multiple = props.multiple\n return h(VAutocomplete, data, children)\n } else if (props.overflow || props.segmented || props.editable) {\n data.attrs.segmented = props.segmented\n data.attrs.editable = props.editable\n return h(VOverflowBtn, data, children)\n } else {\n data.attrs.multiple = props.multiple\n return h(VSelect, data, children)\n }\n }\n}\n\nexport { wrapper as VSelect }\n\nexport default wrapper\n"],"sourceRoot":""}
|