1import{n as i,d4 as n,d5 as r,p as c,_ as p,o as d,b9 as f,bw as m,N as u,ba as l}from"./app-CIjA8Id4.js";import{A as w}from"./vendor-Bn-L9QN-.js";import{B as h}from"./vendor-DfNRBxyy.js";import{A as s}from"./vendor-0zxOE4-r.js";import{P as b}from"./vendor-DCV7h5Nr.js";import"./vendor-B6BuaULv.js";import"./vendor-DDjc4ara.js";import"./vendor-Ck55WfFL.js";const _={name:"AacProductCompareView",components:{PrintComponentBtn:b,AacProductCompare:s,BackBtn:h},data:()=>({mdiSelectCompare:r,mdiEyeOff:n,withDiffs:!0,products:[],expandedRows:{description:!1}}),computed:{printBtnProps(){return{component:s,componentProps:{products:this.products,withDiffs:this.withDiffs,expandedRows:this.expandedRows}}}},watch:{"$route.query.ids":{async handler(a){for(const e of a){if(!m(e))throw new u(`model [aac-product] with ID "${e}" cannot be found`);await this.fetchProduct(e)}const t=this.$router.currentRoute;await l(this.$t("aacProduct.compare.table.caption",{nb:a.length}),t)},immediate:!0}},methods:{async fetchProduct(a){const t=["image","softwareLogo","prices","prices.priceType","deviceInstalledSystems.system","softwareCapabilityKeyboardType","softwareCapabilityVocabularyOrganizationType","softwareCapabilityConjugationType","softwareCompatibleSystems.system","softwareAccesses.accessType"];this.products.push(await f(w,a,{include:[...t,"additionalImages","attachments","deviceDefaultSoftwares",...t.map(e=>`deviceDefaultSoftwares.${e}`),"deviceOptionalSoftwares",...t.map(e=>`deviceOptionalSoftwares.${e}`),"softwareDefaultDevices",...t.map(e=>`softwareDefaultDevices.${e}`),"softwareOptionalDevices",...t.map(e=>`softwareOptionalDevices.${e}`),"sellers","sellers.logo","pendingPublicationRequest","pendingPublicationRequest.status","lastPublicationRequest","lastPublicationRequest.status"].join(",")}))}}};var y=function(){var t=this,e=t._self._c;return e(c,{staticClass:"my-6 tiny-container"},[e("div",{staticClass:"d-flex align-center mb-6"},[e("back-btn"),e("div",{staticClass:"ml-auto"},[e(p,{attrs:{fab:!t.$vuetify.breakpoint.mdAndUp,rounded:!t.$vuetify.breakpoint.mdAndUp,small:!t.$vuetify.breakpoint.mdAndUp,"aria-label":t.$t(`aacProduct.compare.${t.withDiffs?"hide":"show"}Diffs`)},on:{click:function(o){t.withDiffs=!t.withDiffs}}},[e(d,{attrs:{left:t.$vuetify.breakpoint.mdAndUp,small:!t.$vuetify.breakpoint.mdAndUp},domProps:{textContent:t._s(t.withDiffs?t.mdiEyeOff:t.mdiSelectCompare)}}),t.$vuetify.breakpoint.mdAndUp?e("span",{domProps:{textContent:t._s(t.$t(`aacProduct.compare.${t.withDiffs?"hide":"show"}Diffs`))}}):t._e()],1),e("print-component-btn",t._b({staticClass:"ms-4"},"print-component-btn",t.printBtnProps,!1))],1)],1),e("aac-product-compare",{attrs:{products:t.products,"with-diffs":t.withDiffs,"expanded-rows":t.expandedRows}
1,on:{"update:expanded-rows":function(o){t.expandedRows=o}}})],1)},v=[],D=i(_,y,v,!1,null,null);const S=D.exports;export{S as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.