PageSourceSearch

https://www.polarcell.de/_nuxt/TEPIgR4f.js

js polarcell.de collected 2026-10-07 06:17:03 UTC 24,214 bytes, 1 lines download raw bytes

1import{a as e,i as t}from"./r5OATlmz.js";import{X as n,dt as r,in as i,on as a,qt as o}from"./zrWaokdk.js";import{d as s,p as c}from"./CqdSXLK2.js";import{a as l}from"./DhGRizpo.js";import{t as u}from"./QcfaJjVB.js";import{d}from"./Cq07MQOk.js";import{t as f}from"./C7mVcGFb.js";import{t as p}from"./C-OkxvlT.js";import{t as m}from"./Cuo4yow1.js";import{r as h,y as g}from"./B9Ui1xjL.js";import{p as _}from"./BlUSsrFt.js";import{t as v}from"./BJi46Mda.js";import{t as y}from"./D_GiczmQ.js";import{t as b}from"./DgPg3zc72.js";import{i as x,r as S}from"./CyoWWQVj2.js";import{t as C}from"./DKeZLsUR.js";import{t as w}from"./DfVJNDNG.js";var T=e=>{let t=e.itemId;if(!t)return!1;let n=t.split(`_`);return!(n.length===0||n.length>2||!n[0]||isNaN(Number(n[0]))||n.length===2&&(!n[1]||isNaN(Number(n[1]))))},E=e=>{let t=e.itemId.split(`_`),n={id:t[0]??``};return t[1]&&(n.variationId=t[1]),{productParams:n,productId:n.id.toString()}},D=(e,t,n)=>{let r=e.endsWith(`/`),i=(r?e.slice(0,-1):e).split(`/`),a=i.pop();if(!a)return e;let o=a.split(`_`),s=o.length-1;t=String(t),n=String(n),o[s]===t?o.push(n):o[s]=n,a=o.join(`_`),i.push(a);let c=i.join(`/`);return r?c+`/`:c},O=(e,t)=>{let n=h.mapFromCategoryBreadcrumbs(e.breadcrumbs??[]),r=g.getName(e);return n.unshift({name:t,link:`/`}),n.push({name:r,link:`#`}),n},k=e=>({variations:[{variationId:e,isSalable:!0,unitCombinationId:1,unitId:1,unitName:`1 piece`,attributes:[{attributeId:2,attributeValueId:6}]},{variationId:e,isSalable:!0,unitCombinationId:1,unitId:1,unitName:`1 piece`,attributes:[{attributeId:2,attributeValueId:7}]},{variationId:e,isSalable:!0,unitCombinationId:1,unitId:1,unitName:`1 piece`,attributes:[{attributeId:2,attributeValueId:11}]}],attributes:[{attributeId:2,position:1,name:`(Attribute) Color`,type:`box`,values:[{attributeValueId:6,position:2,imageUrl:``,name:`red`},{attributeValueId:7,position:3,imageUrl:``,name:`yellow`},{attributeValueId:11,position:4,imageUrl:``,name:`blue`}]},{attributeId:2,position:1,name:`(Attribute) Size`,type:`box`,values:[{attributeValueId:6,position:2,imageUrl:``,name:`S`},{attributeValueId:7,position:3,imageUrl:``,name:`M`},{attributeValueId:11,position:4,imageUrl:``,name:`L`}]}]}),A=e=>({variations:[{variationId:e,isSalable:!0,unitCombinationId:1,unitId:1,unitName:`1 piece`,attributes:[{attributeId:2,attributeValueId:6}]},{variationId:e,isSalable:!0,unitCombinationId:1,unitId:1,unitName:`1 piece`,attributes:[{attributeId:2,attributeValueId:7}]},{variationId:e,isSalable:!0,unitCombinationId:1,unitId:1,unitName:`1 piece`,attributes:[{attributeId:2,attributeValueId:11}]}],attributes:[{attributeId:2,position:1,name:`(Attribut) Farbe: Auswahlmöglichkeiten Rot, Gelb und Blau`,type:`box`,values:[{attributeValueId:6,position:2,imageUrl:``,name:`red`},{attributeValueId:7,position:3,imageUrl:``,name:`yellow`},{attributeValueId:11,position:4,imageUrl:``,name:`blue`}]},{attributeId:2,position:1,name:`(Attribut) Größe: Auswahlmöglichkeiten S, M und L`,type:`box`,values:[{attributeValueId:6,position:2,imageUrl:``,name:`S`},{attributeValueId:7,position:3,imageUrl:``,name:`M`},{attributeValueId:11,position:4,imageUrl:``,name:`L`}]}]}),j=[{id:6,position:0,name:`Product properties`,description:`Properties for displaying product information`,properties:[{cast:`text`,referrer:[1],names:{createdAt:`2024-07-17 16:40:31`,propertyId:10,name:`Property Example`,updatedAt:`2024-07-17 16:40:31`,description:`Used to indicate legally required material properties`,id:15,lang:`en`},clients:[67698],display:[`showInItemListing`,`showOnItemsPage`,`displayInOrderProcess`],groups:[{options:[{id:10,updatedAt:`2024-06-10 09:10:33`,type:`surchargeType`,createdAt:`2024-06-10 09:10:33`,groupId:6,value:`flat`},{createdAt:`2024-06-10 09:10:33`,id:9,type:`groupType`,groupId:6,value:`none`,updatedAt:`2024-06-10 09:10:33`}],position:0,names:{id:8,groupId:6,description:`Properties for displaying product information`,name:`Product properties`,createdAt:`2024-06-10 09:10:33`,updatedAt:`2024-06-10 09:10:33`,lang:`en`},updatedAt:`2024-06-10 09:10:33`,id:6,createdAt:`2024-06-10 09:10:33`}],id:10,groupId:6,position:0,markup:0,values:{id:2,lang:`en`,value:`Example 1`,description:``}},{cast:`text`,referrer:[1],names:{createdAt:`2024-07-17 16:40:31`,propertyId:10,name:`Property Example`,updatedAt:`2024-07-17 16:40:31`,description:`Used to indicate legally required material properties`,id:15,lang:`en`},clients:[67698],display:[`showInItemListing`,`showOnItemsPage`,`displayInOrderProcess`],groups:[{options:[{id:10,updatedAt:`2024-06-10 09:10:33`,type:`surchargeType`,createdAt:`2024-06-10 09:10:33`,groupId:6,value:`flat`},{createdAt:`2024-06-10 09:10:33`,id:9,type:`groupType`,groupId:6,value:`none`,updatedAt:`2024-06-10 09:10:33`}],position:0,names:{id:8,groupId:6,description:`Properties for displaying product information`,name:`Product properties`,createdAt:`2024-06-10 09:10:33`,updatedAt:`2024-06-10 09:10:33`,lang:`en`},updatedAt:`2024-06-10 09:10:33`,id:6,createdAt:`2024-06-10 09:10:33`}],id:10,groupId:6,position:0,markup:0,values:{id:2,lang:`en`,value:`Example 2`,description:``}}]}],M=[{id:6,position:0,name:`Product properties`,description:`Properties for displaying product information`,properties:[{cast:`text`,referrer:[1],names:{createdAt:`2024-07-17 16:40:31`,propertyId:10,name:`(Eigenschaft) Beispiel`,updatedAt:`2024-07-17 16:40:31`,description:`Used to indicate legally required material properties`,id:15,lang:`en`},clients:[67698],display:[`showInItemListing`,`showOnItemsPage`,`displayInOrderProcess`],groups:[{options:[{id:10,updatedAt:`2024-06-10 09:10:33`,type:`surchargeType`,createdAt:`2024-06-10 09:10:33`,groupId:6,value:`flat`},{createdAt:`2024-06-10 09:10:33`,id:9,type:`groupType`,groupId:6,value:`none`,updatedAt:`2024-06-10 09:10:33`}],position:0,names:{id:8,groupId:6,description:`Properties for displaying product information`,name:`Product properties`,createdAt:`2024-06-10 09:10:33`,updatedAt:`2024-06-10 09:10:33`,lang:`en`},updatedAt:`2024-06-10 09:10:33`,id:6,createdAt:`2024-06-10 09:10:33`}],id:10,groupId:6,position:0,markup:0,values:{id:2,lang:`en`,value:`Beispiel 1`,description:``}},{cast:`text`,referrer:[1],names:{createdAt:`2024-07-17 16:40:31`,propertyId:10,name:`(Eigenschaft) Beispiel`,updatedAt:`2024-07-17 16:40:31`,description:`Used to indicate legally required material properties`,id:15,lang:`en`},clients:[67698],display:[`showInItemListing`,`showOnItemsPage`,`displayInOrderProcess`],groups:[{options:[{id:10,updatedAt:`2024-06-10 09:10:33`,type:`surchargeType`,createdAt:`2024-06-10 09:10:33`,groupId:6,value:`flat`},{createdAt:`2024-06-10 09:10:33`,id:9,type:`groupType`,groupId:6,value:`none`,updatedAt:`2024-06-10 09:10:33`}],position:0,names:{id:8,groupId:6,description:`Properties for displaying product information`,name:`Product properties`,createdAt:`2024-06-10 09:10:33`,updatedAt:`2024-06-10 09:10:33`,lang:`en`},updatedAt:`2024-06-10 09:10:33`,id:6,createdAt:`2024-06-10 09:10:33`}],id:10,groupId:6,position:0,markup:0,values:{id:2,lang:`en`,value:`Beispiel 2`,description:``}}]}],N=[{quantity:`2`,data:{item:{id:115,manufacturerId:2,itemType:`default`,manufacturer:{name:``,legalName:``,logo:``,url:``,contactUrl:``,street:``,email:``,responsibleName:``,responsibleStreet:``,responsibleHouse
1No:``,responsiblePostCode:``,responsibleTown:``,responsibleCountry:1,responsibleEmail:``,responsibleContactUrl:``,responsiblePhoneNo:``,externalName:``,postcode:``,houseNo:``,town:``,countryId:1,phoneNumber:``,faxNumber:``,nameExternal:``,countryObject:{names:[{language:`en`,country_id:`1`,name:`Germany`,id:250},{country_id:`1`,language:`de`,id:1,name:`Deutschland`}],shippingDestinationId:101,active:1,lang:`de`,name:`Deutschland`,id:1,storehouseId:0,isoCode3:`DEU`,isCountryStateMandatory:null,isoCode2:`DE`},responsibleCountryObject:{names:[{language:`en`,country_id:`1`,name:`Germany`,id:250},{country_id:`1`,language:`de`,id:1,name:`Deutschland`}],shippingDestinationId:101,active:1,lang:`de`,name:`Deutschland`,id:1,storehouseId:0,isoCode3:`DEU`,isCountryStateMandatory:null,isoCode2:`DE`}},customsTariffNumber:``,producingCountry:{names:[]},condition:{names:[]}},texts:{lang:`de`,name2:``,name3:``,description:``,urlPath:``,name1:`Set Komponente 1`,shortDescription:``},variation:{itemId:1096,number:`1096`,availabilityId:1,maximumOrderQuantity:null,minimumOrderQuantity:null,intervalOrderQuantity:null,name:``,vatId:0,bundleType:`bundle_item`,mayShowUnitPrice:!0,availabilityUpdatedAt:`2018-02-28T11:49:53+01:00`,availability:{id:1,icon:`av1.gif`,averageDays:2,createdAt:`2024-02-05 10:23:10`,updatedAt:`2024-02-05 10:23:10`,names:{id:41,availabilityId:1,lang:`de`,name:`Sofort versandfertig, Lieferzeit 48h`,createdAt:`2024-02-05 10:23:10`,updatedAt:`2024-02-05 10:23:10`}},id:1013,model:``},images:{all:[{names:{imageId:29,lang:`de`,name:``,alternate:``},path:``,position:0,height:600,width:480,url:`/_nuxt-plenty/images/productPlaceholder.png`,urlMiddle:`/_nuxt-plenty/images/productPlaceholder.png`,urlPreview:`/_nuxt-plenty/images/productPlaceholder.png`,urlSecondPreview:`/_nuxt-plenty/images/productPlaceholder.png`,cleanImageName:`115-Esszimmerstuhl-JuicyOrange.jpg`}],variation:[]},filter:{isSalable:!0,isSalableAndActive:!0},unit:{names:{unitId:1,lang:`de`,name:`Stück`},unitOfMeasurement:`C62`,content:1},properties:[],hasOrderProperties:!1,hasRequiredOrderProperty:!1,facets:[],attributes:[]}},{quantity:`2`,data:{item:{id:115,manufacturerId:2,itemType:`default`,manufacturer:{name:``,legalName:``,logo:``,url:``,contactUrl:``,street:``,email:``,responsibleName:``,responsibleStreet:``,responsibleHouseNo:``,responsiblePostCode:``,responsibleTown:``,responsibleCountry:1,responsibleEmail:``,responsibleContactUrl:``,responsiblePhoneNo:``,externalName:``,postcode:``,houseNo:``,town:``,countryId:1,phoneNumber:``,faxNumber:``,nameExternal:``,countryObject:{names:[{language:`en`,country_id:`1`,name:`Germany`,id:250},{country_id:`1`,language:`de`,id:1,name:`Deutschland`}],shippingDestinationId:101,active:1,lang:`de`,name:`Deutschland`,id:1,storehouseId:0,isoCode3:`DEU`,isCountryStateMandatory:null,isoCode2:`DE`},responsibleCountryObject:{names:[{language:`en`,country_id:`1`,name:`Germany`,id:250},{country_id:`1`,language:`de`,id:1,name:`Deutschland`}],shippingDestinationId:101,active:1,lang:`de`,name:`Deutschland`,id:1,storehouseId:0,isoCode3:`DEU`,isCountryStateMandatory:null,isoCode2:`DE`}},customsTariffNumber:``,producingCountry:{names:[]},condition:{names:[]}},texts:{lang:`de`,name2:``,name3:``,description:``,urlPath:``,name1:`Set Komponente 2`,shortDescription:``},variation:{itemId:1096,number:`1096`,availabilityId:1,maximumOrderQuantity:null,minimumOrderQuantity:null,intervalOrderQuantity:null,name:``,vatId:0,bundleType:`bundle_item`,mayShowUnitPrice:!0,availabilityUpdatedAt:`2018-02-28T11:49:53+01:00`,availability:{id:1,icon:`av1.gif`,averageDays:2,createdAt:`2024-02-05 10:23:10`,updatedAt:`2024-02-05 10:23:10`,names:{id:41,availabilityId:1,lang:`de`,name:`Sofort versandfertig, Lieferzeit 48h`,createdAt:`2024-02-05 10:23:10`,updatedAt:`2024-02-05 10:23:10`}},id:1013,model:``},images:{all:[{names:{imageId:29,lang:`de`,name:``,alternate:``},path:``,position:0,height:600,width:480,url:`/_nuxt-plenty/images/productPlaceholder.png`,urlMiddle:`/_nuxt-plenty/images/productPlaceholder.png`,urlPreview:`/_nuxt-plenty/images/productPlaceholder.png`,urlSecondPreview:`/_nuxt-plenty/images/productPlaceholder.png`,cleanImageName:`115-Esszimmerstuhl-JuicyOrange.jpg`}],variation:[]},filter:{isSalable:!0,isSalableAndActive:!0},unit:{names:{unitId:1,lang:`de`,name:`Stück`},unitOfMeasurement:`C62`,content:1},properties:[],hasOrderProperties:!1,hasRequiredOrderProperty:!1,facets:[],attributes:[]}}],P=[{quantity:`2`,data:{item:{id:115,manufacturerId:2,itemType:`default`,manufacturer:{name:``,legalName:``,logo:``,url:``,contactUrl:``,street:``,email:`[email protected]`,responsibleName:`Matthias Richter`,responsibleStreet:`Sophienstraße`,responsibleHouse
1No:`13`,responsiblePostCode:`80333`,responsibleTown:`München`,responsibleCountry:1,responsibleEmail:`[email protected]`,responsibleContactUrl:``,responsiblePhoneNo:`+49 89 98765432`,externalName:`A & C Design`,postcode:`94576`,houseNo:`456`,town:`Berlin`,countryId:1,phoneNumber:`+1-555-0100`,faxNumber:`+1-555-0123`,nameExternal:`A & C Design`,countryObject:{names:[{language:`en`,country_id:`1`,name:`Germany`,id:250},{country_id:`1`,language:`de`,id:1,name:`Deutschland`}],shippingDestinationId:101,active:1,lang:`de`,name:`Germany`,id:1,storehouseId:0,isoCode3:`DEU`,isCountryStateMandatory:null,isoCode2:`DE`},responsibleCountryObject:{names:[{language:`en`,country_id:`1`,name:`Germany`,id:250},{country_id:`1`,language:`de`,id:1,name:`Deutschland`}],shippingDestinationId:101,active:1,lang:`de`,name:`Germany`,id:1,storehouseId:0,isoCode3:`DEU`,isCountryStateMandatory:null,isoCode2:`DE`}},customsTariffNumber:``,producingCountry:{names:[]},condition:{names:[]}},texts:{name3:``,urlPath:`#`,name2:``,lang:`en`,description:`<p>The name says it all! The fresh colour and the simple design fit into every dining room. The brushed steel chair legs blend in very well with the bright orange. The feet made of non-slip rubber offer optimal grip even on tiles and laminate.</p>`,name1:`Bundle component 2`,shortDescription:``},variation:{itemId:115,number:`109`,availabilityId:1,maximumOrderQuantity:null,minimumOrderQuantity:null,intervalOrderQuantity:null,name:``,vatId:0,bundleType:`bundle_item`,mayShowUnitPrice:!0,availabilityUpdatedAt:`2018-02-28T11:49:53+01:00`,availability:{id:1,icon:`av1.gif`,averageDays:2,createdAt:`2024-02-05 10:23:10`,updatedAt:`2024-02-05 10:23:10`,names:{id:42,availabilityId:1,lang:`en`,name:`Ready for shipping, delivery in 48h`,createdAt:`2024-02-05 10:23:10`,updatedAt:`2024-02-05 10:23:10`}},id:1013,model:``},images:{all:[{names:[],url:`/_nuxt-plenty/images/productPlaceholder.png`,width:480,position:0,urlSecondPreview:`/_nuxt-plenty/images/productPlaceholder.png`,urlPreview:`/_nuxt-plenty/images/productPlaceholder.png`,urlMiddle:`/_nuxt-plenty/images/productPlaceholder.png`,height:600,path:``,cleanImageName:``}],variation:[]},filter:{isSalable:!0,isSalableAndActive:!0},unit:{names:{unitId:1,lang:`en`,name:`piece`},unitOfMeasurement:`C62`,content:1},properties:[],hasOrderProperties:!1,hasRequiredOrderProperty:!1,facets:[],attributes:[]}},{quantity:`2`,data:{item:{id:115,manufacturerId:2,itemType:`default`,manufacturer:{name:`A & C Design`,legalName:`A & C Design Manufacturing Corp.`,logo:``,url:``,contactUrl:``,street:``,email:`[email protected]`,responsibleName:`Matthias Richter`,responsibleStreet:`Sophienstraße`,responsibleHouseNo:`13`,responsiblePostCode:`80333`,responsibleTown:`München`,responsibleCountry:1,responsibleEmail:`[email protected]`,responsibleContactUrl:``,responsiblePhoneNo:`+49 89 98765432`,externalName:`A & C Design`,postcode:`94576`,houseNo:`456`,town:`Berlin`,countryId:1,phoneNumber:`+1-555-0100`,faxNumber:`+1-555-0123`,nameExternal:`A & C Design`,countryObject:{names:[{language:`en`,country_id:`1`,name:`Germany`,id:250},{country_id:`1`,language:`de`,id:1,name:`Deutschland`}],shippingDestinationId:101,active:1,lang:`de`,name:`Germany`,id:1,storehouseId:0,isoCode3:`DEU`,isCountryStateMandatory:null,isoCode2:`DE`},responsibleCountryObject:{names:[{language:`en`,country_id:`1`,name:`Germany`,id:250},{country_id:`1`,language:`de`,id:1,name:`Deutschland`}],shippingDestinationId:101,active:1,lang:`de`,name:`Germany`,id:1,storehouseId:0,isoCode3:`DEU`,isCountryStateMandatory:null,isoCode2:`DE`}},customsTariffNumber:``,producingCountry:{names:[]},condition:{names:[]}},texts:{name3:``,urlPath:`#`,name2:``,lang:`en`,description:`<p>The name says it all! The fresh colour and the simple design fit into every dining room. The brushed steel chair legs blend in very well with the bright orange. The feet made of non-slip rubber offer optimal grip even on tiles and laminate.</p>`,name1:`Bundle component 1`,shortDescription:``},variation:{itemId:115,number:`109`,availabilityId:1,maximumOrderQuantity:null,minimumOrderQuantity:null,intervalOrderQuantity:null,name:``,vatId:0,bundleType:`bundle_item`,mayShowUnitPrice:!0,availabilityUpdatedAt:`2018-02-28T11:49:53+01:00`,availability:{id:1,icon:`av1.gif`,averageDays:2,createdAt:`2024-02-05 10:23:10`,updatedAt:`2024-02-05 10:23:10`,names:{id:42,availabilityId:1,lang:`en`,name:`Ready for shipping, delivery in 48h`,createdAt:`2024-02-05 10:23:10`,updatedAt:`2024-02-05 10:23:10`}},id:1013,model:``},images:{all:[{names:[],url:`/_nuxt-plenty/images/productPlaceholder.png`,width:480,position:0,urlSecondPreview:`/_nuxt-plenty/images/productPlaceholder.png`,urlPreview:`/_nuxt-plenty/images/productPlaceholder.png`,urlMiddle:`/_nuxt-plenty/images/productPlaceholder.png`,height:600,path:``,cleanImageName:``}],variation:[]},filter:{isSalable:!0,isSalableAndActive:!0},unit:{names:{unitId:1,lang:`en`,name:`piece`},unitOfMeasurement:`C62`,content:1},properties:[],hasOrderProperties:!1,hasRequiredOrderProperty:!1,facets:[],attributes:[]}}],F=[{propertySelectionId:null,propertySelection:[],propertyId:9,surcharge:10,group:null,property:{id:9,position:0,valueType:`text`,isOderProperty:!0,isShownAsAdditionalCosts:!0,isRequired:!1,isPreSelected:!1,isShownOnItemPage:!0,isS
1hownOnItemList:!0,isShownAtCheckout:!0,isMultiline:!1,surcharge:10,vatId:null,names:{lang:`en`,name:`Order Property) Your Initials: Inputfield`,description:``,propertyId:`9`},selectionValues:[]}},{propertySelectionId:null,propertySelection:[],propertyId:21,surcharge:0,group:null,property:{id:21,position:0,valueType:`empty`,isOderProperty:!0,isShownAsAdditionalCosts:!0,isRequired:!1,isPreSelected:!1,isShownOnItemPage:!0,isShownOnItemList:!0,isShownAtCheckout:!0,isMultiline:!1,surcharge:0,vatId:`none`,names:{lang:`en`,name:`I would like a free travel bag with it.`,description:``,propertyId:`21`},selectionValues:[]}}],I=[{propertySelectionId:null,propertySelection:[],propertyId:9,surcharge:10,group:null,property:{id:9,position:0,valueType:`text`,isOderProperty:!0,isShownAsAdditionalCosts:!0,isRequired:!1,isPreSelected:!1,isShownOnItemPage:!0,isShownOnItemList:!0,isShownAtCheckout:!0,isMultiline:!1,surcharge:10,vatId:null,names:{lang:`de`,name:`(Bestelleigenschaft) Ihre Initialen: Inputfield`,description:``,propertyId:`9`},selectionValues:[]}},{propertySelectionId:null,propertySelection:[],propertyId:21,surcharge:0,group:null,property:{id:21,position:0,valueType:`empty`,isOderProperty:!0,isShownAsAdditionalCosts:!0,isRequired:!1,isPreSelected:!1,isShownOnItemPage:!0,isShownOnItemList:!0,isShownAtCheckout:!0,isMultiline:!1,surcharge:0,vatId:`none`,names:{lang:`de`,name:`Ich hätte gerne eine gratis Reisetasche dazu.`,description:``,propertyId:`21`},selectionValues:[]}}],L=e=>e?new Set(e):new Set,R=e=>e==null||typeof e==`string`&&e.length===0||Array.isArray(e)&&e.length===0,z=e=>{if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},B=e=>Object.assign(Object.create(Object.getPrototypeOf(e)),e),V=e=>Array.isArray(e)?e.slice():z(e)?B(e):e,H=(e,t,n)=>e.has(t)||e.has(`${n}.${t}`),U=(e,t,n)=>W(e,n.isForced,n.hasDefaultValue,n.mergeContext)?V(t):z(e)&&z(t)?K(e,t,n.mergeContext):V(e),W=(e,t,n,r)=>n?t||r.treatAsEmpty?.(r.path,e)?!0:R(e):!1,G=(e,t,n)=>{let{forced:r,ignored:i,path:a,treatAsEmpty:o}=n,s={},c=new Set([...Object.keys(e),...Object.keys(t)]);for(let n of c){let c=Object.hasOwn(e,n),l=Object.hasOwn(t,n),u=a?`${a}.${n}`:n,d=H(i,n,a),f=H(r,n,a);if(d){c&&(s[n]=V(e[n]));continue}if(c){let a=e[n];s[n]=U(a,l?t[n]:void 0,{isForced:f,hasDefaultValue:l,mergeContext:{forced:r,ignored:i,path:u,treatAsEmpty:o}})}else l&&(s[n]=V(t[n]))}return s},K=(e,t,n)=>z(e)&&z(t)?G(e,t,n):z(e)?B(e):z(t)?R(e)?B(t):e:R(e)?V(t):V(e),q=(e,t,n)=>K(e,t,{forced:L(n?.forcedKeys),ignored:L(n?.ignoredKeys),path:``,treatAsEmpty:n?.treatAsEmpty});o();var J=new Set([`variation.weightG`,`variation.weightNetG`,`variation.lengthMM`,`variation.widthMM`,`variation.heightMM`]),Y=(e,t)=>J.has(e)&&t===0,X=(e,t)=>{let n=e===`de`?S:x,r=()=>{if(t)return e===`de`?A(t):k(t)};return{...n,variationAttributeMap:r(),variationProperties:e===`de`?M:j,bundleComponents:e===`de`?N:P,properties:e===`de`?I:F}},Z=(e,t,n)=>{let{isInEditor:r}=b();if(!r.value)return;let a=e.value.data?.variation?.id,o=X(t,a?Number(a):void 0),s=i(e.value.data);e.value.fakeData=n?q(s,o,{forcedKeys:[`prices.graduatedPrices`],ignoredKeys:[`images`],treatAsEmpty:Y}):o};r();var Q=r=>{let i=C(),a=u(`useProduct-${r}`,()=>({data:{},fakeData:{},loading:!1,breadcrumbs:[]})),o=n(()=>{let e=c(),t=e.params.slug,n=e.params.itemId;return t===void 0||n===void 0?!1:`/${Array.isArray(t)?t.join(`/`):t}_${Array.isArray(n)?n.join(`/`):n}`===m.globalItemDetails}),s=async e=>{let{$i18n:n}=t(),{isInEditor:r}=b();if(a.value.loading=!0,o.value&&r.value){let e=n.locale.value===`en`?x:S;return a.value.data={...e},Z(a,n.locale.value,!1),a.value.loading=!1,a.value.data}let{data:s,error:c}=await d(`fetchProduct-${e.id}-${e.variationId}-${n.locale.value}`,()=>p().plentysystems.getProduct(e));return y(c.value??null),i.setProperties(s.value?.data?.properties??[]),a.value.data=s.value?.data??{},Z(a,n.locale.value,!0),a.value.loading=!1,a.value.data},h=()=>{a.value.breadcrumbs=O(a.value.data,v(`common.labels.home`))},w=()=>{let{getSetting:t}=f(`ogTitle`),n=e().public,r=t()||n.ogTitle;l({title:g.getTitle(a.value.data)||`${g.getName(a.value.data)} | ${r}`,titleTemplate:``,meta:[{name:`description`,content:g.getMetaDescription(a.value.data)||{}.METADESC},{name:`keywords`,content:g.getMetaKeywords(a.value.data)||{}.METAKEYWORDS}]})},{shouldUseFakeData:T}=b(),E=n(()=>T.value?a.value.fakeData:a.value.data);return{setProductMeta:w,setBreadcrumbs:h,fetchProduct:s,..._(a.value),properties:i,productForEditor:E}};o();var $=()=>{let e=u(`useProductAttributes`,()=>({attributes:[],attributeValues:{},combinations:[],itemId:0,variationId:0})),t=t=>
1{if(e.value.variationId===t)return;let n=c();w().isEnabled||s(D(n.path,e.value.itemId,t)),e.value.variationId=t},n=()=>e.value.combinations.find(t=>t?.attributes?.length===Object.values(e.value.attributeValues).length&&t.attributes?.every(t=>e.value.attributeValues[t.attributeId]===t.attributeValueId))??null,r=(e,t)=>Object.entries(t).every(([t,n])=>e.attributes?.some(e=>e.attributeId===Number(t)&&e.attributeValueId===n)),i=t=>e.value.combinations?.some(e=>r(e,t))??!1,o=()=>{e.value.attributes.forEach(t=>{t.values.forEach(n=>{let r={...e.value.attributeValues,[t.attributeId]:n.attributeValueId};n.disabled=!i(r)})});let r=n();if(r){let e=Number(r.variationId);t(e)}},l=(t,n=!1)=>{e.value.itemId=t.item.id,e.value.variationId=t.variation.id,e.value.attributes=t.variationAttributeMap?.attributes||[],e.value.combinations=t.variationAttributeMap?.variations||[],e.value.attributeValues={},n&&t.attributes?.forEach(t=>{e.value.attributeValues[t.attributeId]=t.value.id}),o()},d=(t,n)=>{let r=e.value.attributes.find(e=>e.attributeId===t)?.values.find(e=>e.attributeValueId===n)||void 0;if(!r||!n){let{[t]:n,...r}=e.value.attributeValues;e.value.attributeValues=r,o();return}if(r.disabled){let r={...e.value.attributeValues};e.value.attributeValues={[t]:n},o(),Object.entries(r).forEach(([n,r])=>{if(Number(n)===t)return;let i=e.value.attributes.find(e=>e.attributeId===Number(n))?.values.find(e=>e.attributeValueId===r);i&&!i.disabled&&(e.value.attributeValues[Number(n)]=r,o())});return}e.value.attributeValues[t]!==n&&(e.value.attributeValues[t]=n),o()},f=t=>e.value.attributeValues[t]||void 0;return{...a(e.value),setAttribute:l,updateValue:d,getValue:f,getCombination:n}};o();var ee=e=>{let t=u(`useValidatorAggregator_${e}`,()=>({invalidFields:[],validators:[]})),n=e=>{t.value.validators.push(e)},r=(e,n,r)=>{let i=t.value.invalidFields;if(e){let e=i.findIndex(e=>e.key===n);e!==-1&&i.splice(e,1)}else{let e=i.find(e=>e.key===n);e?e.name=r:i.push({key:n,name:r})}t.value.invalidFields=i},i=async()=>Promise.all(t.value.validators.map(e=>e())),o=()=>{t.value.invalidFields=[]};return{...a(t.value),registerValidator:n,registerInvalidFields:r,validateAllFields:i,resetInvalidFields:o}};export{T as a,E as i,$ as n,Q as r,ee as t};

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.