"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[11],{9:(l,e,o)=>{o.d(e,{a:()=>t});var n=o(77),i=o(60);const t=(0,n.b)({state:(0,n.c)(),namespace:"product",version:"0.1.7",selectors:{product:l=>null==l?void 0:l.product,selectedVariant:l=>null==l?void 0:l.selectedVariant,selectedOptions:l=>{var e;return null!==(e=null==l?void 0:l.selectedOptions)&&void 0!==e?e:{}},defaultUnselected:l=>{var e;return null!==(e=null==l?void 0:l.defaultUnselected)&&void 0!==e&&e},variants:l=>{var e,o;return null!==(o=null===(e=null==l?void 0:l.product)||void 0===e?void 0:e.variants)&&void 0!==o?o:[]},options:l=>{var e,o;return null!==(o=null===(e=null==l?void 0:l.product)||void 0===e?void 0:e.options)&&void 0!==o?o:[]},title:l=>{var e,o;return null!==(o=null===(e=null==l?void 0:l.product)||void 0===e?void 0:e.title)&&void 0!==o?o:""},handle:l=>{var e,o;return null!==(o=null===(e=null==l?void 0:l.product)||void 0===e?void 0:e.handle)&&void 0!==o?o:""},imageMap:l=>{var e,o;return null!==(o=null===(e=null==l?void 0:l.product)||void 0===e?void 0:e.imageMap)&&void 0!==o?o:{}},priceRange:l=>{var e;return null===(e=null==l?void 0:l.product)||void 0===e?void 0:e.priceRange},compareAtRange:l=>{var e;return null===(e=null==l?void 0:l.product)||void 0===e?void 0:e.compareAtRange},isOos:l=>{var e;return!0===(null===(e=null==l?void 0:l.product)||void 0===e?void 0:e.oos)},quickShop:l=>null==l?void 0:l.quickShop,findProductVariantWithOption:l=>(e,o,n)=>{var t,r;null!=o||(o=null==l?void 0:l.product);const d=null!==(t=null==n?void 0:n.selectedOptions)&&void 0!==t?t:null===(r=null==l?void 0:l.selectedVariant)||void 0===r?void 0:r.selectedOptions;if(o&&d)return(0,i.a)({option:e,variants:o.variants,currentOptions:d,fallbackVariant:null!=n?n:null==l?void 0:l.selectedVariant})}},actions:{setSelectedVariantId:(0,n.a)(),updateSelectedOption:(0,n.a)(),selectOption:(0,n.a)(),setOptionCookie:(0,n.a)(),getProduct:(0,n.a)(),refreshProduct:(0,n.a)(),logViewVariant:(0,n.a)(),openQuickShop:(0,n.a)(),closeQuickShop:(0,n.a)()},serverActions:{getServerProduct:(0,n.a)(),refreshServerProduct:(0,n.a)()}})}}]);