1import{u as L,M as K,ay as U,l as W,a9 as H,aY as J,E as Y,aZ as z,a_ as X,aS as G,s as S,aN as j,a$ as M,b0 as y,aM as T,b1 as q,b as Z,j as e,b2 as $,K as u,H as Q,m as V,f as w,b3 as ee,D as te,b4 as ae,b5 as se}from"./main-vender-CM-VP2-iR__IKzB-260610_2157.js";import{r}from"./chunk-vender-CM-VP2-Dcfnv5gk-260610_2157.js";import{SellerInfoFullModall as oe}from"./chunk-vender-CM-VP2-S3lDK1Lx-260610_2157.js";import"./chunk-vender-CM-VP2-C1L4kzod-260610_2157.js";function me({props:t}){L();const[x,n]=r.useState(null),[o,h]=r.useState(!1),[a,c]=r.useState(null),{portallSettings:_,SettingsStore:v,onLoadPortallSettings:F,onBasketChange:O,onExtraChange:R,extra:P,onLoadSettingsStore:B,basket:C}=r.useContext(K);r.useEffect(()=>{A()},[]);const[f,D]=r.useState([]);async function A(){var s=await U("STOR_LAYOUT_STORS");D(s)}r.useEffect(()=>{if(_||W(F),v||H(B),C||J(O),t.hideBasket){var s={...P};s.hideBasket=!0,R(s)}return N(),()=>{}},[]);function b(){try{h(!0);var s=[{"@type":"ListItem",position:1,name:_&&_.PortallSiteName,item:{"@type":"Corporation","@id":window.location.origin+"/#corporation"}}],l=2,i={"@type":"ListItem",position:l,name:a.fname+"|"+a.flatinName};l++,s.push(i);var d={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:s};document.getElementById("ld+json_Store_"+a.id)?.remove();var m=document.getElementsByTagName("head")[0],p=document.createElement("script");p.id="ld+json_Store_"+a.id,p.type="application/ld+json",p.innerHTML=JSON.stringify(d),m.insertBefore(p,m.children[5])}catch{}}const g=Y();z(),r.useEffect(()=>{if(a){var s=document.querySelectorAll('[id^="ld+json_"]').forEach(l=>{l?.remove()});s&&s?.remove(),b(),t.data=null}},[a]);const{pathname:I,search:k}=X();r.useEffect(()=>{N()},[I,k]);function N(){var s=G(window.location.search);s!=="FIXED"&&(s.idstore?(n(s),g(),E(s.idstore)):t.data?(s.idstore=t.data.id,n(s),g(),c(t.data),S(t.data.fctitle?t.data.fctitle:" ÙØ±ÙشگاÙâÙØ§ "+(t.data?" | "+t.data.fname:"")),j(window.location.pathname+window.location.search),M(t.data?.EXTRA?.noIndex),y("article"),T(t.data.fcontent)):window.location.href.includes(window.origin+"/sellers/")?E(void 0,window.location.pathname):(c(null),n(null),S("ÙØ±ÙشگاÙâÙØ§"),j(window.location.pathname+window.location.search),y("article")))}function E(s,l){try{q(s,l).then(i=>{var d=i.data&&i.data.length>0&&i.data[0];if(l&&i.data.id){var m={};m={idstore:parseInt(i.data.id)},n(m),g()}S(d.fctitle?d.fctitle:" ÙØ±ÙشگاÙâÙØ§ "+(a?" | "+a.fname:"")),j(window.location.pathname+window.location.search),y("article"),M(d?.EXTRA?.noIndex),T(d.fdesc),c(d)}).catch(i=>{Z.fire(i)})}catch{}}return e.jsxs(e.Fragment,{children:[a&&a.id>0&&o===!1?b():e.jsx(e.Fragment,{}),e.jsxs($,{pageNameEn:"Store_seller-page",pageNameFa:"ØµÙØÙ ÙØ±Ùشگا٠",typeComponent:"products",valideitor:"",pageWidth:"STORE_PAGE_WIDTH",children:[a?.id&&e.jsx(re,{sellerInfo:a}),a&&a.flayout&&e.jsx("div",{className:" pb-2 mx-2 ",children:a.flayout&&e.jsx(u,{Muduls_type:"StoreLayoutEngin",Muduls_props:{layoutKey:"Store_seller-page_4_"+a?.id,data:a.flayout,from:0,to:3}})}),x&&a?e.jsx(u,{Muduls_type:"Products",Muduls_props:{layoutKey:"Store_seller-page"+a?.id,props_filters:x,fromstores:!0,hideAtribiuteFilter:a?.id&&v?.STORE_FILTER_SIDE_ATTRIB_NO_ROOT_STORE}}):e.jsx(e.Fragment,{}),a&&a.flayout&&e.jsx("div",{className:" pb-2 mx-2 ",children:a.flayout&&e.jsx(u,{Muduls_type:"StoreLayoutEngin",Muduls_props:{layoutKey:"Store_seller-page_3_"+a?.id,data:a.flayout,from:3}})}),e.jsxs("div",{className:" ",children:[e.jsx("div",{className:" pb-2 mx-lg-2 ",children:f?.length?e.jsxs(e.Fragment,{children:[" ",a?e.jsx(u,{Muduls_type:"StoreLayoutEngin",Muduls_props:{layoutKey:"Store_seller-page_2_",data:f,from:0,to:1}}):e.jsx(u,{Muduls_type:"StoreLayoutEngin",Muduls_props:{layoutKey:"Store_seller-page_1_",data:f}})]}):e.jsx(e.Fragment,{})})," "]})]})]})}function re({sellerInfo:t}){const[x,n]=r.useState(!1),[o,h]=r.useState(null),[a]=L();if(r.useEffect(()=>{if(!t)return;const c={...t,storeImages:t.storeImages||t.fimages,storeName:t.storeName||t.fname,storeis_trusted:t.storeis_trusted||t.is_trusted,store_Inserttime:t.store_Inserttime||t.finserttime,storeis_new:t.storeis_new||t.is_new,storeRate:t.storeRate||t.frate,store_on_no_return:t.store_on_no_return||t.on_no_return,store_on_commitment:t.store_on_commitment||t.on_commitment,store_on_time_shipping:t.store_on_time_shipping||t.on_time_shipping};h(c)},[t]),o)return e.jsxs("div",{className:(a>1020?" border-info border ":" ")+" my-3 mb-5-lg mx-2 mx-md-4 r-20 p-2 p-md-4 m-md-3 text-start",children:[e.jsx(Q,{onClose:()=>n(!1),showModal:!0,title:"Ø§Ø·ÙØ§Ø¹Ø§Øª تکÙ
ÛÙÛ ÙØ±ÙØ´ÙØ¯Ù",size:"medium",show:x,children:e.jsx(oe,{props:o})}),e.jsxs("div",{className:" flex-b flex-wrap ",children:[e.jsxs("div",{className:" d-flex ai-center ",children:[e.jsx("div",{className:" border-l ms-4 pe-2 border-info ",children:e.jsxs("div",{className:" relative",children:[o?.storeImages?e.jsx(V,{className:" d-inline-block lazyloaded mix-b-m ",width:"56",height:"56",alt:o?.storeName,style:{objectFit:"contain"},src:o?.storeImages,mw:"w_100"}):e.jsx(w,{style:{width:"32px",height:"32px",fill:"var(--color-neutral-600)",mixBlendMode:"multiply"},hastag:"seller"}),o?.storeis_trusted?e.jsx(w,{style:{width:"16px",height:"16px",fill:"var(--color-icon-rating-4-5)",position:"absolute",left:"-5px",borderRadius:"50%",boxShadow:"0 0 5px 2px rgb(0 0 0 / 21%), 0 4px 8px rgb(0 0 0 / 6%)",backgroundColor:"var(--color-neutral-000)",bottom:"-3px"},hastag:"verifiedUser"}):e.jsx(e.Fragment,{})]})}),e.jsxs("div",{className:"d-flex flex-column ms-2 ",children:[e.jsx("h1",{className:"color-900 fs-5",children:o?.storeName}),e.jsx("h2",{className:"fs-7 m-0 p-0 number color-500",children:ee(new Date).diff(o?.store_Inserttime,"days")<30||o?.storeis_new?e.jsx("span",{className:" mx-1",children:" ÙØ±ÙØ´Ú¯Ø§Ù Ø¬Ø¯ÛØ¯"}):e.jsxs(e.Fragment,{children:[e.jsx(te,{dateTime:o?.store_Inserttime,label:" عض٠از",simple:!0})," "]})})]})]}),e.jsx("div",{className:" w-lg-auto ms-lg-auto",children:e.jsxs("div",{className:"d-flex mt-5 mt-md-0",children:[e.jsxs("div",{className:"no-wrap d-flex flex-column bg-000 ai-center jc-center w-lg-auto px-5 SellerOption",children:[e.jsx("div",{children:e.jsx("p",{className:"fs-3",children:ae(o?.storeRate)})}),e.jsx("p",{className:"color-500 text-body1-strong no-wrap",children:"Ø±Ø¶Ø§ÛØª از Ú©Ø§ÙØ§Ùا"})]}),e.jsxs("div",{className:" no-wrap d-flex flex-column bg-000 ai-center jc-center w-lg-auto px-5 SellerOption",children:[e.jsx("div",{children:e.jsx("p",{className:"fs-3",children:se(o.store_on_no_return,o.store_on_commitment,o.store_on_time_shipping)})}),e.jsx("p",{className:"color-500 text-body1-strong no-wrap",children:"عÙ
Ùکرد ÙØ±ÙØ´ÙØ¯Ù"})]}),e.jsxs("div",{onClick:()=>{n(!0)},className:"no-wrap d-flex flex-column bg-000 ai-center jc-center w-lg-auto px-5 SellerOption d-none d-lg-flex hand",children:[e.jsx("div",{className:"d-flex mb-1",children:e.jsx(w,{hastag:"infoOutline",style:{width:"24px",height:"24px",fill:"var(--color-icon-low-emphasis)"}})}),e.jsx("div",{}),e.jsx("p",{className:"color-500 text-body1-strong no-wrap",children:"Ø¬Ø²Ø¦ÛØ§Øª Ø¨ÛØ´ØªØ±"})]})]})})]})]})}export{me 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.