PageSourceSearch

https://mahsulatfatemi.ir/client.themeB.components-slideshow-Slideshow.40af056c1c50ae6f4c2c.bundle.js

js mahsulatfatemi.ir collected 2026-10-09 17:13:25 UTC 9,954 bytes, 1 lines download raw bytes

1"use strict";(globalThis.__SAZITO_LOADABLE_CHUNKS___themeB_bbc434f1c17040aa50e694fc0e524098=globalThis.__SAZITO_LOADABLE_CHUNKS___themeB_bbc434f1c17040aa50e694fc0e524098||[]).push([[587],{70646(t,e,i){var s=i(96540);function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)({}).hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},l.apply(null,arguments)}const _=(t=[],e=0)=>{let i=t?.[e]?e:void 0;return void 0!==i?t[i]:(i=e-t.length,i>=0&&_(t,i))},n=(t,e)=>{class i extends s.Component{render(){const{componentIndex:i=0}=this.props,n=Array.isArray(e)?e:[e],o=_(n,i);return s.createElement(t,l({},o,this.props))}}return i};i.d(e,["A",0,n])},97939(t,e,i){i.r(e),i.d(e,{default:()=>L});var s=i(96540),l=i(5556),_=i.n(l),n=i(4589);const o={slideshow:"styles__slideshow___rTWNg",slide:"styles__slide___KLbEt",arrow:"styles__arrow___UbQVz","arrow-right":"styles__arrow-right___Q1_aY styles__arrow___UbQVz",arrowRight:"styles__arrow-right___Q1_aY styles__arrow___UbQVz","arrow-left":"styles__arrow-left___XoHPl styles__arrow___UbQVz",arrowLeft:"styles__arrow-left___XoHPl styles__arrow___UbQVz","slide-link":"styles__slide-link___gdugA",slideLink:"styles__slide-link___gdugA",info:"styles__info___IASsX","info-right":"styles__info-right___sayDZ styles__info___IASsX",infoRight:"styles__info-right___sayDZ styles__info___IASsX","info-center":"styles__info-center___F2UO_ styles__info___IASsX",infoCenter:"styles__info-center___F2UO_ styles__info___IASsX","info-left":"styles__info-left___FuvRJ styles__info___IASsX",infoLeft:"styles__info-left___FuvRJ styles__info___IASsX","slide-sub-title":"styles__slide-sub-title___uVlb9",slideSubTitle:"styles__slide-sub-title___uVlb9","slide-title":"styles__slide-title___d09jT",slideTitle:"styles__slide-title___d09jT","slide-title-center":"styles__slide-title-center___DHydm",slideTitleCenter:"styles__slide-title-center___DHydm","slide-button":"styles__slide-button___LW9Ml",slideButton:"styles__slide-button___LW9Ml","sub-title-light":"styles__sub-title-light___lSVgg styles__slide-sub-title___uVlb9",subTitleLight:"styles__sub-title-light___lSVgg styles__slide-sub-title___uVlb9","sub-title-dark":"styles__sub-title-dark___sVsEa styles__slide-sub-title___uVlb9",subTitleDark:"styles__sub-title-dark___sVsEa styles__slide-sub-title___uVlb9","title-light":"styles__title-light___wfbh8",titleLight:"styles__title-light___wfbh8","title-dark":"styles__title-dark___VR76H",titleDark:"styles__title-dark___VR76H","button-light":"styles__button-light___Zvnnr",buttonLight:"styles__button-light___Zvnnr","button-dark":"styles__button-dark___wvGwO",buttonDark:"styles__button-dark___wvGwO",topLeft:"styles__topLeft___wE9XQ",topCenter:"styles__topCenter___FllrN",topRight:"styles__topRight___A0qZM",centerLeft:"styles__centerLeft___H0oSd",centerCenter:"styles__centerCenter___QaVUj",centerRight:"styles__centerRight___TpFwW",bottomLeft:"styles__bottomLeft___qNL__",bottomCenter:"styles__bottomCenter___pB_p6",bottomRight:"styles__bottomRight___tEc_z",fixed:"styles__fixed___XRoKf",smallHeight:"styles__smallHeight___EMzr8",mediumHeight:"styles__mediumHeight___lb69d",largeHeight:"styles__largeHeight___cNyrD",fullHeight:"styles__fullHeight___fl6q8",full:"styles__full___gLgYK","margin-bottom":"styles__margin-bottom___g_M7D",marginBottom:"styles__margin-bottom___g_M7D","slick-arrow":"styles__slick-arrow___UFbDQ",slickArrow:"styles__slick-arrow___UFbDQ","slick-hidden":"styles__slick-hidden___Cfu1C",slickHidden:"styles__slick-hidden___Cfu1C"};var r=i(97385);const a=t=>({"top-left":t.topLeft,"top-center":t.topCenter,"top-right":t.topRight,"center-left":t.centerLeft,"center-center":t.centerCenter,"center-right":t.centerRight,"bottom-left":t.bottomLeft,"bottom-center":t.bottomCenter,"bottom-right":t.bottomRight}),d=t=>({small:t.smallHeight,medium:t.mediumHeight,large:t.largeHeight,full:t.fullHeight});var c=i(72079);const h=({children:t,className:e,linkUrl:i,isActive:l=!0})=>i?s.createElement("a",{href:i,className:e,tabIndex:l?0:-1},t):s.createElement("div",{className:e},t);function g(){return g=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)({}).hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},g.apply(null,arguments)}class u extends s.Component{render(){const{src:t,textDirection:e,color:i,buttonColor:l,caption:_,header:n,linkUrl:r,linkText:d,activeSlide:u,isDefault:p,position:y,index:m,aspectRatio:f,...b}=this.props,w="undefind"==this.props.index?0:this.props.index,T=u==w,v=(0,c.W2)(t,this.context),C=p?v:(0,
1c.iQ)(v),k=p?void 0:(0,c.sN)(v);return s.createElement("div",b,s.createElement(h,{linkUrl:r,className:o.slideLink,isActive:T},s.createElement("div",{className:[o[`info-${e}`],u==w?o.activedInfo:""].join(" ")},_&&s.createElement("span",{className:[o.slideSubTitle,o[`sub-title-${i}`]].join(" ")},_),n&&s.createElement("h4",{className:[o.slideTitle,o[`title-${i}`],"center"==e?o.slideTitleCenter:""].join(" ")},n),d&&s.createElement("div",{className:[o.slideButton,o[`button-${l}`]].join(" ")},d)),s.createElement("img",g({className:[o.slide,a(o)[y]].join(" ")},f&&{style:{aspectRatio:f}},{src:C,alt:n||`slide-image-${m}`,srcSet:k,sizes:p?void 0:"100vw",loading:0===m?"eager":"lazy",decoding:0===m?"sync":"async",fetchpriority:0===m?"high":void 0}))))}}u.propTypes={src:_().string,textDirection:_().string,color:_().string,buttonColor:_().string},u.contextType=r.p;const p=u;var y=i(75346);class m extends s.Component{constructor(t){super(t)}render(){const{direction:t,onClick:e}=this.props,i="right"===t?"اسلاید بعدی":"اسلاید قبلی";return s.createElement("button",{onClick:e,"aria-label":i,type:"button",className:[o[`arrow-${t}`],y.A[`icon-arrow-${t}`]].join(" ")})}}m.propTypes={direction:_().string,onClick:_().func};const f=m;var b=i(69843),w=i.n(b),T=i(310);const v=i.p+"98efec9df7d7c171848a.jpg",C=i.p+"85d3af5f9b6b32f7c448.jpg",k={type:"fixed",slides:[{url:v,linkUrl:"",preview:v,linkTitle:"",imageTitle:"پرفروش‌ترین لوازم آرایش صورت",imageCaption:"ابزار خوب، آرایش خوب",slideTextColor:"light",slideButtonColor:"light",slideTextDirection:"left",isDefault:!0},{url:C,linkUrl:"",preview:C,linkTitle:"مشاهده و خرید",imageTitle:"مجموعه‌ای بی انتها از محصولات آرایشی و بهداشتی",imageCaption:"تنوع بی‌تکرار",slideTextColor:"light",slideButtonColor:"light",slideTextDirection:"left",isDefault:!0}]};var S=i(70646);class A extends s.Component{constructor(t){super(t),this.rightArrow=s.createElement(f,{direction:"right"}),this.leftArrow=s.createElement(f,{direction:"left"}),this.beforeSlideChange=this.beforeSlideChange.bind(this);const{slideshowAdaptiveHeight:e,autoplay:i,autoplaySpeed:l,type:_,noBottomMargin:n,rootClassNames:r}=t,a={adaptiveHeight:!!e,lazyLoad:!1,dots:!1,infinite:!0,speed:500,fade:!0,slidesToShow:1,slidesToScroll:1,autoplay:!!i,rtl:!1,autoplaySpeed:l,draggable:!1,pauseOnHover:!0,arrows:!1,className:[o.slideshow,o[_],n?"":o.marginBottom,r].join(" "),nextArrow:this.rightArrow,prevArrow:this.leftArrow,afterChange:t=>{this.setState({activeSlide:t})}};this.state={slidesToShow:1,settings:a,activeSlide:0}}beforeSlideChange(){const{slides:t,autoplay:e}=this.props;this.setState({slidesToShow:t?.length,settings:{...this.state.settings,infinite:!0,arrows:t?.length>1,autoplay:t?.length>1&&!!e}})}UNSAFE_componentWillMount(){this.setState({slidesToShow:1})}componentDidMount(){this.beforeSlideChange()}render(){const{slides:t,slideshowHeight:e,slideshowAdaptiveHeight:i,autoplay:l,autoplaySpeed:_,type:r,noBottomMargin:a,rootClassNames:c}=this.props,h=t?.length>1,g={...this.state.settings,adaptiveHeight:!!i,autoplay:h&&!!l,autoplaySpeed:_,arrows:h,className:[o.slideshow,o[r],a?"":o.marginBottom,c].join(" ")};return s.createElement(n.A,g,!w()(t)&&t.slice(0,this.state.slidesToShow).map((t,i)=>s.createElement(p,{key:i,index:i,className:e&&d(o)[e],aspectRatio:t?.width&&`${t?.width} / ${t?.height}`,src:encodeURI(t.url)||"",textDirection:t.slideTextDirection||"right",color:t.slideTextColor||"light",buttonColor:t.slideButtonColor||"light",caption:t.imageCaption,header:t.imageTitle,linkUrl:t.linkUrl,position:t.position,linkText:t.linkTitle,activeSlide:this.state.activeSlide,isDefault:t.isDefault})))}}A.propTypes={type:_().string};const H=(0,T.A)(A),L=(0,S.A)(H,k)},310(t,e,i){var s=i(96540);function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)({}).hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},l.apply(null,arguments)}const _=t=>{class e extends s.Component{constructor(t){super(t);const e=globalThis.window||{};
1this.state={innerHeight:e.innerHeight,innerWidth:e.innerWidth},this.changeToSize=()=>{const t=globalThis.window;!this.lockWindowChange&&t&&(Math.abs(this.state.innerWidth-t.innerWidth)>50||Math.abs(this.state.innerHeight,t.innerHeight))},this.lockWindowChange=!1,this.resizeTimeout=null,this.windowListener=this.changeToSize}componentDidMount(){const t=globalThis.window;t&&(this.resizeTimeout=setTimeout(()=>{this.changeToSize(),t.addEventListener("resize",this.windowListener),this.resizeTimeout=null},50))}componentWillUnmount(){this.lockWindowChange=!0,this.resizeTimeout&&clearTimeout(this.resizeTimeout),globalThis.window?.removeEventListener("resize",this.windowListener)}render(){const{componentProps:e,entity_route:i,categories:_}=this.props,n="product_category"===i||i&&"product_category"==i.entity_name,o="product"===i||i&&"product"==i.entity_name;let r;if(!n&&!o&&e&&e.entities&&e.entities.product_categories&&1===e.entities.product_categories.length){const t=e.entities.product_categories[0],i=_.find(e=>e.id===t);r=i&&i.url}return s.createElement(t,l({windowInnerHeight:this.state.innerHeight,windowInnerWidth:this.state.innerWidth,titleUrl:r},this.props))}}return e};i.d(e,["A",0,_])}}]);

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.