{"version":3,"sources":["webpack:///./node_modules/quasar/src/components/form/QForm.js","webpack:///./node_modules/quasar/src/components/file/QFile.js","webpack:///./node_modules/quasar/src/composables/private/use-file.js","webpack:///./node_modules/quasar/src/components/chip/QChip.js"],"names":["createComponent","name","props","autofocus","Boolean","noErrorFocus","noResetFocus","greedy","onSubmit","Function","emits","setup","slots","emit","vm","getCurrentInstance","rootRef","ref","validateIndex","registeredComponents","validate","shouldFocus","focus","index","emitEvent","res","validateComponent","comp","valid","then","err","Promise","resolve","errorsPromise","all","map","filter","r","reduce","acc","reject","catch","error","errors","length","console","activeError","find","vmIsDestroyed","$","resetValidation","forEach","submit","evt","stopAndPrevent","val","target","reset","nextTick","addFocusFn","value","querySelector","Array","prototype","call","querySelectorAll","el","tabIndex","preventScroll","provide","formKey","bindComponent","vmProxy","push","unbindComponent","indexOf","splice","shouldActivate","onDeactivated","onActivated","onMounted","Object","assign","proxy","getValidationComponents","h","class","onReset","hSlot","default","inheritAttrs","useFieldProps","useFormProps","useFileProps","modelValue","__QUASAR_SSR_SERVER__","File","FileList","append","useChips","displayValue","String","Number","tabindex","type","counterLabel","inputClass","inputStyle","useFieldEmits","useFileEmits","attrs","state","useFieldState","inputRef","dnd","nameProp","useFormInputNameAttr","pickFiles","onDragover","onDragleave","processFiles","getDndNode","useFile","editable","getFileInput","addFilesToQueue","formDomProps","useFileFormDomProps","innerValue","computed","from","hasValue","fieldValueIsFilled","selectedString","file","join","totalSize","humanStorageSize","size","counterProps","filesNumber","maxFiles","inputAttrs","title","accept","capture","id","targetUid","disabled","fieldClass","isAppending","multiple","removeAtIndex","files","slice","emitValue","removeFile","onKeydown","e","keyCode","prevent","onKeyup","fileList","fileInput","every","f","includes","concat","getFiller","style","getSelection","selected","i","QChip","key","removable","dense","textColor","color","onRemove","textContent","getInput","data","onChange","floatingLabel","computedCounter","max","getControlChild","getControl","targetRef","getNativeElement","injectProp","useField","filterFiles","rejectedFiles","failedPropValidation","filterFn","acceptedFiles","stopAndPreventDrag","dataTransfer","dropEffect","maxFileSize","maxTotalSize","dndRef","extensions","split","ext","trim","endsWith","toUpperCase","maxFilesNumber","parseInt","maxTotalSizeNumber","matches","clientX","clientY","stop","input","click","addFiles","filesToProcess","currentFileList","done","some","startsWith","__key","webkitRelativePath","lastModified","filenameMap","entry","total","filteredFiles","gone","relatedTarget","client","is","safari","document","elementsFromPoint","onDrop","onDragenter","defaultSizes","xs","sm","md","lg","xl","useDarkProps","useSizeProps","icon","iconRight","iconRemove","iconSelected","label","square","outline","clickable","removeAriaLabel","disable","ripple","$q","isDark","useDark","sizeStyle","useSize","hasLeftIcon","leftIcon","iconSet","chip","removeIcon","remove","isClickable","classes","text","attributes","role","lang","onClick","getContent","child","QIcon","hMergeSlotSafely","hDir","Ripple"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAA0G;AAE3C;AACV;AACY;AACZ;AACG;AACC;AAE1CA,+IAAe,CAAC;EAC7BC,IAAI,EAAE,OAAO;EAEbC,KAAK,EAAE;IACLC,SAAS,EAAEC,OAAO;IAClBC,YAAY,EAAED,OAAO;IACrBE,YAAY,EAAEF,OAAO;IACrBG,MAAM,EAAEH,OAAO;IAEfI,QAAQ,EAAEC;EACZ,CAAC;EAEDC,KAAK,EAAE,CAAE,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,CAAE;EAE1DC,KAAKA,CAAET,KAAK,EAAE;IAAEU,KAAK;IAAEC;EAAK,CAAC,EAAE;IAC7B,MAAMC,EAAE,GAAGC,8DAAkB,CAAC,CAAC;IAC/B,MAAMC,OAAO,GAAGC,+CAAG,CAAC,IAAI,CAAC;IAEzB,IAAIC,aAAa,GAAG,CAAC;IACrB,MAAMC,oBAAoB,GAAG,EAAE;IAE/B,SAASC,QAAQA,CAAEC,WAAW,EAAE;MAC9B,MAAMC,KAAK,GAAG,OAAOD,WAAW,KAAK,SAAS,GAC1CA,WAAW,GACXnB,KAAK,CAACG,YAAY,KAAK,IAAI;MAE/B,MAAMkB,KAAK,GAAG,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;QACpB6G,KAAK,EAAE8F,SAAS,CAAC3M;MACnB,CAAC;MAEDmN,WAAW,CAACnN,KAAK,KAAK,IAAI,IAAIqB,MAAM,CAACC,MAAM,CACzCoG,IAAI,EACJ4F,UAAU,CAACtN,KAAK,CAACgN,IAAI,EACrB;QAAES,OAAO;QAAEpH;MAAQ,CACrB,CAAC;MAED,OAAOyH,qEAAI,CACT,KAAK,EACLpG,IAAI,EACJgG,UAAU,CAAC,CAAC,EACZ,QAAQ,EACRpR,KAAK,CAACiQ,MAAM,KAAK,KAAK,IAAIjQ,KAAK,CAACgQ,OAAO,KAAK,IAAI,EAChD,MAAM,CAAE,CAAEyB,oEAAM,EAAEzR,KAAK,CAACiQ,MAAM,CAAE,CAClC,CAAC;IACH,CAAC;EACH;AACF,CAAC,CAAC,E","file":"js/chunk-48c00016.46f9c965.js","sourcesContent":["import { h, ref, onActivated, onDeactivated, onMounted, getCurrentInstance, nextTick, provide } from 'vue'\n\nimport { createComponent } from '../../utils/private/create.js'\nimport { stopAndPrevent } from '../../utils/event.js'\nimport { addFocusFn } from '../../utils/private/focus-manager.js'\nimport { hSlot } from '../../utils/private/render.js'\nimport { formKey } from '../../utils/private/symbols.js'\nimport { vmIsDestroyed } from '../../utils/private/vm.js'\n\nexport default createComponent({\n name: 'QForm',\n\n props: {\n autofocus: Boolean,\n noErrorFocus: Boolean,\n noResetFocus: Boolean,\n greedy: Boolean,\n\n onSubmit: Function\n },\n\n emits: [ 'reset', 'validationSuccess', 'validationError' ],\n\n setup (props, { slots, emit }) {\n const vm = getCurrentInstance()\n const rootRef = ref(null)\n\n let validateIndex = 0\n const registeredComponents = []\n\n function validate (shouldFocus) {\n const focus = typeof shouldFocus === 'boolean'\n ? shouldFocus\n : props.noErrorFocus !== true\n\n const index = ++validateIndex\n\n const emitEvent = (res, ref) => {\n emit('validation' + (res === true ? 'Success' : 'Error'), ref)\n }\n\n const validateComponent = comp => {\n const valid = comp.validate()\n\n return typeof valid.then === 'function'\n ? valid.then(\n valid => ({ valid, comp }),\n err => ({ valid: false, comp, err })\n )\n : Promise.resolve({ valid, comp })\n }\n\n const errorsPromise = props.greedy === true\n ? Promise\n .all(registeredComponents.map(validateComponent))\n .then(res => res.filter(r => r.valid !== true))\n : registeredComponents\n .reduce(\n (acc, comp) => acc.then(() => {\n return validateComponent(comp).then(r => {\n if (r.valid === false) { return Promise.reject(r) }\n })\n }),\n Promise.resolve()\n )\n .catch(error => [ error ])\n\n return errorsPromise.then(errors => {\n if (errors === void 0 || errors.length === 0) {\n index === validateIndex && emitEvent(true)\n return true\n }\n\n // if not outdated already\n if (index === validateIndex) {\n const { comp, err } = errors[ 0 ]\n\n err !== void 0 && console.error(err)\n emitEvent(false, comp)\n\n if (focus === true) {\n // Try to focus first mounted and active component\n const activeError = errors.find(({ comp }) => (\n typeof comp.focus === 'function'\n && vmIsDestroyed(comp.$) === false\n ))\n\n if (activeError !== void 0) {\n activeError.comp.focus()\n }\n }\n }\n\n return false\n })\n }\n\n function resetValidation () {\n validateIndex++\n\n registeredComponents.forEach(comp => {\n typeof comp.resetValidation === 'function' && comp.resetValidation()\n })\n }\n\n function submit (evt) {\n evt !== void 0 && stopAndPrevent(evt)\n\n const index = validateIndex + 1\n\n validate().then(val => {\n // if not outdated && validation succeeded\n if (index === validateIndex && val === true) {\n if (props.onSubmit !== void 0) {\n emit('submit', evt)\n }\n else if (evt !== void 0 && evt.target !== void 0 && typeof evt.target.submit === 'function') {\n evt.target.submit()\n }\n }\n })\n }\n\n function reset (evt) {\n evt !== void 0 && stopAndPrevent(evt)\n\n emit('reset')\n\n nextTick(() => { // allow userland to reset values before\n resetValidation()\n if (props.autofocus === true && props.noResetFocus !== true) {\n focus()\n }\n })\n }\n\n function focus () {\n addFocusFn(() => {\n if (rootRef.value === null) return\n\n const target = rootRef.value.querySelector('[autofocus][tabindex], [data-autofocus][tabindex]')\n || rootRef.value.querySelector('[autofocus] [tabindex], [data-autofocus] [tabindex]')\n || rootRef.value.querySelector('[autofocus], [data-autofocus]')\n || Array.prototype.find.call(rootRef.value.querySelectorAll('[tabindex]'), el => el.tabIndex !== -1)\n\n target !== null && target !== void 0 && target.focus({ preventScroll: true })\n })\n }\n\n provide(formKey, {\n bindComponent (vmProxy) {\n registeredComponents.push(vmProxy)\n },\n\n unbindComponent (vmProxy) {\n const index = registeredComponents.indexOf(vmProxy)\n if (index !== -1) {\n registeredComponents.splice(index, 1)\n }\n }\n })\n\n let shouldActivate = false\n\n onDeactivated(() => {\n shouldActivate = true\n })\n\n onActivated(() => {\n shouldActivate === true && props.autofocus === true && focus()\n })\n\n onMounted(() => {\n props.autofocus === true && focus()\n })\n\n // expose public methods\n Object.assign(vm.proxy, {\n validate,\n resetValidation,\n submit,\n reset,\n focus,\n getValidationComponents: () => registeredComponents\n })\n\n return () => h('form', {\n class: 'q-form',\n ref: rootRef,\n onSubmit: submit,\n onReset: reset\n }, hSlot(slots.default))\n }\n})\n","import { h, ref, computed, getCurrentInstance } from 'vue'\n\nimport QChip from '../chip/QChip.js'\n\nimport useField, { useFieldState, useFieldProps, useFieldEmits, fieldValueIsFilled } from '../../composables/private/use-field.js'\nimport { useFormProps, useFormInputNameAttr } from '../../composables/private/use-form.js'\nimport useFile, { useFileProps, useFileEmits } from '../../composables/private/use-file.js'\nimport useFileFormDomProps from '../../composables/private/use-file-dom-props.js'\n\nimport { createComponent } from '../../utils/private/create.js'\nimport { humanStorageSize } from '../../utils/format.js'\nimport { prevent } from '../../utils/event.js'\nimport { injectProp } from '../../utils/private/inject-obj-prop.js'\n\nexport default createComponent({\n name: 'QFile',\n\n inheritAttrs: false,\n\n props: {\n ...useFieldProps,\n ...useFormProps,\n ...useFileProps,\n\n /* SSR does not know about File & FileList */\n modelValue: __QUASAR_SSR_SERVER__\n ? {}\n : [ File, FileList, Array ],\n\n append: Boolean,\n useChips: Boolean,\n displayValue: [ String, Number ],\n\n tabindex: {\n type: [ String, Number ],\n default: 0\n },\n\n counterLabel: Function,\n\n inputClass: [ Array, String, Object ],\n inputStyle: [ Array, String, Object ]\n },\n\n emits: [\n ...useFieldEmits,\n ...useFileEmits\n ],\n\n setup (props, { slots, emit, attrs }) {\n const { proxy } = getCurrentInstance()\n\n const state = useFieldState()\n\n const inputRef = ref(null)\n const dnd = ref(false)\n const nameProp = useFormInputNameAttr(props)\n\n const {\n pickFiles,\n onDragover,\n onDragleave,\n processFiles,\n getDndNode\n } = useFile({ editable: state.editable, dnd, getFileInput, addFilesToQueue })\n\n const formDomProps = useFileFormDomProps(props)\n\n const innerValue = computed(() => (\n Object(props.modelValue) === props.modelValue\n ? ('length' in props.modelValue ? Array.from(props.modelValue) : [ props.modelValue ])\n : []\n ))\n\n const hasValue = computed(() => fieldValueIsFilled(innerValue.value))\n\n const selectedString = computed(() =>\n innerValue.value\n .map(file => file.name)\n .join(', ')\n )\n\n const totalSize = computed(() =>\n humanStorageSize(\n innerValue.value.reduce((acc, file) => acc + file.size, 0)\n )\n )\n\n const counterProps = computed(() => ({\n totalSize: totalSize.value,\n filesNumber: innerValue.value.length,\n maxFiles: props.maxFiles\n }))\n\n const inputAttrs = computed(() => ({\n tabindex: -1,\n type: 'file',\n title: '', // try to remove default tooltip,\n accept: props.accept,\n capture: props.capture,\n name: nameProp.value,\n ...attrs,\n id: state.targetUid.value,\n disabled: state.editable.value !== true\n }))\n\n const fieldClass = computed(() =>\n 'q-file q-field--auto-height'\n + (dnd.value === true ? ' q-file--dnd' : '')\n )\n\n const isAppending = computed(() =>\n props.multiple === true && props.append === true\n )\n\n function removeAtIndex (index) {\n const files = innerValue.value.slice()\n files.splice(index, 1)\n emitValue(files)\n }\n\n function removeFile (file) {\n const index = innerValue.value.indexOf(file)\n if (index !== -1) {\n removeAtIndex(index)\n }\n }\n\n function emitValue (files) {\n emit('update:modelValue', props.multiple === true ? files : files[ 0 ])\n }\n\n function onKeydown (e) {\n // prevent form submit if ENTER is pressed\n e.keyCode === 13 && prevent(e)\n }\n\n function onKeyup (e) {\n // only on ENTER and SPACE to match native input field\n if (e.keyCode === 13 || e.keyCode === 32) {\n pickFiles(e)\n }\n }\n\n function getFileInput () {\n return inputRef.value\n }\n\n function addFilesToQueue (e, fileList) {\n const files = processFiles(e, fileList, innerValue.value, isAppending.value)\n const fileInput = getFileInput()\n\n if (fileInput !== void 0 && fileInput !== null) {\n fileInput.value = ''\n }\n\n // if nothing to do...\n if (files === void 0) return\n\n // protect against input @change being called in a loop\n // like it happens on Safari, so don't emit same thing:\n if (\n props.multiple === true\n ? props.modelValue && files.every(f => innerValue.value.includes(f))\n : props.modelValue === files[ 0 ]\n ) {\n return\n }\n\n emitValue(\n isAppending.value === true\n ? innerValue.value.concat(files)\n : files\n )\n }\n\n function getFiller () {\n return [\n h('input', {\n class: [ props.inputClass, 'q-file__filler' ],\n style: props.inputStyle\n })\n ]\n }\n\n function getSelection () {\n if (slots.file !== void 0) {\n return innerValue.value.length === 0\n ? getFiller()\n : innerValue.value.map(\n (file, index) => slots.file({ index, file, ref: this })\n )\n }\n\n if (slots.selected !== void 0) {\n return innerValue.value.length === 0\n ? getFiller()\n : slots.selected({ files: innerValue.value, ref: this })\n }\n\n if (props.useChips === true) {\n return innerValue.value.length === 0\n ? getFiller()\n : innerValue.value.map((file, i) => h(QChip, {\n key: 'file-' + i,\n removable: state.editable.value,\n dense: true,\n textColor: props.color,\n tabindex: props.tabindex,\n onRemove: () => { removeAtIndex(i) }\n }, () => h('span', {\n class: 'ellipsis',\n textContent: file.name\n })))\n }\n\n const textContent = props.displayValue !== void 0\n ? props.displayValue\n : selectedString.value\n\n return textContent.length !== 0\n ? [\n h('div', {\n class: props.inputClass,\n style: props.inputStyle,\n textContent\n })\n ]\n : getFiller()\n }\n\n function getInput () {\n const data = {\n ref: inputRef,\n ...inputAttrs.value,\n ...formDomProps.value,\n class: 'q-field__input fit absolute-full cursor-pointer',\n onChange: addFilesToQueue\n }\n\n if (props.multiple === true) {\n data.multiple = true\n }\n\n return h('input', data)\n }\n\n Object.assign(state, {\n fieldClass,\n emitValue,\n hasValue,\n inputRef,\n innerValue,\n\n floatingLabel: computed(() =>\n hasValue.value === true\n || fieldValueIsFilled(props.displayValue)\n ),\n\n computedCounter: computed(() => {\n if (props.counterLabel !== void 0) {\n return props.counterLabel(counterProps.value)\n }\n\n const max = props.maxFiles\n return `${ innerValue.value.length }${ max !== void 0 ? ' / ' + max : '' } (${ totalSize.value })`\n }),\n\n getControlChild: () => getDndNode('file'),\n getControl: () => {\n const data = {\n ref: state.targetRef,\n class: 'q-field__native row items-center cursor-pointer',\n tabindex: props.tabindex\n }\n\n if (state.editable.value === true) {\n Object.assign(data, { onDragover, onDragleave, onKeydown, onKeyup })\n }\n\n return h('div', data, [ getInput() ].concat(getSelection()))\n }\n })\n\n // expose public methods\n Object.assign(proxy, {\n removeAtIndex,\n removeFile,\n getNativeElement: () => inputRef.value // deprecated\n })\n\n injectProp(proxy, 'nativeEl', () => inputRef.value)\n\n return useField(state)\n }\n})\n","import { h, ref, computed, getCurrentInstance } from 'vue'\n\nimport { client } from '../../plugins/platform/Platform.js'\nimport { stop, stopAndPrevent } from '../../utils/event.js'\n\nfunction filterFiles (files, rejectedFiles, failedPropValidation, filterFn) {\n const acceptedFiles = []\n\n files.forEach(file => {\n if (filterFn(file) === true) {\n acceptedFiles.push(file)\n }\n else {\n rejectedFiles.push({ failedPropValidation, file })\n }\n })\n\n return acceptedFiles\n}\n\nfunction stopAndPreventDrag (e) {\n e && e.dataTransfer && (e.dataTransfer.dropEffect = 'copy')\n stopAndPrevent(e)\n}\n\nexport const useFileProps = {\n multiple: Boolean,\n accept: String,\n capture: String,\n maxFileSize: [ Number, String ],\n maxTotalSize: [ Number, String ],\n maxFiles: [ Number, String ],\n filter: Function\n}\n\nexport const useFileEmits = [ 'rejected' ]\n\nexport default function ({\n editable,\n dnd,\n getFileInput,\n addFilesToQueue\n}) {\n const { props, emit, proxy } = getCurrentInstance()\n\n const dndRef = ref(null)\n\n const extensions = computed(() => (\n props.accept !== void 0\n ? props.accept.split(',').map(ext => {\n ext = ext.trim()\n if (ext === '*') { // support \"*\"\n return '*/'\n }\n else if (ext.endsWith('/*')) { // support \"image/*\" or \"*/*\"\n ext = ext.slice(0, ext.length - 1)\n }\n return ext.toUpperCase()\n })\n : null\n ))\n\n const maxFilesNumber = computed(() => parseInt(props.maxFiles, 10))\n const maxTotalSizeNumber = computed(() => parseInt(props.maxTotalSize, 10))\n\n function pickFiles (e) {\n if (editable.value) {\n if (e !== Object(e)) {\n e = { target: null }\n }\n\n if (e.target !== null && e.target.matches('input[type=\"file\"]') === true) {\n // stop propagation if it's not a real pointer event\n e.clientX === 0 && e.clientY === 0 && stop(e)\n }\n else {\n const input = getFileInput()\n input && input !== e.target && input.click(e)\n }\n }\n }\n\n function addFiles (files) {\n if (editable.value && files) {\n addFilesToQueue(null, files)\n }\n }\n\n function processFiles (e, filesToProcess, currentFileList, append) {\n let files = Array.from(filesToProcess || e.target.files)\n const rejectedFiles = []\n\n const done = () => {\n if (rejectedFiles.length !== 0) {\n emit('rejected', rejectedFiles)\n }\n }\n\n // filter file types\n if (props.accept !== void 0 && extensions.value.indexOf('*/') === -1) {\n files = filterFiles(files, rejectedFiles, 'accept', file => {\n return extensions.value.some(ext => (\n file.type.toUpperCase().startsWith(ext)\n || file.name.toUpperCase().endsWith(ext)\n ))\n })\n\n if (files.length === 0) { return done() }\n }\n\n // filter max file size\n if (props.maxFileSize !== void 0) {\n const maxFileSize = parseInt(props.maxFileSize, 10)\n files = filterFiles(files, rejectedFiles, 'max-file-size', file => {\n return file.size <= maxFileSize\n })\n\n if (files.length === 0) { return done() }\n }\n\n // Cordova/iOS allows selecting multiple files even when the\n // multiple attribute is not specified. We also normalize drag'n'dropped\n // files here:\n if (props.multiple !== true && files.length !== 0) {\n files = [ files[ 0 ] ]\n }\n\n // Compute key to use for each file\n files.forEach(file => {\n file.__key = file.webkitRelativePath + file.lastModified + file.name + file.size\n })\n\n if (append === true) {\n // Avoid duplicate files\n const filenameMap = currentFileList.map(entry => entry.__key)\n files = filterFiles(files, rejectedFiles, 'duplicate', file => {\n return filenameMap.includes(file.__key) === false\n })\n }\n\n if (files.length === 0) { return done() }\n\n if (props.maxTotalSize !== void 0) {\n let size = append === true\n ? currentFileList.reduce((total, file) => total + file.size, 0)\n : 0\n\n files = filterFiles(files, rejectedFiles, 'max-total-size', file => {\n size += file.size\n return size <= maxTotalSizeNumber.value\n })\n\n if (files.length === 0) { return done() }\n }\n\n // do we have custom filter function?\n if (typeof props.filter === 'function') {\n const filteredFiles = props.filter(files)\n files = filterFiles(files, rejectedFiles, 'filter', file => {\n return filteredFiles.includes(file)\n })\n }\n\n if (props.maxFiles !== void 0) {\n let filesNumber = append === true\n ? currentFileList.length\n : 0\n\n files = filterFiles(files, rejectedFiles, 'max-files', () => {\n filesNumber++\n return filesNumber <= maxFilesNumber.value\n })\n\n if (files.length === 0) { return done() }\n }\n\n done()\n\n if (files.length !== 0) {\n return files\n }\n }\n\n function onDragover (e) {\n stopAndPreventDrag(e)\n dnd.value !== true && (dnd.value = true)\n }\n\n function onDragleave (e) {\n stopAndPrevent(e)\n\n // Safari bug: relatedTarget is null for over 10 years\n // https://bugs.webkit.org/show_bug.cgi?id=66547\n const gone = e.relatedTarget !== null || client.is.safari !== true\n ? e.relatedTarget !== dndRef.value\n : document.elementsFromPoint(e.clientX, e.clientY).includes(dndRef.value) === false\n\n gone === true && (dnd.value = false)\n }\n\n function onDrop (e) {\n stopAndPreventDrag(e)\n const files = e.dataTransfer.files\n\n if (files.length !== 0) {\n addFilesToQueue(null, files)\n }\n\n dnd.value = false\n }\n\n function getDndNode (type) {\n if (dnd.value === true) {\n return h('div', {\n ref: dndRef,\n class: `q-${ type }__dnd absolute-full`,\n onDragenter: stopAndPreventDrag,\n onDragover: stopAndPreventDrag,\n onDragleave,\n onDrop\n })\n }\n }\n\n // expose public methods\n Object.assign(proxy, { pickFiles, addFiles })\n\n return {\n pickFiles,\n addFiles,\n onDragover,\n onDragleave,\n processFiles,\n getDndNode,\n\n maxFilesNumber,\n maxTotalSizeNumber\n }\n}\n","import { h, computed, getCurrentInstance } from 'vue'\n\nimport QIcon from '../icon/QIcon.js'\n\nimport Ripple from '../../directives/ripple/Ripple.js'\n\nimport useDark, { useDarkProps } from '../../composables/private/use-dark.js'\nimport useSize, { useSizeProps } from '../../composables/private/use-size.js'\n\nimport { createComponent } from '../../utils/private/create.js'\nimport { stopAndPrevent } from '../../utils/event.js'\nimport { hMergeSlotSafely, hDir } from '../../utils/private/render.js'\n\nexport const defaultSizes = {\n xs: 8,\n sm: 10,\n md: 14,\n lg: 20,\n xl: 24\n}\n\nexport default createComponent({\n name: 'QChip',\n\n props: {\n ...useDarkProps,\n ...useSizeProps,\n\n dense: Boolean,\n\n icon: String,\n iconRight: String,\n iconRemove: String,\n iconSelected: String,\n label: [ String, Number ],\n\n color: String,\n textColor: String,\n\n modelValue: {\n type: Boolean,\n default: true\n },\n selected: {\n type: Boolean,\n default: null\n },\n\n square: Boolean,\n outline: Boolean,\n clickable: Boolean,\n removable: Boolean,\n\n removeAriaLabel: String,\n\n tabindex: [ String, Number ],\n disable: Boolean,\n\n ripple: {\n type: [ Boolean, Object ],\n default: true\n }\n },\n\n emits: [ 'update:modelValue', 'update:selected', 'remove', 'click' ],\n\n setup (props, { slots, emit }) {\n const { proxy: { $q } } = getCurrentInstance()\n\n const isDark = useDark(props, $q)\n const sizeStyle = useSize(props, defaultSizes)\n\n const hasLeftIcon = computed(() => props.selected === true || props.icon !== void 0)\n\n const leftIcon = computed(() => (\n props.selected === true\n ? props.iconSelected || $q.iconSet.chip.selected\n : props.icon\n ))\n\n const removeIcon = computed(() => props.iconRemove || $q.iconSet.chip.remove)\n\n const isClickable = computed(() =>\n props.disable === false\n && (props.clickable === true || props.selected !== null)\n )\n\n const classes = computed(() => {\n const text = props.outline === true\n ? props.color || props.textColor\n : props.textColor\n\n return 'q-chip row inline no-wrap items-center'\n + (props.outline === false && props.color !== void 0 ? ` bg-${ props.color }` : '')\n + (text ? ` text-${ text } q-chip--colored` : '')\n + (props.disable === true ? ' disabled' : '')\n + (props.dense === true ? ' q-chip--dense' : '')\n + (props.outline === true ? ' q-chip--outline' : '')\n + (props.selected === true ? ' q-chip--selected' : '')\n + (isClickable.value === true ? ' q-chip--clickable cursor-pointer non-selectable q-hoverable' : '')\n + (props.square === true ? ' q-chip--square' : '')\n + (isDark.value === true ? ' q-chip--dark q-dark' : '')\n })\n\n const attributes = computed(() => {\n const chip = props.disable === true\n ? { tabindex: -1, 'aria-disabled': 'true' }\n : { tabindex: props.tabindex || 0 }\n const remove = {\n ...chip,\n role: 'button',\n 'aria-hidden': 'false',\n 'aria-label': props.removeAriaLabel || $q.lang.label.remove\n }\n\n return { chip, remove }\n })\n\n function onKeyup (e) {\n e.keyCode === 13 /* ENTER */ && onClick(e)\n }\n\n function onClick (e) {\n if (!props.disable) {\n emit('update:selected', !props.selected)\n emit('click', e)\n }\n }\n\n function onRemove (e) {\n if (e.keyCode === void 0 || e.keyCode === 13) {\n stopAndPrevent(e)\n if (props.disable === false) {\n emit('update:modelValue', false)\n emit('remove')\n }\n }\n }\n\n function getContent () {\n const child = []\n\n isClickable.value === true && child.push(\n h('div', { class: 'q-focus-helper' })\n )\n\n hasLeftIcon.value === true && child.push(\n h(QIcon, {\n class: 'q-chip__icon q-chip__icon--left',\n name: leftIcon.value\n })\n )\n\n const label = props.label !== void 0\n ? [ h('div', { class: 'ellipsis' }, [ props.label ]) ]\n : void 0\n\n child.push(\n h('div', {\n class: 'q-chip__content col row no-wrap items-center q-anchor--skip'\n }, hMergeSlotSafely(slots.default, label))\n )\n\n props.iconRight && child.push(\n h(QIcon, {\n class: 'q-chip__icon q-chip__icon--right',\n name: props.iconRight\n })\n )\n\n props.removable === true && child.push(\n h(QIcon, {\n class: 'q-chip__icon q-chip__icon--remove cursor-pointer',\n name: removeIcon.value,\n ...attributes.value.remove,\n onClick: onRemove,\n onKeyup: onRemove\n })\n )\n\n return child\n }\n\n return () => {\n if (props.modelValue === false) return\n\n const data = {\n class: classes.value,\n style: sizeStyle.value\n }\n\n isClickable.value === true && Object.assign(\n data,\n attributes.value.chip,\n { onClick, onKeyup }\n )\n\n return hDir(\n 'div',\n data,\n getContent(),\n 'ripple',\n props.ripple !== false && props.disable !== true,\n () => [ [ Ripple, props.ripple ] ]\n )\n }\n }\n})\n"],"sourceRoot":""}