1import{g as e,e as t,j as n,h as i,v as s,l as o,I as a,R as l,r,c as u,w as d,C as c,G as _,S as m,f as p,T as g,D as h,t as f,n as b,d as v,U as y,B as k,V as w,F as x,k as C,p as S,u as I,W as B,i as O,m as T,q as E,x as M,y as L,Q as N}from"./vue.esm-bundler.bok29zre.js";import{S as q,u as A,i as D,s as P}from"./Notice.vue_vue_type_style_index_0_scoped_8a9e3158_lang.br43wqli.js";import{_ as $}from"./_plugin-vue_export-helper.dcv4b2v1.js";var U="data-focus-lock",R="data-focus-lock-disabled",F="data-no-focus-lock",H="data-autofocus-inside",j="data-no-autofocus";const V=Object.freeze(Object.defineProperty({__proto__:null,FOCUS_ALLOW:F,FOCUS_AUTO:H,FOCUS_DISABLED:R,FOCUS_GROUP:U,FOCUS_NO_AUTOFOCUS:j},Symbol.toStringTag,{value:"Module"}));var W=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},G=function(e){return Array.isArray(e)?e:[e]},Y=function(e){return Array.isArray(e)?e[0]:e},Q=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},z=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},X=function(e,t){var n=e.get(t);if(void 0!==n)return n;var i=function(e,t){return!e||z(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&!function(e){return e.hasAttribute("inert")}(e)&&t(Q(e))}(t,X.bind(void 0,e));return e.set(t,i),i},K=function(e,t){var n=e.get(t);if(void 0!==n)return n;var i=function(e,t){return!(e&&!z(e))||!!te(e)&&t(Q(e))}(t,K.bind(void 0,e));return e.set(t,i),i},Z=function(e){return e.dataset},J=function(e){return"INPUT"===e.tagName},ee=function(e){return J(e)&&"radio"===e.type},te=function(e){var t=e.getAttribute(j);return![!0,"true",""].includes(t)},ne=function(e){var t;return Boolean(e&&(null===(t=Z(e))||void 0===t?void 0:t.focusGuard))},ie=function(e){return!ne(e)},se=function(e){return Boolean(e)},oe=function(e,t){var n=Math.max(0,e.tabIndex),i=Math.max(0,t.tabIndex),s=n-i,o=e.index-t.index;if(s){if(!n)return 1;if(!i)return-1}return s||o},ae=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),le=function(e,t){return W((e.shadowRoot||e).children).reduce(function(e,t){return e.concat(t.matches(ae)?[t]:[],le(t))},[])},re=function(e,t){return e.reduce(function(e,t){var n,i=le(t),s=(n=[]).concat.apply(n,i.map(function(e){return function(e){var t;return e instanceof HTMLIFrameElement&&(null===(t=e.contentDocument)||void 0===t?void 0:t.body)?re([e.contentDocument.body]):[e]}(e)}));return e.concat(s,t.parentNode?W(t.parentNode.querySelectorAll(ae)).filter(function(e){return e===t}):[])},[])},ue=function(e,t){return W(e).filter(function(e){return X(t,e)}).filter(function(e){return function(e){return!((J(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)})},de=function(e,t){return void 0===t&&(t=new Map),W(e).filter(function(e){return K(t,e)})},ce=function(e,t){return n=ue(re(e),t),W(n).map(function(e,t){var n=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:t,tabIndex:n}}).filter(function(e){return!0}).sort(oe);var n},_e=function(e,t){return e.shadowRoot?_e(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||W(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var i=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!i&&_e(i,t)}return _e(e,t)})},me=function(e){return e.parentNode?me(e.parentNode):e},pe=function(e){return G(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(U);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,i=0;i<n;i+=1)for(var s=i+1;s<n;s+=1){var o=e[i].compareDocumentPosition(e[s]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(s),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(i)}return e.filter(function(e,n){return!t.has(n)})}(W(me(t).querySelectorAll("[".concat(U,'="').concat(n,'"]:not([').concat(R,'="disabled"])')))):[t]),e},[])},ge=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?ge(t.shadowRoot):t instanceof HTMLIFrameElement&&function(){try{return t.contentWindow.document}catch(e){return}}()?ge(t.contentWindow.document):t}},he=function(e,t){return ee(e)&&e.name?function(e,t){return t.filter(ee).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e}(e,t):e},fe=function(e){return e[0]&&e.length>1?he(e[0],e):e[0]},be=function(e,t){return e.indexOf(he(t,e))},ve="NEW_FOCUS",ye=function(e,t,n){var i,s=e.map(function(e){return e.no
1de}),o=de(s.filter((i=n,function(e){var t,n=null===(t=Z(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||i.indexOf(e)>=0})));return o&&o.length?fe(o):fe(de(t))},ke=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&ke(e.parentNode.host||e.parentNode,t),t},we=function(e,t){for(var n=ke(e),i=ke(t),s=0;s<n.length;s+=1){var o=n[s];if(i.indexOf(o)>=0)return o}return!1},xe=function(e,t){return e.reduce(function(e,n){return e.concat(function(e,t){return ue((n=e.querySelectorAll("[".concat(H,"]")),W(n).map(function(e){return re([e])}).reduce(function(e,t){return e.concat(t)},[])),t);var n}(n,t))},[])},Ce=function(e,t){var n=ge(G(e).length>0?document:Y(e).ownerDocument),i=pe(e).filter(ie),s=function(e,t,n){var i=G(e),s=G(t),o=i[0],a=!1;return s.filter(Boolean).forEach(function(e){a=we(a||e,e)||a,n.filter(Boolean).forEach(function(e){var t=we(o,e);t&&(a=!a||_e(t,a)?t:we(t,a))})}),a}(n||e,e,i),o=new Map,a=ce(i,o),l=a.filter(function(e){var t=e.node;return ie(t)});if(l[0]){var r,u,d,c=ce([s],o).map(function(e){return e.node}),_=(r=c,u=l,d=new Map,u.forEach(function(e){return d.set(e.node,e)}),r.map(function(e){return d.get(e)}).filter(se)),m=_.map(function(e){return e.node}),p=_.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),g=function(e,t,n,i,s){var o=e.length,a=e[0],l=e[o-1],r=ne(i);if(!(i&&e.indexOf(i)>=0)){var u=void 0!==i?n.indexOf(i):-1,d=s?n.indexOf(s):u,c=s?e.indexOf(s):-1;if(-1===u)return-1!==c?c:ve;if(-1===c)return ve;var _,m,p=u-d,g=n.indexOf(a),h=n.indexOf(l),f=(_=n,m=new Set,_.forEach(function(e){return m.add(he(e,_))}),_.filter(function(e){return m.has(e)})),b=void 0!==i?f.indexOf(i):-1,v=s?f.indexOf(s):b,y=f.filter(function(e){return e.tabIndex>=0}),k=void 0!==i?y.indexOf(i):-1,w=s?y.indexOf(s):k,x=k>=0&&w>=0?w-k:v-b;if(!p&&c>=0)return c;if(0===t.length)return c;var C=be(e,t[0]),S=be(e,t[t.length-1]);return u<=g&&r&&Math.abs(p)>1?S:u>=h&&r&&Math.abs(p)>1?C:p&&Math.abs(x)>1?c:u<=g?S:u>h?C:p?Math.abs(p)>1?c:(o+c+p)%o:void 0}}(m,p,c,n,t);if(g===ve){var h=ye(a,p,xe(i,o))||ye(a,m,xe(i,o));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===g?g:_[g]}},Se=0,Ie=!1,Be=V;function Oe(e){const t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}let Te=0,Ee=null,Me=!1;const Le=()=>{let e=!1;if(Te){const{observed:i,onActivation:s}=Te;!Me&&(document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=ge(e);return!!t&&W(e.querySelectorAll("[".concat(F,"]"))).some(function(e){return _e(e,t)})}())&&Ee||(i&&(t=i,void 0===n&&(n=ge(Y(t).ownerDocument)),!(!(!n||n.dataset&&n.dataset.focusGuard)&&pe(t).some(function(e){return _e(e,n)||function(e,t){return Boolean(W(e.querySelectorAll("iframe")).some(function(e){return function(e,t){return e===t}(e,t)}))}(e,n)})))&&(s(),e=function(e,t,n){void 0===n&&(n={});var i,s,o=Ce(e,t);if(!Ie&&o){if(Se>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Ie=!0,void setTimeout(function(){Ie=!1},1);Se++,i=o.node,s=n.focusOptions,i&&("focus"in i&&i.focus(s),"contentWindow"in i&&i.contentWindow&&i.contentWindow.focus()),Se--}}(i,Ee)),Me=!1,Ee=document&&document.activeElement)}var t,n;return e};let Ne=[];const qe=()=>{var e;e=Ne.filter(({disabled:e})=>!e).slice(-1)[0],Te!==e&&(Te=null),Te=e,e&&(Le(),Oe(Le))},Ae=e=>{Le()&&e&&(e.stopPropagation(),e.preventDefault())},De=()=>{Oe(Le)},Pe=()=>{Me=!0},$e={name:"Lock",props:{returnFocus:{type:Boolean},disabled:{type:Boolean},noFocusGuards:{type:[Boolean,String],default:!1},group:{type:String}},setup(e){const{returnFocus:t,disabled:n,noFocusGuards:i,group:s}=l(e),o=r(null),a=r({}),p=r(""),g=u(()=>({[Be.FOCUS_GROUP]:s.value})),h=u(()=>!0!==i.value),f=u(()=>h.value&&"tail"!==i.value);let b;return d(n,()=>{a.value.disabled=n.value,qe()}),c(()=>{const e=_();e&&(a.value.instance=e.proxy,a.value.observed=o.value.querySelector("[data-lock]"),a.value.disabled=n.value,a.value.onActivation=()=>{b=b||document&&document.activeElement},Ne.length||(document.addEventListener("focusin",Ae,!0),document.addEventListener("focusout",De),window.addEventListener("blur",Pe)),Ne.push(a.value),qe())}),m(()=>{const e=_();e&&(Ne=Ne.filter(({instance:t})=>t!==e.proxy),Ne.length||(document.removeEventListener("focusin",Ae,!0),document.removeEventListener("focusout",De),window.removeEventListener("blur",Pe)),t.value&&b&&b.focu
1s&&b.focus(),qe())}),{groupAttr:g,hasLeadingGuards:h,hasTailingGuards:f,hidden:p,onBlur:()=>Oe(qe),rootEl:o}}},Ue={ref:"rootEl"},Re=["tabIndex"],Fe=["tabIndex"],He=$($e,[["render",function(l,r,u,d,c,_){return t(),e("div",Ue,[d.hasLeadingGuards?(t(),e("div",{key:0,tabIndex:u.disabled?-1:0,style:s(d.hidden),"aria-hidden":"true","data-focus-guard":""},null,12,Re)):n("",!0),i("div",a(d.groupAttr,{"data-lock":"",onFocusout:r[0]||(r[0]=(...e)=>d.onBlur&&d.onBlur(...e))}),[o(l.$slots,"default")],16),d.hasTailingGuards?(t(),e("div",{key:1,tabIndex:u.disabled?-1:0,style:s(d.hidden),"aria-hidden":"true","data-focus-guard":""},null,12,Fe)):n("",!0)],512)}]]),je="mfp-syno-ec-open",Ve="syno_mfp_zoom_out bg_btn_close_outside mfp-syno-ec",We=[],Ge={get instance(){return We[We.length-1]},close(){We[We.length-1]?.close()}};function Ye(e){const t=e.hasOwnProperty("dialogCustomClass")?"dialog--"+e.dialogCustomClass:"",n=e.hasOwnProperty("dialogInnerCustomClass")?"dialog--"+e.dialogInnerCustomClass:"",i=!!e.hasOwnProperty("closeOnContentClick")&&e.closeOnContentClick,s=!e.hasOwnProperty("closeOnBgClick")||e.closeOnBgClick;function o(){return g(He,null,{default:()=>g("div",{class:["dialog",t],role:"dialog","aria-modal":"true","aria-label":e.ariaLabel},[g("div",{class:"mfp-close-holder"},[g("button",{title:"Close",type:"button",class:"mfp-close mfp-video-close"},[g("span",{"aria-hidden":"true"},"Ã")])]),g("div",{class:["dialog-inner",n],onClick:e=>e.stopPropagation()},[g(e.component,e.props)])])})}return new Promise((e,t)=>{setTimeout(()=>{const n=document.createElement("div");n.className=`mfp-bg ${Ve}`;const a=document.createElement("div");a.className=`mfp-wrap mfp-close-btn-in mfp-auto-cursor ${Ve}`,a.setAttribute("tabindex","-1");const l=document.createElement("div");l.className="mfp-container mfp-inline-holder";const r=document.createElement("div");r.className="mfp-content";const u=document.createElement("div");u.className="dialog",r.appendChild(u),l.appendChild(r),a.appendChild(l),document.body.appendChild(n),document.body.appendChild(a),document.documentElement.classList.add(je);let d=!1;const c={callback_param:void 0,close:f};We.push(c);const _=p({render:o});function m(e){const t=e.target;t instanceof Element&&(t.closest("button.mfp-close")?f():t.isConnected&&(t.closest('[role="dialog"]')?i&&f():s&&f()))}function g(e){"Escape"===e.key&&Ge.instance===c&&f()}function h(){a.classList.toggle("mfp-scrolled",a.scrollTop>0)}function f(){if(d)return;d=!0;const i=We.indexOf(c);i>-1&&We.splice(i,1),n.classList.add("mfp-removing"),a.classList.add("mfp-removing"),a.removeEventListener("click",m),a.removeEventListener("scroll",h),document.removeEventListener("keydown",g),We.length||document.documentElement.classList.remove(je),_.unmount(),n.remove(),a.remove(),0==c.callback_param?.success?t(c.callback_param):e(c.callback_param)}_.mount(u),requestAnimationFrame(()=>{n.classList.add("mfp-ready"),a.classList.add("mfp-ready")}),setTimeout(()=>{a.querySelector("button.mfp-close")?.focus()},100),a.addEventListener("click",m),a.addEventListener("scroll",h,{passive:!0}),document.addEventListener("keydown",g)},50)})}const Qe={key:0,class:"s-btn s-btn--l s-btn-ec-button","aria-label":"loading"},ze=["disabled"],Xe={__name:"AddToCartButton",props:{label:String,reqSending:Boolean,bundleItemOutOfStock:Boolean,selectedInCartOutOfStock:Boolean,disabled:Boolean,type:{type:String,default:"standard"}},emits:["onSubmit"],setup(n,{emit:s}){const o=n,a=s,l=h(o,"reqSending"),r=u(()=>l.value);function d(){o.disabled||o.bundleItemOutOfStock||o.selectedInCartOutOfStock||a("onSubmit")}return(s,o)=>(t(),e("a",{class:b(["item-detail__content__add-to-cart s-btn-ec-button__wrapper",{"s-btn-ec-button__wrapper":"standard"===n.type,"s-btn-ec-button__wrapper--subsribe":"outlined"===n.type,"s-btn-ec-button__wrapper--subsribe--loading":r.value&&"outlined"===n.type,"s-btn-ec-button__wrapper--subsribe--disabled":(n.disabled||n.selectedInCartOutOfStock||n.bundleItemOutOfStock)&&"outlined"===n.type,"s-btn-ec-button__wrapper--loading":r.value&&"standard"===n.type,"s-btn-ec-button__wrapper--disabled":(n.disabled||n.selectedInCartOutOfStock||n.bundleItemOutOfStock)&&"standard"===n.type}]),onClick:d},[r.value?(t(),e("button",Qe,o[0]||(o[0]=[i("div",null,[i("div",{class:"icon-ec-loader"},[i("span")])],-1)]))):(t(),e("button",{key:1,class:"s-btn s-btn--l s-btn-ec-button",disabled:n.disabled||n.selectedInCartOutOfStock||n.bundleItemOutOfStock},f(n.label),9,ze))],2))}};var Ke={computed:{is_exclude_tax(){return"US"==this.current_store?.website_code}},methods:{trans(e,t){let n=SYNO_EC.strings?.[e.split(".")?.[0]]?.[e.split(".")?.[1]]||e;for(const i in t)n=n.replace(i,t[i]);return n}}},Ze={methods:{getQtys(e,t){var n=SYNO_EC.findCartItemBySku(t.sku);const i=SYNO_EC.getTotalQtyInCartBySku(t.sku);n===t&&(n=null);var s={sku:t.sku,val:e,buyable:t.max_buyable_quantity,stock:t.stock};return n?.quantity?(s.cart=i,s.residual=Math.max(0,Math.min(s.buyable,s.stock)-i),s.max=Math.min(s.buyable,s.stock,s.residual)):s.max=Math.min(s.buyable,s.stock),s},getErrorReason:(e,t,n)=>t?.code||t?.reason?t?.code&&SYNO_EC.strings.syno_ec?.["errormsg_"+t.code]?"error_code":t?.reason?"error_reason":"general":e.stock<=0||e.buyable<=0||n?"no_stock":e.hasOwnProperty("residual")&&e.residual>=0&&e.cart>0&&e.val+e.cart>=e.stock?"residual_remaining":e.hasOwnProperty("residual")&&e.residual>=0&&e.cart>0&&e.val+e.cart>=e.buyable?"residual_limit":e.val>e.stock?"stock_remaining":e.val>e.buyable?"buyable_limit":""}};const Je={methods:{isBundle:e=>"bundle"===e?.product_type,isMain:e=>"MAIN"===e.option_title?.toUpperCase()||"syno_ec::dialog_bundle_title_main_default"===e.option_title||"MAIN"===e.option_title_str?.toUpperCase()||!!e.selection_string?.toUpperCase().startsWith("MAIN:"),isGift:e=>!!e.is_gift||"GIFT"===e.option_title?.toUpperCase()||"syno_ec::dialog_bundle_title_gift_default"===e.option_title||"GIFT"===e.option_title_str?.toUpperCase()||!!e.selection_string?.toUpperCase().startsWith("GIFT:"),getBundleQtys(e,t){const n=!(!t.item_id&&!t.quantity),i=SYNO_EC.getTotalQtyInCartBySku(t.sku),s={sku:t.sku,val:e,buyable:t.max_buyable_quantity,stock:t.stock};if(n)s.max=Math.min(s.buyable,s.stock-i+t.quantity);else{const e=Math.max(0,Math.floor((Math.min(t.max_buyable_quantity,t.stock)-i)/t.default_qty));s.cart=i||void 0,s.residual=e,s.max=e}return s},getMinBundleQtys(e,t,n){const i={val:0,buyable:0,stock:0,max:0,residual:0,cart:0};if(!t)return i;const s=t.map(t=>this.getBundleQtys(e,t)),o=s.find(e=>e.stock<=0||e.buyable<=0);if(o)return o;let a=null;
1if(s.forEach(e=>{a?a.residual>e.residual&&(a=e):a=e,e.isMain&&(a.sku=e.sku)}),a){const e=n?.sku,t=n?.max_buyable_quantity,i=e?SYNO_EC.getTotalQtyInCartBySku(e):0,s=Number.isFinite(t)?Math.max(0,t-i):a.max;return s<a.max?{...a,sku:e,buyable:t,stock:Number.POSITIVE_INFINITY,cart:i??0,residual:s,max:s}:a}return i}}},et=$({__name:"Tooltip",props:{text:{type:String},disabled:{type:Boolean,default:!1}},setup(i){const a=i,l=r(null),u=r(null),d=r(!1),c=r({}),_=async()=>{if(""===a.text||a.disabled)return;d.value=!0,await k();const e=l.value.getBoundingClientRect(),t=u.value.offsetHeight,n=window.innerHeight,i=e.top,s=n-e.bottom;let o;o=i<t&&s>i?e.bottom:e.top-t,c.value={top:`${o}px`,left:`${e.left+e.width/2}px`,transform:"translateX(-50%)"}},m=()=>{d.value=!1};return(a,r)=>(t(),e("span",{ref_key:"triggerRef",ref:l,class:"tooltip-wrapper",onMouseenter:_,onMouseleave:m},[o(a.$slots,"default",{},void 0,!0),(t(),v(y,{to:"body"},[d.value?(t(),e("div",{key:0,ref_key:"tooltipRef",ref:u,class:"tooltip",style:s(c.value)},f(i.text),5)):n("",!0)]))],544))}},[["__scopeId","data-v-df7a7bb8"]]),tt=$({props:["isInDialog"],data:()=>({queue:[],toast:null,timer:null}),mounted(){this.timer=setInterval(this.tick,100)},beforeDestroy(){clearTimeout(this.timer)},methods:{tick(){if(!this.toast&&this.queue.length){const e=window.scrollY,t=document.querySelector(".dialog-content__inner.item-detail")?.getBoundingClientRect().top||0;this.toast=Object.assign({},this.queue.shift(),{status:"show",start:(new Date).getTime(),duration:this.queue.length?500:3e3,top:this.isInDialog?60:t+e-84-(e>72?72:0)})}else if(this.toast){var e=(new Date).getTime();"show"==this.toast.status&&e>this.toast.start+this.toast.duration?this.toast.status="hide":"hide"==this.toast.status&&e>this.toast.start+this.toast.duration+300&&this.$nextTick(()=>{this.toast=null})}},add(e){this.toast&&(this.toast.duration=500),this.queue.push({type:e?.type,msg:e.msg})},stop(){this.toast&&(this.toast.duration=500)}}},[["render",function(o,a,l,r,u,d){return u.toast?(t(),e("div",{key:0,class:b(["toast",{"toast--show":"show"==u.toast.status,"toast--hide":"hide"==u.toast.status,"toast--red":"error"==u.toast.type}]),style:s({top:u.toast.top+"px"})},[i("span",null,f(u.toast.msg),1),i("button",{class:"icon-close",onClick:a[0]||(a[0]=(...e)=>d.stop&&d.stop(...e)),tabindex:"0",onKeypress:a[1]||(a[1]=w((...e)=>d.stop&&d.stop(...e),["enter"])),"aria-label":"close"},a[2]||(a[2]=[i("svg",{"aria-hidden":"true",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[i("g",null,[i("line",{x1:"4.34383",y1:"4.34319",x2:"15.6575",y2:"15.6569",stroke:"white","stroke-width":"2"}),i("line",{x1:"15.6563",y1:"4.34334",x2:"4.34262",y2:"15.657",stroke:"white","stroke-width":"2"})])],-1)]),32)],6)):n("",!0)}]]),nt={key:0,class:"s-btn s-btn--l s-btn-ec-button","aria-label":"loading"},it={key:1,class:"s-btn s-btn--l s-btn-ec-button"},st={key:0,class:"s-btn s-btn-add-to-cart",style:{"background-color":"white"}},ot={__name:"SubscriptionButton",props:{product:Object,type:{type:String,default:"standard"},reqSending:Boolean,bundleItemOutOfStock:Boolean,selectedInCartOutOfStock:Boolean,selectedBundleSelectionList:Array,useBuiltinToaster:{type:Boolean,default:!1}},emits:["onToaster"],setup(s,{emit:o}){const a=s,l=o,{trans:_}=Ke.methods,m=q(),p=r(null);function g(e){a.useBuiltinToaster&&p.value?p.value.add(e):l("onToaster",e)}const k=h(a,"product"),w=h(a,"reqSending"),B=h(a,"selectedBundleSelectionList"),O=A(()=>k.value.product_id),T=r(!0),E=r(!1),M=r(!1),L=r(null),N=u(()=>E.value||O.loading.value||w.value),P=u(()=>!T.value),$=u(()=>T.value&&M.value?_("syno_ec.btn_unsubscribe_notification"):_("syno_ec.btn_get_notified")),U=u(()=>B.value?[...B.value.map(e=>({option_id:e.option_id,selection_id:e.selection_id,isMain:!1})),{option_id:k.value.option_id,selection_id:k.value.selection_id,isMain:!0}]:[]);function R(){const e=U.value.find(e=>!e.isMain);let t=!1;if(!e)return M.value=!0,void(L.value=O.alertStocks.value[0]?.alert_stock_id);O.alertStocks.value.forEach(n=>{n.bundle_options.forEach(i=>{String(i.option_id)===String(e.option_id)&&String(i.selection_id)===String(e.selection_id)&&(M.value=!0,t=!0,L.value=n.alert_stock_id)})}),t||(M.value=!1,L.value=null)}async function F(e){e.success?(M.value=!M.value,g({msg:e.data?.message}),O.invalidate(),await O.fetch(!0)):g({type:"error",msg:_("syno_ec.dialog_subscribe_general_alert")})}function H(e){E.value=e}function j(){P.value?(H(!0),function(e){const t=document.createElement("a");t.href=e.toString(),t.referrerPolicy="unsafe-url",t.click()}(function(){const e=new URL(`${m.current_store.website_url}/synology_product_alert/stock/add`);return e.searchParams.set("product_id",k.value.product_id),U.value.forEach((t,n)=>{e.searchParams.set(`bundle_options[${n}][option_id]`,t.option_id),e.searchParams.set(`bundle_options[${n}][selection_id]`,t.selection_id)}),e}())):M.value&&L.value?m.productStockAlertDelete({alert_stock_id:L.value},F):m.productStockAlertAdd({product_id:k.value.product_id,bundle_options:U.value.map(e=>({option_id:e.option_id,selection_id:e.selection_id}))},F)}return c(()=>{!async function(){H(!0);try{await O.fetch(),T.value=D()}finally{H(!1)}}(),function(){const e=new URLSearchParams(window.location.search).get("toast");if(e){g({msg:decodeURIComponent(e)});const t=new URL(window.location.href);t.searchParams.delete("toast"),window.history.replaceState({},"",t.toString())}}()}),d(()=>O.alertStocks.value,e=>{e&&e.length>0?R():(M.value=!1,L.value=null)},{deep:!0,immediate:!0}),d(B,()=>{O.alertStocks.value.length>0&&R()},{deep:!0}),(o,a)=>(t(),e(x,null,["standard"===s.type?(t(),e("a",{key:0,class:b(["item-detail__c
1ontent__add-to-cart s-btn-ec-button__wrapper--subsribe",{"s-btn-ec-button__wrapper--subsribe--loading":N.value}]),onClick:j},[N.value?(t(),e("button",nt,a[0]||(a[0]=[i("div",null,[i("div",{class:"icon-ec-loader"},[i("span")])],-1)]))):(t(),e("button",it,f($.value),1))],2)):"icon"===s.type?(t(),e(x,{key:1},[N.value?(t(),e("button",st,a[1]||(a[1]=[i("div",{class:"icon-ec-loader"},[i("span")],-1)]))):M.value?(t(),v(et,{key:1,text:I(_)("syno_ec.btn_unsubscribe_notification")},{default:C(()=>[i("div",{class:"s-btn-add-to-cart__unsubscribe",onClick:S(j,["stop"])})]),_:1},8,["text"])):(t(),v(et,{key:2,text:I(_)("syno_ec.btn_get_notified")},{default:C(()=>[i("div",{class:"s-btn-add-to-cart__subscribe",onClick:S(j,["stop"])})]),_:1},8,["text"]))],64)):n("",!0),(t(),v(y,{to:"body"},[s.useBuiltinToaster?(t(),v(tt,{key:0,ref_key:"toasterRef",ref:p,isInDialog:!0},null,512)):n("",!0)]))],64))}},at={class:"tooltip-msg"},lt={key:0,class:"error-msg"},rt={__name:"tooltip_msg",props:{errorMsg:String},setup:s=>(o,a)=>(t(),e("div",at,[a[0]||(a[0]=i("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[i("path",{class:"bg",d:"M0 8C0 3.5888 3.5888 0 8 0C12.4112 0 16 3.5888 16 8C16 12.4112 12.4112 16 8 16C3.5888 16 0 12.4112 0 8Z",fill:"currentColor"}),i("path",{d:"M7 13H9V8H7V13Z",fill:"white"}),i("path",{d:"M7 6H9V4H7V6Z",fill:"white"})],-1)),s.errorMsg?(t(),e("p",lt,f(s.errorMsg),1)):n("",!0)]))},ut=["disabled"],dt={key:0,width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},ct={key:1,width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},_t=["aria-label","value","min","max","disabled"],mt=["disabled"],pt={key:0,width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},gt={key:1,width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},ht=$({mixins:[Ke],model:{prop:"modelValue",event:"update:modelValue"},props:{modelValue:{default:1},min:{default:0},max:{default:10},disabled:{default:!1},size:{default:"8"},name:{default:""}},data(){return{val:this.modelValue}},watch:{modelValue(e){this.val=e,this.$refs.input.value=e},val(e){this.$emit("update:modelValue",e)}},methods:{onAdd(){this.val=Math.min(this.max,Number.parseInt(this.val,10)+1)},onRemove(){this.val=Math.max(this.min,Number.parseInt(this.val,10)-1)},onInput(e){const t=this;let n=0;e.target.value&&(n=Number.parseInt(e.target.value,10)),n=Math.min(n,this.max),n=Math.max(n,this.min),setTimeout(()=>{t.val=n,e.target.value=n},10)},onBlur(){this.$emit("blur")}}},[["render",function(n,s,o,a,l,r){return t(),e("div",null,[i("button",{disabled:l.val<=1||o.disabled,class:b(["btn-quantity btn-quantity--decrease",{disabled:l.val<=1||o.disabled}]),"aria-label":"Decrement number",onClick:s[0]||(s[0]=(...e)=>r.onRemove&&r.onRemove(...e))},[12==o.size?(t(),e("svg",dt,s[4]||(s[4]=[i("path",{d:"M1 6.5H12",stroke:"#2E3742"},null,-1)]))):(t(),e("svg",ct,s[5]||(s[5]=[i("path",{d:"M1 4.5H8",stroke:"#2E3742"},null,-1)])))],10,ut),i("input",{ref:"input","aria-label":n.trans("syno_ec.A11y_product_quantity",{"%1":o.name}),type:"number",class:"add-focus-visible",value:l.val,min:o.min,max:o.max,step:"1",disabled:o.disabled,onInput:s[1]||(s[1]=(...e)=>r.onInput&&r.onInput(...e)),onBlur:s[2]||(s[2]=(...e)=>r.onBlur&&r.onBlur(...e))},null,40,_t),i("button",{disabled:l.val>=o.max,class:b(["btn-quantity btn-quantity--increase",{disabled:l.val>=o.max}]),"aria-label":"Increment number",onClick:s[3]||(s[3]=(...e)=>r.onAdd&&r.onAdd(...e))},[12==o.size?(t(),e("svg",pt,s[6]||(s[6]=[i("path",{d:"M1 6.5H12",stroke:"#2E3742"},null,-1),i("path",{d:"M6.5 1L6.5 12",stroke:"#2E3742"},null,-1)]))):(t(),e("svg",gt,s[7]||(s[7]=[i("path",{d:"M1 4.5H8",stroke:"#2E3742"},null,-1),i("path",{d:"M4.5 1L4.5 8",stroke:"#2E3742"},null,-1)])))],10,mt)])}]]),ft=["src","srcset","alt"],bt=$({props:["item"]},[["render",function(n,s,o,l,r,u){return t(),e("div",{class:b(["syno-ec-image-dialog",{"syno-ec-image-dialog--eu-guarantee":o.item.is_eu_guarantee}])},[(t(),v(B(o.item.link_url?"a":"div"),a({class:"syno-ec-image-dialog__img"},o.item.link_url?{href:o.item.link_url,target:"_blank",rel:"noopener noreferrer"}:{}),{default:C(()=>[i("img",{src:o.item.image_url,srcset:`${o.item.image_url_2x||o.item.image_url} 2x`,alt:o.item.name||""},null,8,ft)]),_:1},16))],2)}]]),vt=$({__name:"SwipeableWrapper",props:{threshold:{type:Number,default:80}},emits:["swipe-left","swipe-right"],setup(n,{emit:i}){const s=n,a=i,l=r(0),d=r(0),c=u(()=>d.value-l.value);function _(e){l.value=e.clientX,d.value=e.clientX}function m(e){d.value=e.clientX}function p(){c.value<-s.threshold?a("swipe-left"):c.value>s.threshold&&a("swipe-right"),l.value=0,d.value=0}return(n,i)=>(t(),e("div",{class:"swipeable-wrapper",onPointerdown:_,onPointermove:m,onPointerup:p,onPointercancel:p},[o(n.$slots,"default",{},void 0,!0)],32))}},[["__scopeId","data-v-d5aa49e9"]]),yt={class:"syno_ec_item_detail_img_slide",style:{width:"100%"}},kt={class:"item-detail__img--bundle__slide"},wt={class:"item-detail__img--bundle__container"},xt={class:"item-detail__img--bundle__container__img"},Ct=["src","srcset","alt"],St={id:"js-icon-list-wrapper",class:"item-detail__img--bundle__container__list__wrapper"},It=["aria-pressed","onClick","onFocus"],Bt=["src","srcset","alt"],Ot={id:"js-icon-arrwow-left",class:"item-detail__img--bundle__icon__wrapper item-detail__img--bundle__icon__wrapper--left"},Tt={id:"js-icon-arrwow-right",class:"item-detail__img--bundle__icon__wrapper item-detail__img--bundle__icon__wrapper--right"},Et=$({components:{SwipeableWrapper:vt},props:["type","items"],data:()=>({idx:0,imgListNoScroll:!0,hideLeftArrow:!0,hideRightArrow:!0,pointerDownX:0}),mounted(){window.addEventListener("resize",this.checkImgArrow),this.checkImgArrow()},unmounted(){window.removeEventListener("resize",this.checkImgArrow,!1)},computed:{current_item(){return this.items[this.idx]},isLarge(){return this.current_item.needEnlarge}},watch:{idx(){setTimeout(this.checkImgArrow,200)},items(e){this.idx>e.length-1&&(this.idx=Math.max(0,e.length-1))}},methods:{moveLeft(){this.scrollIconList(-86)},moveRight(){this.scrollIconList(86)},scrollIconList(e){document.getElementById("js-icon-list")?.scrollBy({left:e,behavior:"smooth"}),setTimeout(this.checkImgArrow,200)},setIdx(e){this.idx=e},onLeftClicked(){this.moveLeft(),this.idx=Math.max(0,this.idx-1)},onRightClicked(){this.moveRight(),this.idx=Math.min(this.items.length-1,this.idx+1)},onImgPointerDown(e){this.pointerDownX=e.clientX},onImgClicked(e){Math.abs(e.clientX-this.pointerDownX)>10||this.openImageDialog()},openImageDialog(){var e;e=this.current_item,Ye({component:bt,props:{item:e},ariaLabel:P(e.name||""),dialogCustomClass:"image",dialogInnerCustomClass:"image__inner"})},checkImgArrow:function(){var e=document.getElementById("js-icon-list");if(e){var t=e.scrollWidth;if(parseFloat(window.getComputedStyle(e).width)===t)this.imgListNoScroll=!0;else{this.imgListNoScroll=!1;var n=e.offsetWidth,i=e.scrollLeft;this.hideLeftArrow=0===i,this.hideRightArrow=n+i>=t;var s=document.getElementById("js-icon-arrwow-left"),o=document.getElementById("js-icon-arrwow-right");s.classList.remove("item-detail__img--bundle__icon__wrapper--no-gradient"),o.classList.remove("item-detail__img--bundle__icon__wrapper--no-gradient"),0===i&&s.classList.add("item-detail__img--bundle__icon__wrapper--no-gradient"),n+i>=t&&o.classList.add("item-detail__img--bundle__icon__wrapper--no-gradient")}}}}},[["render",function(s,o,a,l,r,u){const d=O("SwipeableWrapper");return t(),e("div",yt,[i("div",kt,[i("div",wt,[i("div",xt,[T(d,{onSwipeLeft:u.onRightClicked,onSwipeRight:u.onLeftClicked},{default:C(()=>[(t(),e("img",{key:`img-${r.idx}`,src:u.current_item.image_url,srcset:u.current_item.image_url_2x+" 2x",alt:u.current_item.name,class:b({large:u.isLarge}),role:"button",tabindex:"0",onPointerdown:o[0]||(o[0]=(...e)=>u.onImgPointerDown&&u.onImgPointerDown(...e)),onClick:o[1]||(o[1]=(...e)=>u.onImgClicked&&u.onImgClicked(...e)),onKeydown:[o[2]||(o[2]=w(S((...e)=>u.openImageDialog&&u.openImageDialog(...e),["prevent"]),["enter"])),o[3]||(o[3]=w(S((...e)=>u.openImageDialog&&u.openImageDialog(...e),["prevent"]),["space"]))]},null,42,Ct))]),_:1},8,["onSwipeLeft","onSwipeRight"]),a.items.length>1&&0!==r.idx?(t(),e("button",{key:0,class:"img-nav prev",onClick:o[4]||(o[4]=(...e)=>u.onLeftClicked&&u.onLeftClicked(...e))},o[8]||(o[8]=[i("span",null,null,-1)]))):n("",!0),a.items.length>1&&r.idx!==a.items.length-1?(t(),e("button",{key:1,class:"img-nav next",onClick:o[5]||(o[5]=(...e)=>u.onRightClicked&&u.onRightClicked(...e))},o[9]||(o[9]=[i("span",null,null,-1)]))):n("",!0)])])]),o[12]||(o[12]=i("div",{class:"item-detail__img--bundle__divider"},null,-1)),i("div",St,[i("div",{id:"js-icon-list",class:b(["item-detail__img--bundle__container__list",{"item-detail__img--bundle__container__list--no-arrow":r.imgListNoScroll,"item-detail__img--bundle__container__list--gift":"gift"===a.type}])},[(t(!0),e(x,null,E(a.items,(n,s)=>(t(),e("div",{role:"button",class:b(["item-detail__img--bundle__container__list__btn add-focus-visible",{"list-btn-active":r.idx==s}]),"aria-pressed":r.idx===s,tabindex:"0",onClick:e=>u.setIdx(s),onFocus:e=>u.setIdx(s)},[i("img",{src:n.image_url,srcset:n.image_url_2x+" 2x",alt:n.name},null,8,Bt),i("div",{class:b({"item-detail__img--bundle__container__list__gift":0!==s&&n.is_gift})},null,2)],42,It))),256))],2),i("div",Ot,[i("div",{class:b(["item-detail__img--bundle__icon item-detail__img--bundle__icon--left",{"item-detail__img--bundle__icon--hidden":r.hideLeftArrow}]),onClick:o[6]||(o[6]=(...e)=>u.onLeftClicked&&u.onLeftClicked(...e))},o[10]||(o[10]=[i("span",null,null,-1)]),2)]),i("div",Tt,[i("div",{class:b(["item-detail__img--bundle__icon item-detail__img--bundle__icon--right",{"item-detail__img--bundle__icon--hidden":r.hideRightArrow}]),onClick:o[7]||(o[7]=(...e)=>u.onRightClicked&&u.onRightClicked(...e))},o[11]||(o[11]=[i("span",null,null,-1)]),2)])])])}],["__scopeId","data-v-06856f54"]]),Mt={CS:"https://europa.eu/youreurope/záruky_cs",DA:"https://europa.eu/youreurope/garantier",DE:"https://europa.eu/youreurope/garantien",ES:"https://europa.eu/youreurope/garantÃas",FR:"https://europa.eu/youreurope/garanties",HU:"https://europa.eu/youreurope/jótállás",IT:"https://europa.eu/youreurope/garanzie",NL:"https://europa.eu/youreurope/garantie",PL:"https://europa.eu/youreurope/gwarancje",SV:"https://europa.eu/youreurope/reklamationsrätt"};
1function Lt(e,t){return{image_url:e,image_url_2x:e,name:"",is_eu_guarantee:!0,link_url:t}}function Nt(e){return(e||"").replace(/\/+$/,"")}const qt={class:"select2"},At=["id"],Dt=["aria-expanded","aria-labelledby","aria-activedescendant","aria-invalid"],Pt=["src","alt"],$t={class:"text"},Ut={class:"title"},Rt={key:0,class:"subtitle"},Ft={class:"options",role:"listbox"},Ht=["id","aria-selected","aria-disabled","onMousedown"],jt=["src","alt"],Vt={class:"text"},Wt={class:"title"},Gt={key:0,class:"subtitle"},Yt={key:0,class:"error-message",role:"alert"},Qt={__name:"ProductSelector",props:{modelValue:{type:[String,Number],required:!0},options:{type:Array,required:!0},label:{type:String,default:""},hideLabel:{type:Boolean,default:!0},id:{type:String,default:"base-select"},errorMessage:{type:String,default:""},customClass:{type:String,default:""}},emits:["update:modelValue"],setup(s,{emit:o}){const a=s,l=o,c=r(!1),_=r(0);d(()=>a.modelValue,e=>{const t=a.options.findIndex(t=>t.value===e);t>=0&&(_.value=t)},{immediate:!0});const m=u(()=>a.options[_.value]),p=u(()=>c.value?`${a.id}-option-${_.value}`:null);function g(){1!==a.options.length&&(c.value=!c.value)}function h(){c.value=!1}function v(e,t){_.value=t,l("update:modelValue",e.value),c.value=!1}function y(e){switch(e.key){case"ArrowDown":e.preventDefault(),c.value=!0,_.value=(_.value+1)%a.options.length;break;case"ArrowUp":e.preventDefault(),c.value=!0,_.value=(_.value-1+a.options.length)%a.options.length;break;case"Enter":case" ":e.preventDefault(),c.value?v(a.options[_.value],_.value):c.value=!0;break;case"Escape":c.value=!1}}return(o,a)=>(t(),e("div",qt,[i("label",{id:`${s.id}-label`,class:b({"sr-only":s.hideLabel})},f(s.label),11,At),i("div",{class:b(["basic-select",[s.customClass,{open:c.value,error:!!s.errorMessage,clickable:s.options.length>1}]]),role:"combobox",tabindex:"0","aria-haspopup":"listbox","aria-expanded":c.value.toString(),"aria-labelledby":`${s.id}-label`,"aria-activedescendant":p.value,"aria-invalid":!!s.errorMessage,onClick:g,onKeydown:y,onBlur:h},[i("div",{class:b(["selected",{disabled:m.value?.disabled}])},[m.value?.image?(t(),e("img",{key:0,src:m.value.image,alt:m.value?.name},null,8,Pt)):n("",!0),i("div",$t,[i("div",Ut,f(m.value?.name),1),m.value?.subtitle?(t(),e("div",Rt,f(m.value.subtitle),1)):n("",!0)])],2),s.options.length>1?(t(),e("span",{key:0,class:b(["select-arrow",{disabled:m.value?.disabled}]),"aria-hidden":"true"},null,2)):n("",!0),M(i("ul",Ft,[(t(!0),e(x,null,E(s.options,(o,a)=>(t(),e("li",{key:o.value,id:`${s.id}-option-${a}`,role:"option","aria-selected":a===_.value,"aria-disabled":o.disabled||void 0,class:b({active:a===_.value,disabled:o.disabled}),onMousedown:S(e=>v(o,a),["prevent"])},[o.image?(t(),e("img",{key:0,src:o.image,alt:o.name},null,8,jt)):n("",!0),i("div",Vt,[i("div",Wt,f(o.name),1),o.subtitle?(t(),e("div",Gt,f(o.subtitle),1)):n("",!0)])],42,Ht))),128))],512),[[L,c.value]])],42,Dt),s.errorMessage?(t(),e("p",Yt,[a[0]||(a[0]=i("span",{class:"error-icon"},"!",-1)),N(" "+f(s.errorMessage),1)])):n("",!0)]))}},zt="gift-out-of-stock",Xt={class:"syno_ec_item_detail s-article"},Kt={key:0,class:"item-detail__loading-icon-outer loading-icon-outer",style:{height:"447px"}},Zt={key:0,class:"item-detail__img item-detail__img--bundle"},Jt=["src","srcset","alt"],en={key:0,class:"parts-mode"},tn={class:"detail-list"},nn=["textContent"],sn=["textContent"],on={key:0,class:"detail-notes"},an={key:0,class:"detail-notes__sec"},ln={class:"detail-notes__title"},rn=["innerHTML"],un={key:1,class:"detail-notes__sec"},dn={class:"detail-notes__title"},cn=["innerHTML"],_n={class:"item-detail__content"},mn={class:"item-detail__content__inner"},pn={key:0,class:"item-detail__content__tag"},gn=["textContent"],hn=["textContent"],fn={class:"item-detail__content__subtitle"},bn=["textContent"],vn={key:0,class:"label-vat"},yn={key:0,class:"syno-ec-price-original"},kn=["innerHTML"],wn={key:1,class:"syno-ec-label syno-ec-label--sale"},xn={key:2,class:"item-detail__content__selling-point"},Cn=["innerHTML"],Sn={key:0,class:"item-detail__content__option__hr"}
1,In={class:"item-detail__content__option__title"},Bn={key:0,class:"item-detail__content__option__title__icon--gift"},On={class:"sr-only"},Tn={"aria-hidden":"true"},En={key:1},Mn={class:"item-detail__content__cart"},Ln={key:1,class:"item-detail__content__message s-ec-message"},Nn={class:"item-detail__content__info"},qn={class:"parcel"},An={class:"activate"},Dn={class:"parcel"},Pn={class:"delivery"},$n={class:"warranty"},Un={class:"delivery"},Rn={class:"warranty"},Fn={key:4,class:"item-detail__content__cart-buttons-wrapper"},Hn=["href"],jn=["innerHTML"],Vn=["innerHTML"],Wn=["innerHTML"],Gn=$({components:{SynoEcInput:ht,SynoEcItemDetailImgSlide:Et,ProductSelector:$(Qt,[["__scopeId","data-v-fef541c0"]]),AddToCartButton:Xe,SubscriptionButton:ot,Toaster:tt,TooltipMsg:rt},mixins:[Ke,Ze,Je],props:["item","extra","free_shipping_threshold","cart","main_item_sku","photos","situation","sparePartsSpec"],data:()=>({val:1,error:{},btn_loading:!1,req_sending:!1,loading:!1,bundle_info:null,selected_bundle_list:[],bundle_selections:[]}),computed:{SKU_PHOTO_MAP:()=>({"BDS70-1T":["BeeDrive_1","BeeDrive_2","BeeDrive_3"],"BDS70-2T":["BeeDrive_1","BeeDrive_2","BeeDrive_3"],"BDS70-4T":["BeeDrive_1","BeeDrive_2","BeeDrive_3"],"BST150-4T":["BeeStation_1","BeeStation_2","BeeStation_3","BeeStation_4","BeeStation_5"],"BST151-4T":["BeeStation_1","BeeStation_2","BeeStation_3","BeeStation_5"],"BST170-4T":["BeeStation_Plus_1","BeeStation_Plus_2","BeeStation_Plus_3","BeeStation_Plus_4_4TB","BeeStation_Plus_5"],"BST170-8T":["BeeStation_Plus_1","BeeStation_Plus_2","BeeStation_Plus_3","BeeStation_Plus_4","BeeStation_Plus_5"],BC500:["BC500_1","BC500_2","BC500_3","BC500_4","BC500_5"],TC500:["TC500_1","TC500_2","TC500_3","TC500_4","TC500_5"],BC510:["BC500_1","BC500_2","BC500_3","BC500_4","BC500_5"],TC510:["TC500_1","TC500_2","TC500_3","TC500_4","TC500_5"],CC400W:["CC400W_1","CC400W_2","CC400W_3","CC400W_4","CC400W_5"],CC410W:["CC400W_1","CC400W_2","CC400W_3","CC400W_4","CC400W_5"]}),specific_photos(){const e=(this.main_item_sku||this.getItem("sku")).replace(" (US)","");return(this.SKU_PHOTO_MAP[e]||[]).map(t=>({image_url:`https://fileres.synology.com/images/ec/products/${t}.jpg`,image_url_2x:`https://fileres.synology.com/images/ec/products/${t}.jpg`,name:e,needEnlarge:!0}))},lang:()=>SYNO_EC.lang,current_store:()=>SYNO_EC.current_store,is_bundle(){return this.isBundle(this.getItem())},is_virtual(){return"virtual"===this.getItem("product_type")},bundle_list(){return this.bundle_info?.options.filter(e=>!this.isMain(e))||[]},gift_list(){return this.bundle_info?.options.filter(e=>this.isGift(e))||[]},is_gift_bundle(){const e=this.bundle_info?.options;return 2===e?.length&&1===e.filter(e=>this.isGift(e)).length},main_option(){return this.bundle_info?.options.filter(e=>this.isMain(e))[0]},main_selection(){return this.main_option.selections[0]},selected_bundle_selection_list(){return this.selected_bundle_list.reduce((e,t,n)=>{const i={is_gift:this.bundle_list[n].is_gift,option_id:this.bundle_list[n].option_id,...this.bundle_list[n].selections.find(e=>e.selection_id===t)};return i?[...e,i]:e},[]).sort((e,t)=>e.is_gift-t.is_gift)},show_eu_guarantee(){return"EU"===this.current_store?.website_code},eu_guarantee_notice_item(){return function({site_url:e,lang:t}){const n=(t||"").slice(0,2).toUpperCase();return Lt(`${Nt(e)}/static/eu-guarantee/notice/${n}.svg`,Mt[n]||"https://europa.eu/youreurope/guarantees")}({site_url:this.current_store.website_url.split("/").slice(0,-1).join("/"),lang:this.lang})},selected_bundle_selections(){const e=new Set(this.selected_bundle_list);return(this.bundle_info?.options||[]).reduce((t,n)=>{const i=1===n.selections?.length?n.selections[0]:n.selections?.find(t=>e.has(t.selection_id));return i?[...t,i]:t},[])},eu_guarantee_label_items(){return this.show_eu_guarantee?(this.is_bundle&&this.bundle_info?this.selected_bundle_selections:[this.getItem()]).filter(e=>function(e){const t=Number.parseFloat(e);return Number.isFinite(t)&&t>=3}(e?.warranty_year)).map(e=>function({website_url:e,sku:t,nested:n=!1}){const i=n?"eu-guarantee/label/nested":"eu-guarantee/label";return Lt(`${Nt(e)}/${i}/${t}.svg`,"https://europa.eu/youreurope/commercial-guarantee-durability/index.htm")}({website_url:this.current_store.website_url,sku:(e.sku||"").replace(" (US)","")})):[]},eu_guarantee_items(){return[this.eu_guarantee_notice_item,...this.eu_guarantee_label_items]},img_slide_items(){const e=this.product_img_slide_items;return this.show_eu_guarantee?[...e.length>0?e:[{image_url:this.getItem("image_url"),image_url_2x:this.getItem("image_url_2x"),name:this.getItem("name")}],...this.eu_guarantee_items]:e},product_img_slide_items(){const e=this.specific_photos.length>0?this.specific_photos:this.photos;if(this.is_bundle&&this.bundle_info){const t=e=>{if(!e?.image_url)return[];
1const t={image_url:e.image_url,image_url_2x:e.image_url_2x,name:e.name},n=e.sku?.replace(" (US)",""),i=this.SKU_PHOTO_MAP[n]||[];return i.length?[t,...i.map(t=>({image_url:`https://fileres.synology.com/images/ec/products/${t}.jpg`,image_url_2x:`https://fileres.synology.com/images/ec/products/${t}.jpg`,name:e.name,needEnlarge:!0}))]:e.synology_photos?.length?[t,...e.synology_photos.map(t=>({image_url:t.img,image_url_2x:t.img,name:e.name}))]:[e]};return[this.is_gift_bundle?null:this.getItem(),...t(this.main_selection),...e?.length>0?e:[],...this.selected_bundle_selection_list.flatMap(t)].filter(e=>e?.image_url)}return e?.length>0?[{image_url:this.getItem("image_url"),image_url_2x:this.getItem("image_url_2x"),name:this.getItem("name")},...e]:[]},current_selection_option(){if(!this.is_bundle)return this.getItem();if(!this.bundle_info)return{display_price:"-",display_original_price:"-"};for(const e of this.bundle_info.options_price)if([this.main_selection.selection_id,...this.selected_bundle_list].every(t=>e.selected.includes(t)))return e;return{display_price:"-",display_original_price:"-"}},price(){return this.current_selection_option.display_price},price_calculated_by_input(){return this.current_selection_option.display_price},display_original_price(){return this.current_selection_option.display_original_price},show_original_price(){return"bundle"===this.getItem("product_type")?!this.is_gift_bundle:null!=this.getItem("promotion_price_difference_percentage")},bundle_option(){if(!this.is_bundle)return;const e={},t=this.bundle_info.options.find(e=>this.isMain(e));return e[t.option_id]=t.selections[0].selection_id,this.bundle_list.forEach((t,n)=>{e[t.option_id]=this.selected_bundle_list[n]}),e},qtys(){return this.is_bundle?this.getMinBundleQtys(this.val,this.bundle_selections,this.getItem()):this.getQtys(this.val,this.getItem())},bundle_item_out_of_stock(){for(const e of this.selected_bundle_selection_list)if(this.isBundleOutOfStock(e))return!0;return!1},bundle_sold_out(){for(const e of this.selected_bundle_selection_list)if(e.stock<=0||e.stock<e.default_qty)return!0;return!1},selected_in_cart_out_of_stock(){return this.qtys.residual<=0},error_reason(){return this.getErrorReason(this.qtys,this.error,this.bundle_sold_out)},error_msg(){if(!this.error_reason)return null;const e=this.qtys;return{error_code:this.trans(`syno_ec.errormsg_${this.error?.code}`,{"@item@":this.getItem("name")}),error_reason:this.error.reason,error_general:this.trans("syno_ec.errormsg_general"),no_stock:this.trans("syno_ec.dialog_item_detail_msg_no_stock"),residual_limit:this.trans("syno_ec.dialog_item_detail_msg_residual_limit",{"@cart_qty@":e.cart,"@residual_qty@":e.residual}),residual_remaining:this.trans("syno_ec.dialog_item_detail_msg_residual_remaining",{"@cart_qty@":e.cart,"@residual_qty@":e.residual}),buyable_limit:this.trans("syno_ec.dialog_item_detail_msg_limit",{"@qty@":e.buyable}),stock_remaining:this.trans("syno_ec.dialog_item_detail_msg_remaining",{"@qty@":e.stock})}?.[this.error_reason]??"general"},error_msg_red(){return["error_code","error_reason","error_general","no_stock"].includes(this.error_reason)}},watch:{"qtys.max"(e){e>=0&&this.val>e&&(this.val=e)},val(){this.is_bundle&&(this.error={},this.bundle_list.forEach((e,t)=>{const n=document.getElementById(`gift-option-id-${e.option_id}`);if(!n)return;const i=e.selections.find(e=>e.selection_id===this.selected_bundle_list[t]);i&&(n.textContent=this.getBundleSelectionName(i),this.isBundleOutOfStock(i)?n.classList.add(zt):n.classList.remove(zt))}))},selected_bundle_list:{handler(e){const t=new Set(e);let n=null;if(this.bundle_list.forEach(e=>{e.selections.forEach(e=>{t.has(e.selection_id)&&(n=e)})}),n&&(this.bundle_selections=[{isMain:!0,...this.main_selection},n],this.setItem("stock",Math.min(this.main_selection.stock,n.stock)),this.bundle_info?.bundle_images?.length)){const e=[this.main_selection.sku,...this.selected_bundle_selection_list.map(e=>e.sku)],t=this.bundle_info.bundle_images.find(t=>t.skus.length===e.length&&t.skus.every(t=>e.includes(t)));t&&(this.setItem("image_url",t.images["1x"]),this.setItem("image_url_2x",t.images["2x"]))}},deep:!0}},mounted(){0===this.qtys.max&&(this.val=0),this.is_bundle&&(this.loading=!0,this.updateBundleItemInfo()),this.getItem("toast_msg")&&(this.onToaster({msg:this.getItem("toast_msg")}
1),window.history.replaceState({},null,window.location.origin))},methods:{onAddToCart(e=!1){this.btn_loading=e?"buy_now":"add_to_cart",this.req_sending=!0,this.error={},this.updateCartItem(e)},onAddToCartAndGoToCart(){this.onAddToCart(!0)},onToaster(e){this.$refs.toaster.add(e)},setItem(e,t){this.item[e]=t},getItem(e){return e?this.item[e]:this.item},isBundleOutOfStock(e){return!e.stock||e.stock<this.val*e.default_qty},getBundleSelectionName(e){return this.isBundleOutOfStock(e)?`${e.name} (${this.trans("syno_ec.dialog_item_detail_msg_no_stock")})`:`${e.name}`},getSingleBundleCount(e){return""+Math.max(1,this.val)*e.default_qty},updateBundleItemInfo(){SYNO_EC.fetchBundleItemInfo(this.getItem()).then(e=>{this.bundle_info=e.data,this.imgSelection=this.main_selection,this.bundle_list.forEach((e,t)=>{this.selected_bundle_list[t]=e.selections.find(e=>e.stock)?.selection_id||e.selections[0].selection_id}),this.setItem("selection_id",this.main_selection.selection_id),this.setItem("option_id",this.main_option.option_id);const t=SYNO_EC.getTotalQtyInCartBySelectionID(this.getItem("selection_id"));this.main_selection.stock&&(this.val=this.getItem("max_buyable_quantity")>t?1:0),this.main_selection.stock||(this.val=0,this.setItem("stock",0))}).catch(()=>{this.error={code:400}}).finally(()=>{this.loading=!1})},updateCartItem(e=!1){const t={item:this.getItem(),product_id:this.getItem("product_id"),sku:this.getItem("sku"),quantity:this.val,qty_diff:this.val,item_list_name:""};SYNO_EC.addCartItem(t,this.bundle_option).then(()=>{e?SYNO_EC.openCart():this.onToaster({msg:this.trans("syno_ec.add_to_cart_toast")})}).catch(e=>{this.error=e.error,1003===e?.error?.code&&this.setItem("buyable",!1),this.onToaster({type:"error",msg:this.trans("syno_ec.err_msg_toast")})}).finally(()=>{this.req_sending=!1})}}},[["render",function(s,o,a,l,r,u){const d=O("SynoEcItemDetailImgSlide"),c=O("ProductSelector"),_=O("TooltipMsg"),m=O("SynoEcInput"),p=O("SubscriptionButton"),g=O("AddToCartButton"),h=O("Toaster");return t(),e("div",Xt,[i("div",{class:b(["dialog-content",{"dialog-content--parts":a.extra&&"parts"===a.extra.mode,"dialog-content--you-may-also-need":"you-may-also-need"===a.situation}])},[i("div",{class:b(["dialog-content__inner item-detail",{"item-detail--you-may-also-need":"you-may-also-need"===a.situation}])},[u.is_bundle&&r.loading?(t(),e("div",Kt,o[1]||(o[1]=[i("span",{class:"loading-icon"},null,-1)]))):(t(),e(x,{key:1},[u.img_slide_items.length>0?(t(),e("div",Zt,[T(d,{items:u.img_slide_items,type:u.is_gift_bundle?"gift":"bundle"},null,8,["items","type"])])):(t(),e("div",{key:1,class:b(["item-detail__img",{"item-detail__img--spare-parts":a.extra&&"parts"===a.extra.mode}])},[i("img",{src:a.item.image_url,srcset:`${a.item.image_url_2x} 2x`,alt:a.item.name},null,8,Jt),a.extra&&"parts"===a.extra.mode?(t(),e("div",en,[i("ul",tn,[(t(!0),e(x,null,E(a.extra.columns,(s,o)=>(t(),e(x,null,[a.extra.item[o]?(t(),e("li",{key:a.extra.item[o],class:b(`detail-list__${o}`)},[i("span",{class:"detail-list__title",textContent:f(`${s}: `)},null,8,nn),i("span",{textContent:f(a.extra.item[o])},null,8,sn)],2)):n("",!0)],64))),256))]),a.extra.item.appliedModels||Object.keys(a.extra.notes).length?(t(),e("div",on,[a.extra.item.appliedModels?(t(),e("div",an,[i("span",ln,f(s.trans("syno_ec.spare_parts_model_title"))+":",1),i("p",{innerHTML:a.extra.item.appliedModels},null,8,rn)])):n("",!0),Object.keys(a.extra.notes).length?(t(),e("div",un,[i("span",dn,f(s.trans("syno_ec.spare_parts_notes_title"))+":",1),i("ul",null,[(t(!0),e(x,null,E(a.extra.notes,n=>(t(),e("li",{key:n,innerHTML:n},null,8,cn))),128))])])):n("",!0)])):n("",!0)])):n("",!0)],2)),i("div",_n,[i("div",mn,[u.is_bundle&&!u.is_gift_bundle?(t(),e("p",pn,f(s.trans("syno_ec.bundle_tag")),1)):n("",!0),i("p",{class:"h2 item-detail__content__title",textContent:f(a.item.name)},null,8,gn),a.item.synology_product_short_description?(t(),e("p",{key:1,class:"item-detail__content__desc",textContent:f(a.item.synology_product_short_description)},null,8,hn)):n("",!0),i("div",fn,[i("p",null,[i("span",{class:"syno-ec-price",textContent:f(u.price)},null,8,bn),null!==a.item.tax_percent?(t(),e("span",vn,f(s.trans(`syno_ec.cart_tax_include_label_${u.current_store.website_code}`,{"@tax@":a.item.tax_percent})),1)):n("",!0)]),i("p",null,[u.show_original_price&&u.display_original_price&&u.display_original_price!==u.price?(t(),e("span",yn,[i("s",{innerHTML:u.display_original_price},null,8,kn)])):n("",!0),a.item.promotion_price_difference_percentage?(t(),e("span",wn,f(s.trans("syno_ec.cart_discount_label",{"@percentage@":a.item.promotion_price_difference_percentage})),1)):n("",!0)])]),"Spare Parts"===a.item.product_catagory_synology?(t(),e("ul",xn,[i("li",null,f(s.trans("syno_ec.spec_dimension"))+": "+f(a.sparePartsSpec.dimension),1),i("li",null,f(s.trans("syno_ec.spec_weight"))+": "+f(a.sparePartsSpec.weight),1)])):(t(),e("p",{key:3,class:"item-detail__c
1ontent__selling-point",innerHTML:s.trans(`product_selling_point.${a.item.synology_display_key??a.item.sku}`)},null,8,Cn)),u.is_bundle&&r.bundle_info?(t(),e("div",{key:4,class:b(["item-detail__content__options",{"item-detail__content__options--gift":s.isGift(u.bundle_list[0])}])},[(t(!0),e(x,null,E(u.bundle_list,(o,l)=>(t(),e("div",{key:o.option_id,class:b(["item-detail__content__option",{"item-detail__content__option--disabled":!a.item.stock||u.isBundleOutOfStock(u.selected_bundle_selection_list[l])}])},[s.isGift(o)?(t(),e("hr",Sn)):n("",!0),i("div",In,[s.isGift(o)?(t(),e("div",Bn)):n("",!0),i("span",On,f(o.option_title_str)+" "+f(u.getSingleBundleCount(u.selected_bundle_selection_list[l]))+" item",1),i("span",Tn,f(o.option_title_str)+" x "+f(u.getSingleBundleCount(u.selected_bundle_selection_list[l])),1)]),o.selections.length>0?(t(),e("span",En,[T(c,{id:`product_selector_detail_${o.option_title_str.replace(/\s+/g,"_")}`,modelValue:r.selected_bundle_list[l],"onUpdate:modelValue":e=>r.selected_bundle_list[l]=e,label:o.option_title_str,options:o.selections.map(e=>({value:e.selection_id,image:e.image_url,disabled:u.isBundleOutOfStock(e),name:u.isBundleOutOfStock(e)?`${e.name} (${s.trans("syno_ec.dialog_item_detail_msg_no_stock")})`:e.name}))},null,8,["id","modelValue","onUpdate:modelValue","label","options"])])):n("",!0)],2))),128))],2)):n("",!0),i("div",Mn,[u.error_msg&&"general"!==u.error_msg?(t(),v(_,{key:0,"error-msg":u.error_msg,class:"item-detail-msg"},null,8,["error-msg"])):(t(),e("p",Ln,f(s.trans("syno_ec.dialog_item_detail_msg_in_stock")),1)),T(m,{modelValue:r.val,"onUpdate:modelValue":o[0]||(o[0]=e=>r.val=e),class:"item-detail__content__quantity syno-ec-content-quantity",min:1,max:u.bundle_item_out_of_stock||u.selected_in_cart_out_of_stock?r.val:u.qtys.max,disabled:0===a.item.stock||0===u.qtys.max,size:12,name:a.item.name},null,8,["modelValue","max","disabled","name"]),i("ul",Nn,[u.is_virtual?(t(),e(x,{key:0},[i("li",qn,f(s.trans("syno_ec.dialog_item_detail_benefit_delivery_virtual")),1),i("li",An,f(s.trans("syno_ec.dialog_item_detail_benefit_activate_virtual")),1)],64)):null!=a.free_shipping_threshold?(t(),e(x,{key:1},[i("li",Dn,f(s.trans(`syno_ec.cart_free_shipping_${u.current_store.website_code}`,{"@threshold@":a.free_shipping_threshold})),1),i("li",Pn,f(s.trans("syno_ec.dialog_item_detail_benefit_delivery")),1),i("li",$n,f(s.trans("syno_ec.dialog_item_detail_benefit_warranty")),1)],64)):(t(),e(x,{key:2},[i("li",Un,f(s.trans("syno_ec.dialog_item_detail_benefit_delivery")),1),i("li",Rn,f(s.trans("syno_ec.dialog_item_detail_benefit_warranty")),1)],64))]),a.item.stock<=0||!1===a.item.buyable||u.bundle_sold_out?(t(),v(p,{key:2,product:a.item,"req-sending":r.req_sending,"selected-bundle-selection-list":u.selected_bundle_selection_list,"selected-in-cart-out-of-stock":u.selected_in_cart_out_of_stock,"bundle-item-out-of-stock":u.bundle_item_out_of_stock,onOnToaster:u.onToaster},null,8,["product","req-sending","selected-bundle-selection-list","selected-in-cart-out-of-stock","bundle-item-out-of-stock","onOnToaster"])):"you-may-also-need"===a.situation?(t(),v(g,{key:3,type:"standard",label:s.trans("syno_ec.btn_add_to_cart"),"req-sending":r.req_sending,"selected-in-cart-out-of-stock":u.selected_in_cart_out_of_stock,"bundle-item-out-of-stock":u.bundle_item_out_of_stock,onOnSubmit:u.onAddToCart,onOnToaster:u.onToaster},null,8,["label","req-sending","selected-in-cart-out-of-stock","bundle-item-out-of-stock","onOnSubmit","onOnToaster"])):"buy-page"===a.situation?(t(),e("div",Fn,[T(g,{type:"outlined",label:s.trans("syno_ec.btn_add_to_cart"),"req-sending":r.req_sending&&"add_to_cart"===r.btn_loading,disabled:r.req_sending&&"buy_now"===r.btn_loading,"selected-in-cart-out-of-stock":u.selected_in_cart_out_of_stock,"bundle-item-out-of-stock":u.bundle_item_out_of_stock,onOnSubmit:u.onAddToCart},null,8,["label","req-sending","disabled","selected-in-cart-out-of-stock","bundle-item-out-of-stock","onOnSubmit"]),T(g,{type:"standard",label:s.trans("syno_ec.btn_buy_now"),"selected-in-cart-out-of-stock":u.selected_in_cart_out_of_stock,"bundle-item-out-of-stock":u.bundle_item_out_of_stock,"req-sending":r.req_sending&&"buy_now"===r.btn_loading,disabled:r.req_sending&&"add_to_cart"===r.btn_loading,onOnSubmit:u.onAddToCartAndGoToCart},null,8,["label","selected-in-cart-out-of-stock","bundle-item-out-of-stock","req-sending","disabled","onOnSubmit"])])):n("",!0),"you-may-als
1o-need"===a.situation?(t(),e("a",{key:5,href:`${u.lang}/store/${a.item.sku}`,class:"navigation-link"},[N(f(s.trans("syno_ec.go_to_purchase_info"))+" ",1),o[2]||(o[2]=i("div",{class:"navigation"},null,-1))],8,Hn)):n("",!0)]),i("ul",{class:b(["item-detail__content__footnote",{"item-detail__content__footnote--you-may-also-need":"you-may-also-need"===a.situation}])},[a.item.note?(t(),e("li",{key:0,innerHTML:a.item.note},null,8,jn)):n("",!0),u.is_virtual?(t(),e(x,{key:1},[i("li",null,f(s.trans("syno_ec.dialog_item_detail_note_non_physical")),1),i("li",{innerHTML:s.trans("syno_ec.dialog_item_detail_note_policy")},null,8,Vn)],64)):(t(),e(x,{key:2},[i("li",null,f(s.trans("syno_ec.dialog_item_detail_note_shipping")),1),i("li",{innerHTML:s.trans("syno_ec.dialog_item_detail_note_policy")},null,8,Wn)],64))],2)])])],64))],2)],2),T(h,{ref:"toaster",isInDialog:"you-may-also-need"===a.situation},null,8,["isInDialog"])])}]]);export{Gn as S,et as T,ot as _,vt as a,Ke as b,tt as c,Ze as i,Ge as s,Ye as v};
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.