1import{G as B,z as S,as as l,ak as c,al as t,ax as o,I as e,ao as u,aF as N,ag as E,aw as H,ah as V,T as A,aB as q,r as p,w as F,e as b}from"./BA2cZanY.js";import{u as P}from"./DC1xVCuc.js";import{s as R,u as W,a as $,j as z}from"./BI5BN1rn.js";import{u as D}from"./CQ1Dx6mK.js";import"./BcA_P1LO.js";import"./DyfadX0W.js";import"./oiGUARBV.js";import"./B9kTkY8x.js";import"./-zH4zj69.js";const G={class:"col-md-3 product-order-merchantdetails hidden-print"},O={class:"js-product-merchanttitle product-merchant-title"},J={class:"merchant-detail-wrap"},K={class:"js-product-merchantname product-merchant-detail"},Q=["href"],U=["aria-label"],X=["href"],Y=["aria-label"],Z={class:"product-merchant-detail"},ee={class:"js-product-merchantcompanyidtitle"},te={class:"js-product-merchantcompanyid"},se={key:0,class:"modal terms-modal show block",id:"termsModal",role:"dialog","aria-modal":"true"},ae={class:"modal-dialog modal-lg"},oe={class:"modal-content"},ne={class:"modal-body"},re=["innerHTML"],le={class:"modal-footer"},ie=B({__name:"Merchantdetails",props:{shopId:{type:String,required:!0}},setup(k){const{$store:w,$translate:n}=S(),{onInternalHtmlLinkClick:h}=P(),{isWidget:f}=R(w),_=k,{companyName:T,companyId:C,shopEmail:d,shopPhone:m}=W(_.shopId),v=p(""),r=p(!1),j=async()=>{const{message:s}=D("deliveryTerms",_.shopId);F(s,()=>{s.value?(v.value=s.value.text,r.value=!0):r.value=!1})},y=b(()=>{if(!f.value)return"body";const s=document.getElementById("johkuwidget-modal-container");if(!s)return"body";const a=s.shadowRoot?.querySelector("#johku-widget");return a||"body"}),I=()=>{r.value=!1},i=p(!1),g=()=>{if(!f.value)return;const s=y.value;s?.classList&&(r.value||i.value?s.classList.add("modal-open"):s.classList.remove("modal-open"))},M=()=>{i.value=!0,g()},x=()=>{i.value=!1,g()};return $({bodyAttrs:{class:b(()=>r.value||i.value?"modal-open":"")}}),(s,a)=>(l(),c("div",G,[t("h3",O,o(e(n)("Merchant")),1),t("div",J,[t("span",K,o(e(T)),1),e(d)?(l(),c("a",{key:0,class:"js-product-merchantemail product-merchant-detail",href:"mailto:"+e(d)},[t("i",{class:"fa fa-fw fa-circle-envelope",role:"img","aria-label":e(n)("Email")},null,8,U),t("span",null,o(e(d)),1)],8,Q)):u("",!0),e(m)?(l(),c("a",{key:1,class:"js-product-merchantphone product-merchant-detail",href:"tel:"+e(m)},[t("i",{class:"fa fa-fw fa-circle-phone",role:"img","aria-label":e(n)("Phone")},null,8,Y),t("span",null,o(e(m)),1)],8,X)):u("",!0),t("span",Z,[a[1]||(a[1]=t("i",{class:"fa fa-fw fa-circle-y",role:"decorative"},null,-1)),t("span",ee,o(e(n)("Company id:")),1),a[2]||(a[2]=N()),t("span",te,o(e(C)),1)])]),t("a",{class:"btn btn-default",href:"javascript:;",onClick:j},o(e(n)("Merchant terms")),1),(l(),E(q,{to:e(y)},[H(A,{name:"terms-modal",duration:{enter:340,leave:300},onBeforeEnter:M,onAfterLeave:x},{default:V(()=>[e(r)?(l(),c("div",se,[t("div",ae,[t("div",oe,[t("div",ne,[t("div",{innerHTML:e(v),onClickCapture:a[0]||(a[0]=(...L)=>e(h)&&e(h)(...L))},null,40,re)]),t("div",le,[t("button",{type:"button",class:"btn btn-default",onClick:I},o(e(n)("Close")),1)])])])])):u("",!0)]),_:1})],8,["to"]))]))}}),ye=z(ie,[["__scopeId","data-v-3928ea51"]]);export{ye 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.