{"version":3,"file":"js/493.ebc253c9.js","sources":["webpack://frontend/./src/components/search/QueryPreview.vue?e7df","webpack://frontend/./src/components/search/QueryPreview.vue","webpack://frontend/./src/components/search/QueryPreview.vue?3d80","webpack://frontend/./src/icons/CopyIcon.vue","webpack://frontend/./src/icons/CopyIcon.vue?903c","webpack://frontend/./src/composables/useClipboard.ts","webpack://frontend/./src/composables/useImage.ts","webpack://frontend/./src/components/search/ResultItem.vue?d064","webpack://frontend/./src/components/search/ResultItem.vue","webpack://frontend/./src/components/search/ResultItem.vue?1b45","webpack://frontend/./src/components/search/ResultsListing.vue?5391","webpack://frontend/./src/components/search/ResultsListing.vue","webpack://frontend/./src/views/ResultsView.vue?e76b","webpack://frontend/./src/views/ResultsView.vue","webpack://frontend/./src/views/ResultsView.vue?115d"],"sourceRoot":"","sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"relative inline-block\" }\nconst _hoisted_2 = [\"src\"]\n\nimport { computed } from 'vue';\n\nimport type { BoundingBox } from '@/models/search';\n\ninterface QueryPreviewProps {\n query: string;\n bounding_box: BoundingBox;\n}\n\ntype StyleDimensions = Record<'left' | 'top' | 'width' | 'height', string>;\n\nconst MARGIN_PERCENTAGE = 5;\n\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'QueryPreview',\n props: {\n query: {},\n bounding_box: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\nconst asPercentages = (bbox: BoundingBox): BoundingBox => ({\n ...bbox,\n left: 100 * bbox.left / bbox.image_width,\n right: 100 * bbox.right / bbox.image_width,\n upper: 100 * bbox.upper / bbox.image_height,\n lower: 100 * bbox.lower / bbox.image_height,\n image_width: 100,\n image_height: 100\n});\n\nconst addMargins = (bbox: BoundingBox): BoundingBox => {\n const width = bbox.right - bbox.left;\n const height = bbox.lower - bbox.upper;\n const margin = MARGIN_PERCENTAGE * Math.max(width, height) / 100;\n\n return {\n ...bbox,\n left: Math.max(0, bbox.left - margin),\n upper: Math.max(0, bbox.upper - margin), \n right: Math.min(100, bbox.right + margin),\n lower: Math.min(100, bbox.lower + margin)\n };\n};\n\nconst asStyle = (bbox: BoundingBox): StyleDimensions => ({\n left: `${bbox.left}%`,\n top: `${bbox.upper}%`,\n width: `${bbox.right - bbox.left}%`,\n height: `${bbox.lower - bbox.upper}%`\n});\n\nconst scaledBoundingBox = computed(() => {\n let bbox = asPercentages(props.bounding_box);\n bbox = addMargins(bbox);\n return asStyle(bbox);\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", {\n class: \"absolute border-2 border-red-500\",\n style: _normalizeStyle(scaledBoundingBox.value)\n }, null, 4),\n _createElementVNode(\"img\", {\n id: \"query-preview\",\n src: _ctx.query,\n class: \"mx-auto rounded\",\n style: {\"max-width\":\"200px\",\"max-height\":\"200px\",\"width\":\"auto\",\"height\":\"auto\"}\n }, null, 8, _hoisted_2)\n ]))\n}\n}\n\n})","\n\n\n","import script from \"./QueryPreview.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./QueryPreview.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n","import { render } from \"./CopyIcon.vue?vue&type=template&id=6837ef2a\"\nconst script = {}\n\nimport \"./CopyIcon.vue?vue&type=style&index=0&id=6837ef2a&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { ref } from 'vue';\n\nconst TIMEOUT = 2000;\n\nexport const useClipboard = () => {\n const isActive = ref(false);\n\n const copyToClipboard = async (text: string): Promise => {\n const storage = document.createElement('textarea');\n storage.value = text;\n document.body.appendChild(storage);\n storage.select();\n storage.setSelectionRange(0, 99999);\n document.execCommand('copy');\n document.body.removeChild(storage);\n isActive.value = true;\n \n // Reset active state after TIMEOUT\n setTimeout(() => {\n isActive.value = false;\n }, TIMEOUT);\n };\n\n return {\n isActive,\n copyToClipboard\n };\n};\n\nexport type ClipboardService = ReturnType;\n","export const BROKEN_IMAGE_PLACEHOLDER = 'https://storage.googleapis.com/brickognize-static/static/missing-image.png';\n\nexport const useImage = () => {\n const replaceBrokenImage = (event: Event): void => {\n const target = event.target as HTMLImageElement;\n target.src = BROKEN_IMAGE_PLACEHOLDER;\n };\n\n return {\n replaceBrokenImage\n };\n};\n","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, withModifiers as _withModifiers, normalizeClass as _normalizeClass, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = [\"href\"]\nconst _hoisted_2 = { class: \"group w-auto border border-gray-300 hover:shadow-lg rounded my-4 bg-white\" }\nconst _hoisted_3 = { class: \"border-b border-gray-300 py-4 px-2\" }\nconst _hoisted_4 = { class: \"text-xl\" }\nconst _hoisted_5 = { class: \"flex flex-wrap justify-center items-center space-x-2 mt-2\" }\nconst _hoisted_6 = { class: \"text-gray-600 text-lg\" }\nconst _hoisted_7 = [\"src\"]\n\nimport { useRoute } from 'vue-router';\n\nimport searchService from '@/api/search.service';\nimport CopyIcon from '@/icons/CopyIcon.vue';\n\nimport { useClipboard } from '@/composables/useClipboard';\nimport { useImage } from '@/composables/useImage';\n\nimport type { FeedbackPayload, FeedbackSource } from '@/models/feedback';\nimport type { Item } from '@/models/item';\n\ninterface ResultItemProps extends Item {\n item_rank: number;\n}\n\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'ResultItem',\n props: {\n item_rank: {},\n id: {},\n name: {},\n img_url: {},\n external_sites: {},\n category: {},\n type: {},\n score: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\nconst route = useRoute();\nconst { isActive, copyToClipboard } = useClipboard();\nconst { replaceBrokenImage } = useImage();\n\nconst sendFeedback = async (source: FeedbackSource): Promise => {\n await searchService.submitFeedback({\n listing_id: route.params.listingId as string,\n item_id: props.id,\n item_type: props.type,\n is_prediction_correct: true,\n source: source,\n item_rank: props.item_rank\n } as FeedbackPayload, false);\n};\n\nconst copyItemId = async (): Promise => {\n await copyToClipboard(props.id);\n await sendFeedback('copy-btn');\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"a\", {\n class: \"min-w-max text-center\",\n href: _ctx.external_sites[0].url,\n target: \"blank\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (sendFeedback('external-site')))\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"p\", _hoisted_4, _toDisplayString(_ctx.name), 1),\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"span\", _hoisted_6, \"Bricklink ID: \" + _toDisplayString(_ctx.id), 1),\n _createVNode(CopyIcon, {\n onClick: _withModifiers(copyItemId, [\"stop\",\"prevent\"]),\n class: _normalizeClass([\"text-xl\", { 'text-red-500': _unref(isActive), 'text-gray-600': !_unref(isActive), 'hover:text-gray-800': !_unref(isActive)}])\n }, null, 8, [\"class\"])\n ])\n ]),\n _createElementVNode(\"img\", {\n class: \"p-4 inline mx-auto\",\n src: _ctx.img_url,\n onError: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_unref(replaceBrokenImage) && _unref(replaceBrokenImage)(...args)))\n }, null, 40, _hoisted_7)\n ])\n ], 8, _hoisted_1))\n}\n}\n\n})","\n\n\n","import script from \"./ResultItem.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ResultItem.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, mergeProps as _mergeProps, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n id: \"results-listing\"\n}\nconst _hoisted_2 = {\n key: 0,\n class: \"text-center\"\n}\n\nimport ResultItem from './ResultItem.vue';\n\nimport type { Item } from '@/models/item';\n\ninterface ResultsListingProps {\n items: Item[];\n}\n\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'ResultsListing',\n props: {\n items: {}\n },\n setup(__props: any) {\n\n\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.items)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_ctx.items.length === 0)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, _cache[0] || (_cache[0] = [\n _createElementVNode(\"div\", { class: \"group w-auto border border-gray-300 rounded my-4 bg-white p-4\" }, [\n _createElementVNode(\"p\", { class: \"text-xl\" }, \"No results found\"),\n _createElementVNode(\"p\", { class: \"text-gray-600 mt-2\" }, \"We couldn't find any bricks or minifigures in this image. Please try again with a different image.\")\n ], -1)\n ])))\n : (_openBlock(true), _createElementBlock(_Fragment, { key: 1 }, _renderList(_ctx.items, (item, item_rank) => {\n return (_openBlock(), _createBlock(ResultItem, _mergeProps({\n key: item.id,\n item_rank: item_rank,\n ref_for: true\n }, item), null, 16, [\"item_rank\"]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./ResultsListing.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ResultsListing.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, Fragment as _Fragment, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n id: \"home\",\n class: \"container mx-auto px-4 lg:w-1/2 md:w-full\"\n}\nconst _hoisted_2 = { class: \"box text-center\" }\n\nimport { computed } from 'vue';\nimport { useRoute, useRouter } from 'vue-router';\n\nimport SpinnerComponent from '@/components/common/SpinnerComponent.vue';\nimport QueryPreview from '@/components/search/QueryPreview.vue';\nimport ResultsListing from '@/components/search/ResultsListing.vue';\n\nimport searchService, { type Result } from '@/api/search.service';\nimport { useListingStore } from '@/stores/listing';\nimport { useLoadingStore } from '@/stores/loading';\n\nimport { useDataUrl } from '@/composables/useDataUrl';\n\nimport type { Listing } from '@/models/search';\n\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'ResultsView',\n setup(__props) {\n\nconst route = useRoute();\nconst router = useRouter();\nconst listingStore = useListingStore();\nconst loadingStore = useLoadingStore();\nconst dataUrlService = useDataUrl();\n\nconst getListing = async (listingId: string): Promise => {\n loadingStore.startLoading();\n\n const result: Result = await searchService.getListing(listingId, false);\n\n if (result.success) {\n listingStore.setListing(listingId, result.data);\n loadingStore.stopLoading();\n } else {\n router.push('/404');\n loadingStore.stopLoading();\n }\n};\n\nconst listing = computed(() => {\n const listingId = route.params.listingId as string;\n const existingListing = listingStore.getListing(listingId);\n\n if (!existingListing) {\n void getListing(listingId);\n }\n\n return existingListing;\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (_unref(loadingStore).isLoading)\n ? (_openBlock(), _createBlock(SpinnerComponent, { key: 0 }))\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n _createElementVNode(\"div\", _hoisted_2, [\n (listing.value?.results.bounding_box)\n ? (_openBlock(), _createBlock(QueryPreview, {\n key: 0,\n query: _unref(dataUrlService).createDataUrl(listing.value.query),\n bounding_box: listing.value.results.bounding_box\n }, null, 8, [\"query\", \"bounding_box\"]))\n : _createCommentVNode(\"\", true)\n ]),\n (listing.value)\n ? (_openBlock(), _createBlock(ResultsListing, {\n key: 0,\n items: listing.value.results.items\n }, null, 8, [\"items\"]))\n : _createCommentVNode(\"\", true)\n ], 64))\n ]))\n}\n}\n\n})","\n\n\n","import script from \"./ResultsView.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ResultsView.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["_hoisted_1","class","_hoisted_2","MARGIN_PERCENTAGE","_defineComponent","__name","props","query","bounding_box","setup","__props","asPercentages","bbox","left","image_width","right","upper","image_height","lower","addMargins","width","height","margin","Math","max","min","asStyle","top","scaledBoundingBox","computed","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode","style","_normalizeStyle","value","id","src","__exports__","script","render","TIMEOUT","useClipboard","isActive","ref","copyToClipboard","async","storage","document","createElement","text","body","appendChild","select","setSelectionRange","execCommand","removeChild","setTimeout","BROKEN_IMAGE_PLACEHOLDER","useImage","replaceBrokenImage","event","target","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","item_rank","name","img_url","external_sites","category","type","score","route","useRoute","sendFeedback","searchService","submitFeedback","listing_id","params","listingId","item_id","item_type","is_prediction_correct","source","copyItemId","href","url","onClick","$event","_toDisplayString","_createVNode","CopyIcon","_withModifiers","_normalizeClass","_unref","onError","args","key","items","length","_Fragment","_renderList","item","_createBlock","ResultItem","_mergeProps","ref_for","_createCommentVNode","router","useRouter","listingStore","useListingStore","loadingStore","useLoadingStore","dataUrlService","useDataUrl","getListing","startLoading","result","success","setListing","data","stopLoading","push","listing","existingListing","isLoading","SpinnerComponent","results","QueryPreview","createDataUrl","ResultsListing"],"mappings":";;4MAGA,MAAMA,EAAa,CAAEC,MAAO,yBACtBC,EAAa,CAAC,OCedC,EAAoB,EDC1B,OAA4BC,EAAAA,EAAAA,IAAiB,CAC3CC,OAAQ,eACRC,MAAO,CACLC,MAAO,CAAC,EACRC,aAAc,CAAC,GAEjBC,KAAAA,CAAMC,GCLR,MAAMJ,EAAQI,EAERC,EAAiBC,IAAiB,IACjCA,EACHC,KAAM,IAAMD,EAAKC,KAAOD,EAAKE,YAC7B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