pb-sxp-ui 1.0.79 → 1.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +342 -105
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +93 -0
- package/dist/index.js +343 -106
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +342 -105
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/Pagebuilder/type.d.ts +7 -0
- package/es/core/components/Consent/index.d.ts +13 -0
- package/es/core/components/Consent/index.js +60 -0
- package/es/core/components/SxpPageCore/index.js +2 -2
- package/es/core/components/SxpPageRender/Tagbar.js +15 -1
- package/es/core/components/SxpPageRender/WaterFall/List.d.ts +1 -1
- package/es/core/components/SxpPageRender/WaterFall/List.js +15 -9
- package/es/core/components/SxpPageRender/WaterFall/WaterfallList.d.ts +1 -1
- package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +18 -12
- package/es/core/components/SxpPageRender/WaterFall/index.js +7 -2
- package/es/core/components/SxpPageRender/index.d.ts +2 -1
- package/es/core/components/SxpPageRender/index.js +29 -32
- package/es/core/components/SxpPageRender/typing.d.ts +1 -0
- package/es/core/context/EditorDataProvider.d.ts +9 -0
- package/es/core/context/EditorDataProvider.js +13 -3
- package/es/core/context/SxpDataSourceProvider.d.ts +10 -0
- package/es/core/context/SxpDataSourceProvider.js +58 -18
- package/es/core/hooks/useEventReport.d.ts +1 -0
- package/es/core/hooks/useEventReport.js +13 -1
- package/es/core/utils/localStore.d.ts +1 -0
- package/es/core/utils/localStore.js +1 -0
- package/es/materials/sxp/Consent/index.d.ts +12 -0
- package/es/materials/sxp/Consent/index.js +5 -0
- package/es/materials/sxp/Consent/material.d.ts +2 -0
- package/es/materials/sxp/Consent/material.js +20 -0
- package/es/materials/sxp/Consent/settingRender.d.ts +31 -0
- package/es/materials/sxp/Consent/settingRender.js +39 -0
- package/es/materials/sxp/HashTag/index.d.ts +1 -1
- package/es/materials/sxp/HashTag/settingRender.d.ts +9 -0
- package/es/materials/sxp/HashTag/settingRender.js +2 -1
- package/es/materials/sxp/index.d.ts +1 -0
- package/es/materials/sxp/index.js +1 -0
- package/lib/core/Pagebuilder/type.d.ts +7 -0
- package/lib/core/components/Consent/index.d.ts +13 -0
- package/lib/core/components/Consent/index.js +63 -0
- package/lib/core/components/SxpPageCore/index.js +2 -2
- package/lib/core/components/SxpPageRender/Tagbar.js +15 -1
- package/lib/core/components/SxpPageRender/WaterFall/List.d.ts +1 -1
- package/lib/core/components/SxpPageRender/WaterFall/List.js +15 -9
- package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.d.ts +1 -1
- package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +18 -12
- package/lib/core/components/SxpPageRender/WaterFall/index.js +7 -2
- package/lib/core/components/SxpPageRender/index.d.ts +2 -1
- package/lib/core/components/SxpPageRender/index.js +29 -32
- package/lib/core/components/SxpPageRender/typing.d.ts +1 -0
- package/lib/core/context/EditorDataProvider.d.ts +9 -0
- package/lib/core/context/EditorDataProvider.js +13 -3
- package/lib/core/context/SxpDataSourceProvider.d.ts +10 -0
- package/lib/core/context/SxpDataSourceProvider.js +57 -17
- package/lib/core/hooks/useEventReport.d.ts +1 -0
- package/lib/core/hooks/useEventReport.js +13 -1
- package/lib/core/utils/localStore.d.ts +1 -0
- package/lib/core/utils/localStore.js +2 -1
- package/lib/materials/sxp/Consent/index.d.ts +12 -0
- package/lib/materials/sxp/Consent/index.js +8 -0
- package/lib/materials/sxp/Consent/material.d.ts +2 -0
- package/lib/materials/sxp/Consent/material.js +24 -0
- package/lib/materials/sxp/Consent/settingRender.d.ts +31 -0
- package/lib/materials/sxp/Consent/settingRender.js +41 -0
- package/lib/materials/sxp/HashTag/index.d.ts +1 -1
- package/lib/materials/sxp/HashTag/settingRender.d.ts +9 -0
- package/lib/materials/sxp/HashTag/settingRender.js +2 -1
- package/lib/materials/sxp/index.d.ts +1 -0
- package/lib/materials/sxp/index.js +1 -0
- package/package.json +1 -1
package/dist/index.min.cjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var be=require("lodash"),mn=require("uuid"),hn=require("pako"),l=require("react"),mi=require("qs"),gn=require("eventemitter3"),te=require("@emotion/css"),bn=require("@ant-design/pro-components"),yn=require("react-dom");function wn(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var hi=wn(yn);function xe(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]]);return i}function _e(t,e,i,n){function o(s){return s instanceof i?s:new i(function(r){r(s)})}return new(i||(i=Promise))(function(s,r){function a(c){try{u(n.next(c))}catch(v){r(v)}}function d(c){try{u(n.throw(c))}catch(v){r(v)}}function u(c){c.done?s(c.value):o(c.value).then(a,d)}u((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const Sn=/:\w+/g;var gi=(t,e)=>_e(void 0,void 0,void 0,function*(){const i={},n={};for(let o=0;o<e?.length;o++){const{id:s,method:r,url:a,urlParams:d,name:u,queryString:c,headers:v,body:g}=e[o];let y=a;d&&Object.entries(d).forEach(([h,b])=>{y=y.replace(Sn,C=>C===h?b:C)}),c&&(y+=c),n[s]=u;try{const h=yield fetch(y,{method:r,headers:Object.assign({"Content-Type":"application/json"},v),body:JSON.stringify(g)}).then(b=>b.json());i[s]=h}catch(h){console.error("DataSource request error: ",h),i[s]={}}}return{$store:i,idMapName:n}});const bi="SXP_TOKEN_INFO",Tn=(t,e)=>_e(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),o=t.getAppId(),s=t.getApiUrl(),r=window.localStorage.getItem(bi);let a=JSON.parse(r||"{}");if(Date.now()>((i=a?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${s}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":o||""}}).then(c=>c.json());if(u.success){const c=u.data;a=Object.assign(Object.assign({},c),{expireTime:Date.now()+c.expire*1e3}),window.localStorage.setItem(bi,JSON.stringify(a))}}return a});function gt(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let o;if(e=e||i.length,t)for(o=0;o<t;o++)n[o]=i[0|Math.random()*e];else{let s;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",o=0;o<36;o++)n[o]||(s=0|Math.random()*16,n[o]=i[o===19?s&3|8:s])}return n.join("")}const xn=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let o=0;for(;o<t;)e+=i.charAt(Math.floor(Math.random()*n)),o+=1;return e},En=()=>{const t=mn.v4();return t?.replaceAll?t.replaceAll("-",""):xn(32)};function yi(t){const i=atob(t).split("").map(function(s){return s.charCodeAt(0)}),n=new Uint8Array(i),o=hn.inflate(n,{to:"string"});return JSON.parse(o)}let Ot=null;const Cn={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class In{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,Ot)return Ot;Ot=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?Cn[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Ee=null;const _n={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{Ee||(Ee=new In),n&&Ee.setApiUrl(n),Ee.setAppId(t),Ee.setTenantId(e),Ee.setEnv(i)},getDetail:t=>{if(!Ee)return;const e=Ee.getTenantId(),i=Ee.getAppId(),n=Ee.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>_e(void 0,void 0,void 0,function*(){var s,r;const a=yield o.json(),d=yi((s=a?.data)===null||s===void 0?void 0:s.data);if(d){const{$store:u}=yield gi(n,(r=d?.dataSource)!==null&&r!==void 0?r:[]);a.data.data=d,Object.assign(a.data.data,{__STORE__:u})}return a}))},getSxpDetailByPageId:t=>_e(void 0,void 0,void 0,function*(){if(!Ee)return;const e=Ee.getTenantId(),i=Ee.getAppId(),n=Ee.getApiUrl();return fetch(`${n}/storefront/v1/page?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(o=>_e(void 0,void 0,void 0,function*(){var s;const r=yield o.json();if(!r.success)return;const a=yi((s=r?.data)===null||s===void 0?void 0:s.data);return r.data.data=a,r.data}))}),getSxpRecommendVideoData:t=>_e(void 0,void 0,void 0,function*(){if(!Ee)return;const e=yield Tn(Ee,t),i=gt(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");be.isEmpty(n)&&(n=gt(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const o=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(s=>s.json());return o?.data||null})};function $e(){return l.useContext(Di)}function kn(){return l.useContext(ki)}const Mt="feRealSessionIdKey",wi=()=>{const t=En();return`${Date.now()}${t}`},Dn=()=>{let t=Pn();return t||(t=wi(),window.sessionStorage.setItem(Mt,t)),t},An=()=>{const t=wi();window.sessionStorage.setItem(Mt,t)},Pn=()=>window.sessionStorage.getItem(Mt),Si="SXP_FAKE_USER_ID",Ti="FAKE_USER_STATE",xi=()=>{let t=window.localStorage.getItem(Si);return be.isEmpty(t)&&(t=gt(36,62),window.localStorage.setItem(Si,t)),t},On=()=>{const t=window.localStorage.getItem(Ti);return be.isEmpty(t)&&window.localStorage.setItem(Ti,"true"),be.isEmpty(t)};function Le(t,e){const{appDomain:i}=ue();return l.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const We=new gn;var Re;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})(Re||(Re={}));const Ei=l.createContext({rtcList:[],tagList:[]});var Lt;(function(t){t[t.BFF=5]="BFF"})(Lt||(Lt={}));const Ci=["utm_source","utm_medium","utm_campaign","utm_id","utm_content","cl_source"],Mn=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:o,defaultSize:s,isPreview:r=!1,sxpParameter:a,appDomain:d,hashTagSize:u,loadingImage:c,isOpenHashTag:v=!1,enabledMetaConversionApi:g=!1,isShowTag:y=!0})=>{const[h,b]=l.useState([]),[C,p]=l.useState([]),[w,f]=l.useState(!1),[x,k]=l.useState({rtc:"",requestId:""}),m=l.useRef(null),L=l.useRef(!1),[_,T]=l.useState(),[E,A]=l.useState(),[S,I]=l.useState(v),[P,N]=l.useState([]),[U,G]=l.useState(0),[B,j]=l.useState(!1),[z,O]=l.useState(null),D=l.useRef();l.useEffect(()=>{const R=H=>{D.current=H};return We.on(Re.CHANGE_THEME_TAG,R),()=>{We.off(Re.CHANGE_THEME_TAG,R)}},[]),l.useEffect(()=>{I(v)},[v]);const $=l.useMemo(()=>e?.find(R=>R.type===Lt.BFF),[e]),V=l.useCallback((R,H)=>{if(!$)return;const Y=$.url,X=xi();if(H?.query){const ve=mi.stringify(H.query);R=`${R}?${ve}`}return H.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${Y}/api/v1${R}`,new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({},$.headers),{"x-user-id":X}),H.body))],{type:"application/json;charset=UTF-8"})):window.fetch(`${Y}/api/v1${R}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":X},$.headers),method:H.method,body:JSON.stringify(H.body)}).then(ve=>ve.json()).catch(ve=>Promise.reject(ve))},[$]),F=l.useCallback(R=>_e(void 0,void 0,void 0,function*(){var H,Y,X,ve,me;if(R={maxSize:(H=R?.maxSize)!==null&&H!==void 0?H:o,defaultSize:(Y=R?.defaultSize)!==null&&Y!==void 0?Y:s,"itemFilter.itemId":R?.["itemFilter.itemId"],"itemFilter.itemType":R?.["itemFilter.itemType"],hashTag:R?.hashTag,traceInfo:R?.traceInfo,themeTag:R?.themeTag},i){const ye=(me=(ve=(X=i?.split("&"))===null||X===void 0?void 0:X.filter(we=>{const Ge=we.split("=")[0];return Ci.includes(Ge)}))===null||ve===void 0?void 0:ve.join("&"))!==null&&me!==void 0?me:"";R=Object.assign(Object.assign({},R),{channel:decodeURIComponent(ye)})}const pe=yield V?.("/recommend/list",{method:"GET",query:R});if(pe?.success)return R?.hashTag||k({rtc:pe.data.rtc,requestId:pe.data.requestId}),pe?.data}),[V,i,o,s]),ee=l.useCallback(()=>_e(void 0,void 0,void 0,function*(){var R,H;if(h.length<=0)return;const Y=yield F({hashTag:E?.hashTag,"itemFilter.itemId":E?.itemId,"itemFilter.itemType":E?.itemType,themeTag:D.current});b(h.concat((R=Y?.recList)!==null&&R!==void 0?R:[])),N(P.concat((H=Y?.recList)!==null&&H!==void 0?H:[]))}),[F,h,E,P]),Q=l.useCallback(({userInfo:R,eventInfo:H})=>{if(!n)return;R||(R={});const Y=Dn(),X=Object.assign({sessionID:Y,rtc:x.rtc,requestId:x.requestId},H),ve=Object.entries(R).map(([pe,ye])=>({name:pe,value:ye})),me=Object.entries(X).map(([pe,ye])=>ye&&{name:pe,value:ye}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",R),console.log("eventInfo:",X),console.log("========= \u7ED3\u675F ========="),V?.("/event/report",{method:"POST",body:{userInfo:ve,eventInfo:me},type:"beacon"})},[V,x,n]),ie=l.useCallback(R=>{var H,{eventName:Y,actionSource:X="website",eventSourceUrl:ve=(H=window?.location)===null||H===void 0?void 0:H.href,externalId:me}=R;if(!n||!g)return;const pe=xi();return V?.("/fb/events",{method:"POST",body:{eventName:Y,actionSource:X,eventSourceUrl:ve,userData:{externalId:pe}},type:"beacon"})},[V,n,g]),se=l.useCallback(R=>_e(void 0,void 0,void 0,function*(){const H=yield V?.("/recommend/like",{method:"POST",body:R});return H?.success}),[V]),W=l.useCallback(R=>_e(void 0,void 0,void 0,function*(){const H=yield V?.("/recommend/unlike",{method:"POST",body:R});return H?.success}),[V]),re=l.useCallback(R=>_e(void 0,void 0,void 0,function*(){const H=yield V?.("/customform",{method:"POST",body:R});return H?.success}),[V]),J=l.useCallback(()=>_e(void 0,void 0,void 0,function*(){var R,H,Y,X,ve;if(!(!i||!y))try{const me=(Y=(H=(R=i?.split("&"))===null||R===void 0?void 0:R.filter(ye=>{const we=ye.split("=")[0];return Ci.includes(we)}))===null||H===void 0?void 0:H.join("&"))!==null&&Y!==void 0?Y:"",pe=yield V?.("/tag/list",{method:"GET",query:{channel:decodeURIComponent(me)}});p((ve=(X=pe?.data)===null||X===void 0?void 0:X.tags)!==null&&ve!==void 0?ve:[])}catch(me){console.log("e",me)}}),[V,i,y]),Z=l.useCallback((R,H,Y,X)=>{var ve,me,pe,ye,we,Ge,Be,ct,it,nt,ut,ot;const De=Y?.bindCta,lt=((ve=H?.video)===null||ve===void 0?void 0:ve.bindProduct)||((me=H?.video)===null||me===void 0?void 0:me.bindProducts)&&((ye=(pe=H?.video)===null||pe===void 0?void 0:pe.bindProducts)===null||ye===void 0?void 0:ye.length)>0;let st="";B?st="hashTagPage":!((we=H?.video)===null||we===void 0)&&we.url?st="videoPage":!((Be=(Ge=H?.video)===null||Ge===void 0?void 0:Ge.imgUrls)===null||Be===void 0)&&Be.length&&(st="imagePage"),Q?.({eventInfo:Object.assign(Object.assign({},R),{ctaId:(ct=De?.itemId)!==null&&ct!==void 0?ct:"",ctaName:(it=De?.title)!==null&&it!==void 0?it:"",contentTags:JSON.stringify(De?.tags),position:X+"",contentId:(ut=(nt=H?.video)===null||nt===void 0?void 0:nt.itemId)!==null&&ut!==void 0?ut:"",productId:lt?Y?.itemId:"",traceInfo:(ot=De?.traceInfo)!==null&&ot!==void 0?ot:"",fromKName:st})})},[Q,B]);l.useEffect(()=>{f(!0),J(),F().then(R=>{var H,Y;b((H=R?.recList)!==null&&H!==void 0?H:[]),N((Y=R?.recList)!==null&&Y!==void 0?Y:[])}).finally(()=>{Q({eventInfo:{eventSubject:"apiRequest",eventDescription:"api request succeed"}}),f(!1),L.current=!0})},[]),l.useEffect(()=>{L.current&&(f(!0),J(),F().then(R=>{var H,Y;b((H=R?.recList)!==null&&H!==void 0?H:[]),N((Y=R?.recList)!==null&&Y!==void 0?Y:[])}).finally(()=>{f(!1)}))},[F,J]);const he=Le("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",d);return l.createElement(Ei.Provider,{value:{rtcList:h,setRtcList:b,mutateLike:se,mutateUnlike:W,submitForm:re,popupDetailData:_,loadVideos:ee,setPopupDetailData:T,getRecommendVideos:F,bffEventReport:Q,utmVal:i,isPreview:r,loading:w,sxpParameter:a,waterFallData:E,setWaterFallData:A,ctaEvent:Z,swiperRef:m,openHashtag:S,setOpenHashtag:I,cacheRtcList:P,setCacheRtcList:N,cacheActiveIndex:U,setCacheActiveIndex:G,isFromHashtag:B,setIsFromHashtag:j,appDomain:d,hashTagSize:u,loadingImage:c??he,isOpenHashTag:v,tagList:C,setLoading:f,videoRef:z,setVideoRef:O,bffFbReport:ie}},t({rtcList:h,mutateLike:se,mutateUnlike:W,submitForm:re,tagList:C}))};var Ii=l.memo(Mn);function ue(){return l.useContext(Ei)}var _i;(function(t){t.STRING="string",t.NUMBER="number",t.ARRAY="array",t.OBJECT="object",t.BOOLEAN="boolean",t.ARRAY_OBJECT="array-object",t.ARRAY_STRING="array-string",t.ARRAY_NUMBER="array-number"})(_i||(_i={}));const ki=l.createContext({$store:{},options:[],configs:[]}),Ln=({children:t,isSsr:e,enable:i})=>{const[n,o]=l.useState([]),{schema:s}=$e(),[r,a]=l.useState(s.__STORE__||{}),[d,u]=l.useState([]);l.useEffect(()=>{var g;e||be.isEqual(d,s?.dataSource)||u((g=s?.dataSource)!==null&&g!==void 0?g:[])},[s?.dataSource,e]);const c=l.useCallback(()=>_e(void 0,void 0,void 0,function*(){const{$store:g,idMapName:y}=yield gi("",d);a(g),v(g,y)}),[d]),v=(g,y)=>{const h=[];Object.entries(g).forEach(([b,C])=>{Object.keys(C).forEach(p=>{const w={label:`${y[b]} - ${p}`,value:`{{ ${b}.${p} }}`};h.push(w)})}),o(h)};return l.useEffect(()=>{e||c()},[c,e,s]),i?l.createElement(ki.Provider,{value:{$store:s.__STORE__||r,options:n,configs:d}},t):t};var jn=l.memo(Ln);const bt={id:gt(6,10),item:{type:"common",h:300,category:"block",displayName:"block",isFirstLayout:!0,w:1e3},point:{i:"x-0",x:-38.34375,y:0,w:1e3,h:300,isBounded:!0,actualX:0,actualY:0},pathArr:[0],positionY:0},jt={id:"",duration:0,name:"none"},Di=l.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[bt],redoStack:[],popup:jt,setPopup:()=>{}}),Ai=l.forwardRef(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:o=!0,utmVal:s},r)=>{const[a,d]=l.useState(null),[u,c]=l.useState(n||{pointData:[bt],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[v,g]=l.useState([bt]),[y,h]=l.useState([[bt]]),[b,C]=l.useState([]),[p,w]=l.useState(jt);typeof window<"u"&&(window.sxpPopup=(L,_)=>{w(Object.assign(Object.assign(Object.assign({},jt),{id:L}),_))}),typeof window<"u"&&(window.getJointUtmLink=L=>L?.indexOf("?")!==-1?L+(s?"&"+s:""):L+(s?"?"+s:"")),l.useEffect(()=>{h([u.pointData]),C([])},[u.type]);const f=l.useCallback(L=>{const _=be.cloneDeep(u);_&&(_.dataSource=L,c?.(_))},[u]),[x,k]=l.useState();l.useImperativeHandle(r,()=>({loadSchema(L){L&&(h([L.pointData]),c(L))},exportSchema(){return be.cloneDeep(u)},getPageInfoData(){return x},initPageInfoData(L){L&&k(L)}}));const m=l.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return l.createElement(Di.Provider,{value:{resolver:e,currentNode:a,schema:u,setCurrentNode:d,setSchema:c,saveDataSource:f,prePiontData:v,setPrePiontData:g,pageInfoData:x,setPageInfoData:L=>k(Object.assign(Object.assign({},x),L)),undoStack:y,redoStack:b,setRedoStack:C,setUndoStack:h,getCurPageConf:m,popup:p,setPopup:w}},l.createElement(jn,{isSsr:i,enable:o},t))});var Nn=Object.freeze({__proto__:null,EditorCore:Ai}),Bn=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];const de=[{label:"defalut",value:"appFont"}],Nt=typeof window<"u"&&window?.localStorage.getItem("sxp_font_links"),Rn=Nt&&Nt!==""?JSON.parse(Nt):[];var Ae={fontOptions:[...de,...Rn]},Bt,Rt,zt,zn=[{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Color",name:["textStyle","color"]},{type:"Select",name:["textStyle","fontFamily"],options:de,initialValue:(Bt=de?.[0])===null||Bt===void 0?void 0:Bt.value},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Select",name:["props","submitButtonStyle","fontFamily"],options:Ae?.fontOptions,initialValue:(zt=(Rt=Ae?.fontOptions)===null||Rt===void 0?void 0:Rt[0])===null||zt===void 0?void 0:zt.value},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{type:"TextStyle",name:["props","submitButtonStyle"]},{type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function ze(){const{bffEventReport:t,popupDetailData:e,waterFallData:i,isFromHashtag:n}=ue(),o=l.useCallback((r,a,d,u)=>{var c,v,g,y,h,b,C,p,w,f,x,k,m,L;let _="";e&&(!((v=(c=r?.video)===null||c===void 0?void 0:c.bindProducts)===null||v===void 0)&&v.length||!((g=r?.video)===null||g===void 0)&&g.bindProduct)?_="pdpPage":n?_="hashTagPage":!((y=r?.video)===null||y===void 0)&&y.url?_="videoPage":!((h=r?.video)===null||h===void 0)&&h.imgUrls&&(!((C=(b=r?.video)===null||b===void 0?void 0:b.imgUrls)===null||C===void 0)&&C.length)?_="imagePage":r?.product&&(_="productPage"),t?.({eventInfo:{eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(p=a?.itemId)!==null&&p!==void 0?p:"",productName:(w=a?.title)!==null&&w!==void 0?w:"",price:a?.price?a?.price+"":"0",productCollection:(f=a?.collection)!==null&&f!==void 0?f:"",fromKName:_,fromKPage:location?.href,contentTags:a?.tags?JSON.stringify(a?.tags):"",position:u+"",contentId:(k=(x=r?.video)===null||x===void 0?void 0:x.itemId)!==null&&k!==void 0?k:"",ctatId:(m=d?.itemId)!==null&&m!==void 0?m:"",traceInfo:(L=a?.traceInfo)!==null&&L!==void 0?L:""}})},[t,e,n]),s=l.useCallback((r,a,d,u,c)=>{var v,g,y,h;let b="";e&&(!((g=(v=r?.video)===null||v===void 0?void 0:v.bindProducts)===null||g===void 0)&&g.length||!((y=r?.video)===null||y===void 0)&&y.bindProduct)?b="pdpPage":r?.product&&(b="productPage"),t?.({eventInfo:{productId:a?.itemId,productName:a?.title,price:a?.price?a?.price+"":"0",productCollection:a?.collection,fromKName:b,fromKPage:location?.href,contentTags:JSON.stringify(a?.tags),position:c+"",contentId:(h=r?.video)===null||h===void 0?void 0:h.itemId,ctatId:d?.itemId,traceInfo:a?.traceInfo,timeOnSite:Math.floor((new Date-u)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]);return{jumpToWeb:o,productView:s}}const Vn=t=>{var{columns:e,style:i,title:n,textStyle:o,submitBgColor:s,submitColor:r,submitText:a,layoutType:d,isExternalLink:u,isPopup:c,onClick:v,onClose:g,submitButtonStyle:y}=t,h=xe(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:b,popupDetailData:C}=ue(),{jumpToWeb:p}=ze(),w=l.useRef(),[f,x]=l.useState(!1),k=l.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),m=l.useMemo(()=>{if(d===void 0){const _=be.cloneDeep(e)||k;return _?.map(T=>Object.assign(Object.assign({},T),{title:void 0,fieldProps:{placeholder:T?.title}}))}else return be.cloneDeep(e)||k},[d,e,k]),L=be.debounce(()=>_e(void 0,void 0,void 0,function*(){var _,T,E,A,S,I;const P=yield(_=w?.current)===null||_===void 0?void 0:_.getFieldsValue();if(!P)return;const N=(E=(T=Object.keys(P))===null||T===void 0?void 0:T.map(G=>{var B;return{name:G,value:(B=P[G])!==null&&B!==void 0?B:""}}))===null||E===void 0?void 0:E.filter(G=>G?.value);if(!N||!N?.length)return;x(!0);const U=yield b?.({attributes:N});if(x(!1),U){if(u){const G=C,B=(A=G?.video)===null||A===void 0?void 0:A.bindProduct,j=(I=(S=G?.video)===null||S===void 0?void 0:S.bindProduct)===null||I===void 0?void 0:I.bindCta,z=C?.index;p(G,B,j,z)}c||g?.(),v?.()}}),1e3);return l.createElement("div",{className:"pb-appoint-form"},l.createElement("div",{className:`pb-appoint-form-title ${te.css(Object.assign({},o))}`},n),l.createElement("div",Object.assign({className:te.css(Object.assign({},i))},h),l.createElement("div",{className:"pb-appoint-form-container"},l.createElement(bn.BetaSchemaForm,{columns:m,submitter:!1,layout:d,autoFocusFirstInput:!1,size:"large",formRef:w,className:"panel-reset"}))),l.createElement("div",{className:"pb-appoint-form-btn-wrapper"},l.createElement("button",{onClick:L,className:"pb-appoint-form-btn",style:Object.assign({color:r,background:s},y)},f?l.createElement(l.Fragment,null,"loading..."):a)))};var Fn=l.memo(Vn);function Pe(t,e){return t.extend=e,t}const Hn=Pe(Fn,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:zn,bindableProps:[],interactionRender:Bn},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var Vt,Ft,Un=[{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Color",name:["color"]},{type:"Select",options:de,name:["fontFamily"],initialValue:(Vt=de?.[0])===null||Vt===void 0?void 0:Vt.value},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Select",name:["props","buttonStyle","fontFamily"],options:de,initialValue:(Ft=de?.[0])===null||Ft===void 0?void 0:Ft.value},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]}]}];function Pi(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Ht(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Pi(e[i])&&Pi(t[i])&&Object.keys(e[i]).length>0&&Ht(t[i],e[i])})}const Oi={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ve(){const t=typeof document<"u"?document:{};return Ht(t,Oi),t}const Gn={document:Oi,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function ke(){const t=typeof window<"u"?window:{};return Ht(t,Gn),t}function Xe(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function $n(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function at(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function je(){return Date.now()}function Wn(t){const e=ke();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Yn(t,e){e===void 0&&(e="x");const i=ke();let n,o,s;const r=Wn(t);return i.WebKitCSSMatrix?(o=r.transform||r.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new i.WebKitCSSMatrix(o==="none"?"":o)):(s=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=s.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?o=s.m41:n.length===16?o=parseFloat(n[12]):o=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?o=s.m42:n.length===16?o=parseFloat(n[13]):o=parseFloat(n[5])),o||0}function yt(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function qn(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Oe(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!qn(n)){const o=Object.keys(Object(n)).filter(s=>e.indexOf(s)<0);for(let s=0,r=o.length;s<r;s+=1){const a=o[s],d=Object.getOwnPropertyDescriptor(n,a);d!==void 0&&d.enumerable&&(yt(t[a])&&yt(n[a])?n[a].__swiper__?t[a]=n[a]:Oe(t[a],n[a]):!yt(t[a])&&yt(n[a])?(t[a]={},n[a].__swiper__?t[a]=n[a]:Oe(t[a],n[a])):t[a]=n[a])}}}return t}function wt(t,e,i){t.style.setProperty(e,i)}function Mi(t){let{swiper:e,targetPosition:i,side:n}=t;const o=ke(),s=-e.translate;let r=null,a;const d=e.params.speed;e.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(e.cssModeFrameID);const u=i>s?"next":"prev",c=(g,y)=>u==="next"&&g>=y||u==="prev"&&g<=y,v=()=>{a=new Date().getTime(),r===null&&(r=a);const g=Math.max(Math.min((a-r)/d,1),0),y=.5-Math.cos(g*Math.PI)/2;let h=s+y*(i-s);if(c(h,i)&&(h=i),e.wrapperEl.scrollTo({[n]:h}),c(h,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:h})}),o.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=o.requestAnimationFrame(v)};v()}function Fe(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function St(t){try{console.warn(t);return}catch{}}function vt(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Xe(e)),i}function Xn(t){const e=ke(),i=Ve(),n=t.getBoundingClientRect(),o=i.body,s=t.clientTop||o.clientTop||0,r=t.clientLeft||o.clientLeft||0,a=t===e?e.scrollY:t.scrollTop,d=t===e?e.scrollX:t.scrollLeft;return{top:n.top+a-s,left:n.left+d-r}}function Jn(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function Kn(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function Je(t,e){return ke().getComputedStyle(t,null).getPropertyValue(e)}function Tt(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Li(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function Ut(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function Gt(t,e,i){const n=ke();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function He(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Qn(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const s=ke();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let r,a=je(),d;const u=[];function c(f){let L=0,_=0,T=0,E=0;return"detail"in f&&(_=f.detail),"wheelDelta"in f&&(_=-f.wheelDelta/120),"wheelDeltaY"in f&&(_=-f.wheelDeltaY/120),"wheelDeltaX"in f&&(L=-f.wheelDeltaX/120),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(L=_,_=0),T=L*10,E=_*10,"deltaY"in f&&(E=f.deltaY),"deltaX"in f&&(T=f.deltaX),f.shiftKey&&!T&&(T=E,E=0),(T||E)&&f.deltaMode&&(f.deltaMode===1?(T*=40,E*=40):(T*=800,E*=800)),T&&!L&&(L=T<1?-1:1),E&&!_&&(_=E<1?-1:1),{spinX:L,spinY:_,pixelX:T,pixelY:E}}function v(){e.enabled&&(e.mouseEntered=!0)}function g(){e.enabled&&(e.mouseEntered=!1)}function y(f){return e.params.mousewheel.thresholdDelta&&f.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&je()-a<e.params.mousewheel.thresholdTime?!1:f.delta>=6&&je()-a<60?!0:(f.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),o("scroll",f.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),o("scroll",f.raw)),a=new s.Date().getTime(),!1)}function h(f){const x=e.params.mousewheel;if(f.direction<0){if(e.isEnd&&!e.params.loop&&x.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&x.releaseOnEdges)return!0;return!1}function b(f){let x=f,k=!0;if(!e.enabled||f.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const m=e.params.mousewheel;e.params.cssMode&&x.preventDefault();let L=e.el;e.params.mousewheel.eventsTarget!=="container"&&(L=document.querySelector(e.params.mousewheel.eventsTarget));const _=L&&L.contains(x.target);if(!e.mouseEntered&&!_&&!m.releaseOnEdges)return!0;x.originalEvent&&(x=x.originalEvent);let T=0;const E=e.rtlTranslate?-1:1,A=c(x);if(m.forceToAxis)if(e.isHorizontal())if(Math.abs(A.pixelX)>Math.abs(A.pixelY))T=-A.pixelX*E;else return!0;else if(Math.abs(A.pixelY)>Math.abs(A.pixelX))T=-A.pixelY;else return!0;else T=Math.abs(A.pixelX)>Math.abs(A.pixelY)?-A.pixelX*E:-A.pixelY;if(T===0)return!0;m.invert&&(T=-T);let S=e.getTranslate()+T*m.sensitivity;if(S>=e.minTranslate()&&(S=e.minTranslate()),S<=e.maxTranslate()&&(S=e.maxTranslate()),k=e.params.loop?!0:!(S===e.minTranslate()||S===e.maxTranslate()),k&&e.params.nested&&x.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const I={time:je(),delta:Math.abs(T),direction:Math.sign(T),raw:f};u.length>=2&&u.shift();const P=u.length?u[u.length-1]:void 0;if(u.push(I),P?(I.direction!==P.direction||I.delta>P.delta||I.time>P.time+150)&&y(I):y(I),h(I))return!0}else{const I={time:je(),delta:Math.abs(T),direction:Math.sign(T)},P=d&&I.time<d.time+500&&I.delta<=d.delta&&I.direction===d.direction;if(!P){d=void 0;let N=e.getTranslate()+T*m.sensitivity;const U=e.isBeginning,G=e.isEnd;if(N>=e.minTranslate()&&(N=e.minTranslate()),N<=e.maxTranslate()&&(N=e.maxTranslate()),e.setTransition(0),e.setTranslate(N),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!U&&e.isBeginning||!G&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:I.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(r),r=void 0,u.length>=15&&u.shift();const B=u.length?u[u.length-1]:void 0,j=u[0];if(u.push(I),B&&(I.delta>B.delta||I.direction!==B.direction))u.splice(0);else if(u.length>=15&&I.time-j.time<500&&j.delta-I.delta>=1&&I.delta<=6){const z=T>0?.8:.2;d=I,u.splice(0),r=at(()=>{e.slideToClosest(e.params.speed,!0,void 0,z)},0)}r||(r=at(()=>{d=I,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(P||o("scroll",x),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),m.releaseOnEdges&&(N===e.minTranslate()||N===e.maxTranslate()))return!0}}return x.preventDefault?x.preventDefault():x.returnValue=!1,!1}function C(f){let x=e.el;e.params.mousewheel.eventsTarget!=="container"&&(x=document.querySelector(e.params.mousewheel.eventsTarget)),x[f]("mouseenter",v),x[f]("mouseleave",g),x[f]("wheel",b)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",b),!0):e.mousewheel.enabled?!1:(C("addEventListener"),e.mousewheel.enabled=!0,!0)}function w(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,b),!0):e.mousewheel.enabled?(C("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&w(),e.params.mousewheel.enabled&&p()}),n("destroy",()=>{e.params.cssMode&&p(),e.mousewheel.enabled&&w()}),Object.assign(e.mousewheel,{enable:p,disable:w})}function ji(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(o=>{if(!i[o]&&i.auto===!0){let s=Fe(t.el,`.${n[o]}`)[0];s||(s=vt("div",n[o]),s.className=n[o],t.el.append(s)),i[o]=s,e[o]=s}}),i}function rt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function xt(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const s="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:p=>p,formatFractionTotal:p=>p,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let r,a=0;function d(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(p,w){const{bulletActiveClass:f}=e.params.pagination;p&&(p=p[`${w==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${f}-${w}`),p=p[`${w==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${f}-${w}-${w}`)))}function c(p){const w=p.target.closest(rt(e.params.pagination.bulletClass));if(!w)return;p.preventDefault();const f=Tt(w)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===f)return;e.slideToLoop(f)}else e.slideTo(f)}function v(){const p=e.rtl,w=e.params.pagination;if(d())return;let f=e.pagination.el;f=He(f);let x,k;const m=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,L=e.params.loop?Math.ceil(m/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(k=e.previousRealIndex||0,x=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(x=e.snapIndex,k=e.previousSnapIndex):(k=e.previousIndex||0,x=e.activeIndex||0),w.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const _=e.pagination.bullets;let T,E,A;if(w.dynamicBullets&&(r=Gt(_[0],e.isHorizontal()?"width":"height",!0),f.forEach(S=>{S.style[e.isHorizontal()?"width":"height"]=`${r*(w.dynamicMainBullets+4)}px`}),w.dynamicMainBullets>1&&k!==void 0&&(a+=x-(k||0),a>w.dynamicMainBullets-1?a=w.dynamicMainBullets-1:a<0&&(a=0)),T=Math.max(x-a,0),E=T+(Math.min(_.length,w.dynamicMainBullets)-1),A=(E+T)/2),_.forEach(S=>{const I=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(P=>`${w.bulletActiveClass}${P}`)].map(P=>typeof P=="string"&&P.includes(" ")?P.split(" "):P).flat();S.classList.remove(...I)}),f.length>1)_.forEach(S=>{const I=Tt(S);I===x?S.classList.add(...w.bulletActiveClass.split(" ")):e.isElement&&S.setAttribute("part","bullet"),w.dynamicBullets&&(I>=T&&I<=E&&S.classList.add(...`${w.bulletActiveClass}-main`.split(" ")),I===T&&u(S,"prev"),I===E&&u(S,"next"))});else{const S=_[x];if(S&&S.classList.add(...w.bulletActiveClass.split(" ")),e.isElement&&_.forEach((I,P)=>{I.setAttribute("part",P===x?"bullet-active":"bullet")}),w.dynamicBullets){const I=_[T],P=_[E];for(let N=T;N<=E;N+=1)_[N]&&_[N].classList.add(...`${w.bulletActiveClass}-main`.split(" "));u(I,"prev"),u(P,"next")}}if(w.dynamicBullets){const S=Math.min(_.length,w.dynamicMainBullets+4),I=(r*S-r)/2-A*r,P=p?"right":"left";_.forEach(N=>{N.style[e.isHorizontal()?P:"top"]=`${I}px`})}}f.forEach((_,T)=>{if(w.type==="fraction"&&(_.querySelectorAll(rt(w.currentClass)).forEach(E=>{E.textContent=w.formatFractionCurrent(x+1)}),_.querySelectorAll(rt(w.totalClass)).forEach(E=>{E.textContent=w.formatFractionTotal(L)})),w.type==="progressbar"){let E;w.progressbarOpposite?E=e.isHorizontal()?"vertical":"horizontal":E=e.isHorizontal()?"horizontal":"vertical";const A=(x+1)/L;let S=1,I=1;E==="horizontal"?S=A:I=A,_.querySelectorAll(rt(w.progressbarFillClass)).forEach(P=>{P.style.transform=`translate3d(0,0,0) scaleX(${S}) scaleY(${I})`,P.style.transitionDuration=`${e.params.speed}ms`})}w.type==="custom"&&w.renderCustom?(_.innerHTML=w.renderCustom(e,x+1,L),T===0&&o("paginationRender",_)):(T===0&&o("paginationRender",_),o("paginationUpdate",_)),e.params.watchOverflow&&e.enabled&&_.classList[e.isLocked?"add":"remove"](w.lockClass)})}function g(){const p=e.params.pagination;if(d())return;const w=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let f=e.pagination.el;f=He(f);let x="";if(p.type==="bullets"){let k=e.params.loop?Math.ceil(w/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&k>w&&(k=w);for(let m=0;m<k;m+=1)p.renderBullet?x+=p.renderBullet.call(e,m,p.bulletClass):x+=`<${p.bulletElement} ${e.isElement?'part="bullet"':""} class="${p.bulletClass}"></${p.bulletElement}>`}p.type==="fraction"&&(p.renderFraction?x=p.renderFraction.call(e,p.currentClass,p.totalClass):x=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`),p.type==="progressbar"&&(p.renderProgressbar?x=p.renderProgressbar.call(e,p.progressbarFillClass):x=`<span class="${p.progressbarFillClass}"></span>`),e.pagination.bullets=[],f.forEach(k=>{p.type!=="custom"&&(k.innerHTML=x||""),p.type==="bullets"&&e.pagination.bullets.push(...k.querySelectorAll(rt(p.bulletClass)))}),p.type!=="custom"&&o("paginationRender",f[0])}function y(){e.params.pagination=ji(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let w;typeof p.el=="string"&&e.isElement&&(w=e.el.querySelector(p.el)),!w&&typeof p.el=="string"&&(w=[...document.querySelectorAll(p.el)]),w||(w=p.el),!(!w||w.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(w)&&w.length>1&&(w=[...e.el.querySelectorAll(p.el)],w.length>1&&(w=w.filter(f=>Li(f,".swiper")[0]===e.el)[0])),Array.isArray(w)&&w.length===1&&(w=w[0]),Object.assign(e.pagination,{el:w}),w=He(w),w.forEach(f=>{p.type==="bullets"&&p.clickable&&f.classList.add(...(p.clickableClass||"").split(" ")),f.classList.add(p.modifierClass+p.type),f.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(f.classList.add(`${p.modifierClass}${p.type}-dynamic`),a=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&f.classList.add(p.progressbarOppositeClass),p.clickable&&f.addEventListener("click",c),e.enabled||f.classList.add(p.lockClass)}))}function h(){const p=e.params.pagination;if(d())return;let w=e.pagination.el;w&&(w=He(w),w.forEach(f=>{f.classList.remove(p.hiddenClass),f.classList.remove(p.modifierClass+p.type),f.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(f.classList.remove(...(p.clickableClass||"").split(" ")),f.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(f=>f.classList.remove(...p.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const p=e.params.pagination;let{el:w}=e.pagination;w=He(w),w.forEach(f=>{f.classList.remove(p.horizontalClass,p.verticalClass),f.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?C():(y(),g(),v())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&v()}),n("snapIndexChange",()=>{v()}),n("snapGridLengthChange",()=>{g(),v()}),n("destroy",()=>{h()}),n("enable disable",()=>{let{el:p}=e.pagination;p&&(p=He(p),p.forEach(w=>w.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{v()}),n("click",(p,w)=>{const f=w.target,x=He(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&x&&x.length>0&&!f.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&f===e.navigation.nextEl||e.navigation.prevEl&&f===e.navigation.prevEl))return;const k=x[0].classList.contains(e.params.pagination.hiddenClass);o(k===!0?"paginationShow":"paginationHide"),x.forEach(m=>m.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=He(p),p.forEach(w=>w.classList.remove(e.params.pagination.paginationDisabledClass))),y(),g(),v()},C=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=He(p),p.forEach(w=>w.classList.add(e.params.pagination.paginationDisabledClass))),h()};Object.assign(e.pagination,{enable:b,disable:C,render:g,update:v,init:y,destroy:h})}function Zn(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const s=Ve();let r=!1,a=null,d=null,u,c,v,g;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function y(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:S,rtlTranslate:I}=e,{dragEl:P,el:N}=S,U=e.params.scrollbar,G=e.params.loop?e.progressLoop:e.progress;let B=c,j=(v-c)*G;I?(j=-j,j>0?(B=c-j,j=0):-j+c>v&&(B=v+j)):j<0?(B=c+j,j=0):j+c>v&&(B=v-j),e.isHorizontal()?(P.style.transform=`translate3d(${j}px, 0, 0)`,P.style.width=`${B}px`):(P.style.transform=`translate3d(0px, ${j}px, 0)`,P.style.height=`${B}px`),U.hide&&(clearTimeout(a),N.style.opacity=1,a=setTimeout(()=>{N.style.opacity=0,N.style.transitionDuration="400ms"},1e3))}function h(S){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${S}ms`)}function b(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:S}=e,{dragEl:I,el:P}=S;I.style.width="",I.style.height="",v=e.isHorizontal()?P.offsetWidth:P.offsetHeight,g=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?c=v*g:c=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?I.style.width=`${c}px`:I.style.height=`${c}px`,g>=1?P.style.display="none":P.style.display="",e.params.scrollbar.hide&&(P.style.opacity=0),e.params.watchOverflow&&e.enabled&&S.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function C(S){return e.isHorizontal()?S.clientX:S.clientY}function p(S){const{scrollbar:I,rtlTranslate:P}=e,{el:N}=I;let U;U=(C(S)-Xn(N)[e.isHorizontal()?"left":"top"]-(u!==null?u:c/2))/(v-c),U=Math.max(Math.min(U,1),0),P&&(U=1-U);const G=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*U;e.updateProgress(G),e.setTranslate(G),e.updateActiveIndex(),e.updateSlidesClasses()}function w(S){const I=e.params.scrollbar,{scrollbar:P,wrapperEl:N}=e,{el:U,dragEl:G}=P;r=!0,u=S.target===G?C(S)-S.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,S.preventDefault(),S.stopPropagation(),N.style.transitionDuration="100ms",G.style.transitionDuration="100ms",p(S),clearTimeout(d),U.style.transitionDuration="0ms",I.hide&&(U.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),o("scrollbarDragStart",S)}function f(S){const{scrollbar:I,wrapperEl:P}=e,{el:N,dragEl:U}=I;r&&(S.preventDefault?S.preventDefault():S.returnValue=!1,p(S),P.style.transitionDuration="0ms",N.style.transitionDuration="0ms",U.style.transitionDuration="0ms",o("scrollbarDragMove",S))}function x(S){const I=e.params.scrollbar,{scrollbar:P,wrapperEl:N}=e,{el:U}=P;r&&(r=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",N.style.transitionDuration=""),I.hide&&(clearTimeout(d),d=at(()=>{U.style.opacity=0,U.style.transitionDuration="400ms"},1e3)),o("scrollbarDragEnd",S),I.snapOnRelease&&e.slideToClosest())}function k(S){const{scrollbar:I,params:P}=e,N=I.el;if(!N)return;const U=N,G=P.passiveListeners?{passive:!1,capture:!1}:!1,B=P.passiveListeners?{passive:!0,capture:!1}:!1;if(!U)return;const j=S==="on"?"addEventListener":"removeEventListener";U[j]("pointerdown",w,G),s[j]("pointermove",f,G),s[j]("pointerup",x,B)}function m(){!e.params.scrollbar.el||!e.scrollbar.el||k("on")}function L(){!e.params.scrollbar.el||!e.scrollbar.el||k("off")}function _(){const{scrollbar:S,el:I}=e;e.params.scrollbar=ji(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const P=e.params.scrollbar;if(!P.el)return;let N;if(typeof P.el=="string"&&e.isElement&&(N=e.el.querySelector(P.el)),!N&&typeof P.el=="string"){if(N=s.querySelectorAll(P.el),!N.length)return}else N||(N=P.el);e.params.uniqueNavElements&&typeof P.el=="string"&&N.length>1&&I.querySelectorAll(P.el).length===1&&(N=I.querySelector(P.el)),N.length>0&&(N=N[0]),N.classList.add(e.isHorizontal()?P.horizontalClass:P.verticalClass);let U;N&&(U=N.querySelector(rt(e.params.scrollbar.dragClass)),U||(U=vt("div",e.params.scrollbar.dragClass),N.append(U))),Object.assign(S,{el:N,dragEl:U}),P.draggable&&m(),N&&N.classList[e.enabled?"remove":"add"](...Xe(e.params.scrollbar.lockClass))}function T(){const S=e.params.scrollbar,I=e.scrollbar.el;I&&I.classList.remove(...Xe(e.isHorizontal()?S.horizontalClass:S.verticalClass)),L()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const S=e.params.scrollbar;let{el:I}=e.scrollbar;I=He(I),I.forEach(P=>{P.classList.remove(S.horizontalClass,S.verticalClass),P.classList.add(e.isHorizontal()?S.horizontalClass:S.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?A():(_(),b(),y())}),n("update resize observerUpdate lock unlock changeDirection",()=>{b()}),n("setTranslate",()=>{y()}),n("setTransition",(S,I)=>{h(I)}),n("enable disable",()=>{const{el:S}=e.scrollbar;S&&S.classList[e.enabled?"remove":"add"](...Xe(e.params.scrollbar.lockClass))}),n("destroy",()=>{T()});const E=()=>{e.el.classList.remove(...Xe(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...Xe(e.params.scrollbar.scrollbarDisabledClass)),_(),b(),y()},A=()=>{e.el.classList.add(...Xe(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...Xe(e.params.scrollbar.scrollbarDisabledClass)),T()};Object.assign(e.scrollbar,{enable:E,disable:A,updateSize:b,setTranslate:y,init:_,destroy:T})}function Et(t){let{swiper:e,extendParams:i,on:n,emit:o,params:s}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let r,a,d=s&&s.autoplay?s.autoplay.delay:3e3,u=s&&s.autoplay?s.autoplay.delay:3e3,c,v=new Date().getTime(),g,y,h,b,C,p,w;function f(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",f),!w&&E())}const x=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?g=!0:g&&(u=c,g=!1);const B=e.autoplay.paused?c:v+u-new Date().getTime();e.autoplay.timeLeft=B,o("autoplayTimeLeft",B,B/d),a=requestAnimationFrame(()=>{x()})},k=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.filter(z=>z.classList.contains("swiper-slide-active"))[0]:B=e.slides[e.activeIndex],B?parseInt(B.getAttribute("data-swiper-autoplay"),10):void 0},m=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(a),x();let j=typeof B>"u"?e.params.autoplay.delay:B;d=e.params.autoplay.delay,u=e.params.autoplay.delay;const z=k();!Number.isNaN(z)&&z>0&&typeof B>"u"&&(j=z,d=z,u=z),c=j;const O=e.params.speed,D=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(O,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,O,!0,!0),o("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(O,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,O,!0,!0),o("autoplay")),e.params.cssMode&&(v=new Date().getTime(),requestAnimationFrame(()=>{m()})))};return j>0?(clearTimeout(r),r=setTimeout(()=>{D()},j)):requestAnimationFrame(()=>{D()}),j},L=()=>{v=new Date().getTime(),e.autoplay.running=!0,m(),o("autoplayStart")},_=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(a),o("autoplayStop")},T=(B,j)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),B||(p=!0);const z=()=>{o("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",f):E()};if(e.autoplay.paused=!0,j){C&&(c=e.params.autoplay.delay),C=!1,z();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-v),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),z())},E=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(v=new Date().getTime(),p?(p=!1,m(c)):m(),e.autoplay.paused=!1,o("autoplayResume"))},A=()=>{if(e.destroyed||!e.autoplay.running)return;const B=Ve();B.visibilityState==="hidden"&&(p=!0,T(!0)),B.visibilityState==="visible"&&E()},S=B=>{B.pointerType==="mouse"&&(p=!0,w=!0,!(e.animating||e.autoplay.paused)&&T(!0))},I=B=>{B.pointerType==="mouse"&&(w=!1,e.autoplay.paused&&E())},P=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",S),e.el.addEventListener("pointerleave",I))},N=()=>{e.el.removeEventListener("pointerenter",S),e.el.removeEventListener("pointerleave",I)},U=()=>{Ve().addEventListener("visibilitychange",A)},G=()=>{Ve().removeEventListener("visibilitychange",A)};n("init",()=>{e.params.autoplay.enabled&&(P(),U(),L())}),n("destroy",()=>{N(),G(),e.autoplay.running&&_()}),n("_freeModeStaticRelease",()=>{(h||p)&&E()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?_():T(!0,!0)}),n("beforeTransitionStart",(B,j,z)=>{e.destroyed||!e.autoplay.running||(z||!e.params.autoplay.disableOnInteraction?T(!0,!0):_())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){_();return}y=!0,h=!1,p=!1,b=setTimeout(()=>{p=!0,h=!0,T(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!y)){if(clearTimeout(b),clearTimeout(r),e.params.autoplay.disableOnInteraction){h=!1,y=!1;return}h&&e.params.cssMode&&E(),h=!1,y=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(C=!0)}),Object.assign(e.autoplay,{start:L,stop:_,pause:T,resume:E})}function eo(t){let{swiper:e,extendParams:i,emit:n,once:o}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function s(){if(e.params.cssMode)return;const d=e.getTranslate();e.setTranslate(d),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function r(){if(e.params.cssMode)return;const{touchEventsData:d,touches:u}=e;d.velocities.length===0&&d.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:d.touchStartTime}),d.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:je()})}function a(d){let{currentPos:u}=d;if(e.params.cssMode)return;const{params:c,wrapperEl:v,rtlTranslate:g,snapGrid:y,touchEventsData:h}=e,C=je()-h.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<y.length?e.slideTo(y.length-1):e.slideTo(e.slides.length-1);return}if(c.freeMode.momentum){if(h.velocities.length>1){const _=h.velocities.pop(),T=h.velocities.pop(),E=_.position-T.position,A=_.time-T.time;e.velocity=E/A,e.velocity/=2,Math.abs(e.velocity)<c.freeMode.minimumVelocity&&(e.velocity=0),(A>150||je()-_.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=c.freeMode.momentumVelocityRatio,h.velocities.length=0;let p=1e3*c.freeMode.momentumRatio;const w=e.velocity*p;let f=e.translate+w;g&&(f=-f);let x=!1,k;const m=Math.abs(e.velocity)*20*c.freeMode.momentumBounceRatio;let L;if(f<e.maxTranslate())c.freeMode.momentumBounce?(f+e.maxTranslate()<-m&&(f=e.maxTranslate()-m),k=e.maxTranslate(),x=!0,h.allowMomentumBounce=!0):f=e.maxTranslate(),c.loop&&c.centeredSlides&&(L=!0);else if(f>e.minTranslate())c.freeMode.momentumBounce?(f-e.minTranslate()>m&&(f=e.minTranslate()+m),k=e.minTranslate(),x=!0,h.allowMomentumBounce=!0):f=e.minTranslate(),c.loop&&c.centeredSlides&&(L=!0);else if(c.freeMode.sticky){let _;for(let T=0;T<y.length;T+=1)if(y[T]>-f){_=T;break}Math.abs(y[_]-f)<Math.abs(y[_-1]-f)||e.swipeDirection==="next"?f=y[_]:f=y[_-1],f=-f}if(L&&o("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(g?p=Math.abs((-f-e.translate)/e.velocity):p=Math.abs((f-e.translate)/e.velocity),c.freeMode.sticky){const _=Math.abs((g?-f:f)-e.translate),T=e.slidesSizesGrid[e.activeIndex];_<T?p=c.speed:_<2*T?p=c.speed*1.5:p=c.speed*2.5}}else if(c.freeMode.sticky){e.slideToClosest();return}c.freeMode.momentumBounce&&x?(e.updateProgress(k),e.setTransition(p),e.setTranslate(f),e.transitionStart(!0,e.swipeDirection),e.animating=!0,Ut(v,()=>{!e||e.destroyed||!h.allowMomentumBounce||(n("momentumBounce"),e.setTransition(c.speed),setTimeout(()=>{e.setTranslate(k),Ut(v,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(f),e.setTransition(p),e.setTranslate(f),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Ut(v,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(f),e.updateActiveIndex(),e.updateSlidesClasses()}else if(c.freeMode.sticky){e.slideToClosest();return}else c.freeMode&&n("_freeModeNoMomentumRelease");(!c.freeMode.momentum||C>=c.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:s,onTouchMove:r,onTouchEnd:a}})}let $t;function to(){const t=ke(),e=Ve();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Ni(){return $t||($t=to()),$t}let Wt;function io(t){let{userAgent:e}=t===void 0?{}:t;const i=Ni(),n=ke(),o=n.navigator.platform,s=e||n.navigator.userAgent,r={ios:!1,android:!1},a=n.screen.width,d=n.screen.height,u=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad).*OS\s([\d_]+)/);const v=s.match(/(iPod)(.*OS\s([\d_]+))?/),g=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),y=o==="Win32";let h=o==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&h&&i.touch&&b.indexOf(`${a}x${d}`)>=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),u&&!y&&(r.os="android",r.android=!0),(c||g||v)&&(r.os="ios",r.ios=!0),r}function Bi(t){return t===void 0&&(t={}),Wt||(Wt=io(t)),Wt}let Yt;function no(){const t=ke(),e=Bi();let i=!1;function n(){const a=t.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(n()){const a=String(t.navigator.userAgent);if(a.includes("Version/")){const[d,u]=a.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));i=d<16||d===16&&u<2}}const o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),s=n(),r=s||o&&e.ios;return{isSafari:i||s,needPerspectiveFix:i,need3dFix:r,isWebView:o}}function oo(){return Yt||(Yt=no()),Yt}function lo(t){let{swiper:e,on:i,emit:n}=t;const o=ke();let s=null,r=null;const a=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},d=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(v=>{r=o.requestAnimationFrame(()=>{const{width:g,height:y}=e;let h=g,b=y;v.forEach(C=>{let{contentBoxSize:p,contentRect:w,target:f}=C;f&&f!==e.el||(h=w?w.width:(p[0]||p).inlineSize,b=w?w.height:(p[0]||p).blockSize)}),(h!==g||b!==y)&&a()})}),s.observe(e.el))},u=()=>{r&&o.cancelAnimationFrame(r),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof o.ResizeObserver<"u"){d();return}o.addEventListener("resize",a),o.addEventListener("orientationchange",c)}),i("destroy",()=>{u(),o.removeEventListener("resize",a),o.removeEventListener("orientationchange",c)})}function so(t){let{swiper:e,extendParams:i,on:n,emit:o}=t;const s=[],r=ke(),a=function(c,v){v===void 0&&(v={});const g=r.MutationObserver||r.WebkitMutationObserver,y=new g(h=>{if(e.__preventObserver__)return;if(h.length===1){o("observerUpdate",h[0]);return}const b=function(){o("observerUpdate",h[0])};r.requestAnimationFrame?r.requestAnimationFrame(b):r.setTimeout(b,0)});y.observe(c,{attributes:typeof v.attributes>"u"?!0:v.attributes,childList:typeof v.childList>"u"?!0:v.childList,characterData:typeof v.characterData>"u"?!0:v.characterData}),s.push(y)},d=()=>{if(e.params.observer){if(e.params.observeParents){const c=Li(e.hostEl);for(let v=0;v<c.length;v+=1)a(c[v])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}},u=()=>{s.forEach(c=>{c.disconnect()}),s.splice(0,s.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",d),n("destroy",u)}var ao={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const o=i?"unshift":"push";return t.split(" ").forEach(s=>{n.eventsListeners[s]||(n.eventsListeners[s]=[]),n.eventsListeners[s][o](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function o(){n.off(t,o),o.__emitterProxy&&delete o.__emitterProxy;for(var s=arguments.length,r=new Array(s),a=0;a<s;a++)r[a]=arguments[a];e.apply(n,r)}return o.__emitterProxy=e,n.on(t,o,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((o,s)=>{(o===e||o.__emitterProxy&&o.__emitterProxy===e)&&i.eventsListeners[n].splice(s,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var o=arguments.length,s=new Array(o),r=0;r<o;r++)s[r]=arguments[r];return typeof s[0]=="string"||Array.isArray(s[0])?(e=s[0],i=s.slice(1,s.length),n=t):(e=s[0].events,i=s[0].data,n=s[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(d=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[d,...i])}),t.eventsListeners&&t.eventsListeners[d]&&t.eventsListeners[d].forEach(u=>{u.apply(n,i)})}),t}};function ro(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(Je(n,"padding-left")||0,10)-parseInt(Je(n,"padding-right")||0,10),i=i-parseInt(Je(n,"padding-top")||0,10)-parseInt(Je(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function co(){const t=this;function e(E,A){return parseFloat(E.getPropertyValue(t.getDirectionLabel(A))||0)}const i=t.params,{wrapperEl:n,slidesEl:o,size:s,rtlTranslate:r,wrongRTL:a}=t,d=t.virtual&&i.virtual.enabled,u=d?t.virtual.slides.length:t.slides.length,c=Fe(o,`.${t.params.slideClass}, swiper-slide`),v=d?t.virtual.slides.length:c.length;let g=[];const y=[],h=[];let b=i.slidesOffsetBefore;typeof b=="function"&&(b=i.slidesOffsetBefore.call(t));let C=i.slidesOffsetAfter;typeof C=="function"&&(C=i.slidesOffsetAfter.call(t));const p=t.snapGrid.length,w=t.slidesGrid.length;let f=i.spaceBetween,x=-b,k=0,m=0;if(typeof s>"u")return;typeof f=="string"&&f.indexOf("%")>=0?f=parseFloat(f.replace("%",""))/100*s:typeof f=="string"&&(f=parseFloat(f)),t.virtualSize=-f,c.forEach(E=>{r?E.style.marginLeft="":E.style.marginRight="",E.style.marginBottom="",E.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(wt(n,"--swiper-centered-offset-before",""),wt(n,"--swiper-centered-offset-after",""));const L=i.grid&&i.grid.rows>1&&t.grid;L?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let _;const T=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(E=>typeof i.breakpoints[E].slidesPerView<"u").length>0;for(let E=0;E<v;E+=1){_=0;let A;if(c[E]&&(A=c[E]),L&&t.grid.updateSlide(E,A,c),!(c[E]&&Je(A,"display")==="none")){if(i.slidesPerView==="auto"){T&&(c[E].style[t.getDirectionLabel("width")]="");const S=getComputedStyle(A),I=A.style.transform,P=A.style.webkitTransform;if(I&&(A.style.transform="none"),P&&(A.style.webkitTransform="none"),i.roundLengths)_=t.isHorizontal()?Gt(A,"width",!0):Gt(A,"height",!0);else{const N=e(S,"width"),U=e(S,"padding-left"),G=e(S,"padding-right"),B=e(S,"margin-left"),j=e(S,"margin-right"),z=S.getPropertyValue("box-sizing");if(z&&z==="border-box")_=N+B+j;else{const{clientWidth:O,offsetWidth:D}=A;_=N+U+G+B+j+(D-O)}}I&&(A.style.transform=I),P&&(A.style.webkitTransform=P),i.roundLengths&&(_=Math.floor(_))}else _=(s-(i.slidesPerView-1)*f)/i.slidesPerView,i.roundLengths&&(_=Math.floor(_)),c[E]&&(c[E].style[t.getDirectionLabel("width")]=`${_}px`);c[E]&&(c[E].swiperSlideSize=_),h.push(_),i.centeredSlides?(x=x+_/2+k/2+f,k===0&&E!==0&&(x=x-s/2-f),E===0&&(x=x-s/2-f),Math.abs(x)<1/1e3&&(x=0),i.roundLengths&&(x=Math.floor(x)),m%i.slidesPerGroup===0&&g.push(x),y.push(x)):(i.roundLengths&&(x=Math.floor(x)),(m-Math.min(t.params.slidesPerGroupSkip,m))%t.params.slidesPerGroup===0&&g.push(x),y.push(x),x=x+_+f),t.virtualSize+=_+f,k=_,m+=1}}if(t.virtualSize=Math.max(t.virtualSize,s)+C,r&&a&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+f}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+f}px`),L&&t.grid.updateWrapperSize(_,g),!i.centeredSlides){const E=[];for(let A=0;A<g.length;A+=1){let S=g[A];i.roundLengths&&(S=Math.floor(S)),g[A]<=t.virtualSize-s&&E.push(S)}g=E,Math.floor(t.virtualSize-s)-Math.floor(g[g.length-1])>1&&g.push(t.virtualSize-s)}if(d&&i.loop){const E=h[0]+f;if(i.slidesPerGroup>1){const A=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),S=E*i.slidesPerGroup;for(let I=0;I<A;I+=1)g.push(g[g.length-1]+S)}for(let A=0;A<t.virtual.slidesBefore+t.virtual.slidesAfter;A+=1)i.slidesPerGroup===1&&g.push(g[g.length-1]+E),y.push(y[y.length-1]+E),t.virtualSize+=E}if(g.length===0&&(g=[0]),f!==0){const E=t.isHorizontal()&&r?"marginLeft":t.getDirectionLabel("marginRight");c.filter((A,S)=>!i.cssMode||i.loop?!0:S!==c.length-1).forEach(A=>{A.style[E]=`${f}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let E=0;h.forEach(S=>{E+=S+(f||0)}),E-=f;const A=E-s;g=g.map(S=>S<=0?-b:S>A?A+C:S)}if(i.centerInsufficientSlides){let E=0;if(h.forEach(A=>{E+=A+(f||0)}),E-=f,E<s){const A=(s-E)/2;g.forEach((S,I)=>{g[I]=S-A}),y.forEach((S,I)=>{y[I]=S+A})}}if(Object.assign(t,{slides:c,snapGrid:g,slidesGrid:y,slidesSizesGrid:h}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){wt(n,"--swiper-centered-offset-before",`${-g[0]}px`),wt(n,"--swiper-centered-offset-after",`${t.size/2-h[h.length-1]/2}px`);const E=-t.snapGrid[0],A=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(S=>S+E),t.slidesGrid=t.slidesGrid.map(S=>S+A)}if(v!==u&&t.emit("slidesLengthChange"),g.length!==p&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),y.length!==w&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!d&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const E=`${i.containerModifierClass}backface-hidden`,A=t.el.classList.contains(E);v<=i.maxBackfaceHiddenSlides?A||t.el.classList.add(E):A&&t.el.classList.remove(E)}}function uo(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let o=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const r=a=>n?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{i.push(a)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const a=e.activeIndex+s;if(a>e.slides.length&&!n)break;i.push(r(a))}else i.push(r(e.activeIndex));for(s=0;s<i.length;s+=1)if(typeof i[s]<"u"){const a=i[s].offsetHeight;o=a>o?a:o}(o||o===0)&&(e.wrapperEl.style.height=`${o}px`)}function po(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}function vo(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:o,snapGrid:s}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let r=-t;o&&(r=t),n.forEach(d=>{d.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=i.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let d=0;d<n.length;d+=1){const u=n[d];let c=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=n[0].swiperSlideOffset);const v=(r+(i.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+a),g=(r-s[0]+(i.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+a),y=-(r-c),h=y+e.slidesSizesGrid[d],b=y>=0&&y<=e.size-e.slidesSizesGrid[d];(y>=0&&y<e.size-1||h>1&&h<=e.size||y<=0&&h>=e.size)&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(d),n[d].classList.add(i.slideVisibleClass)),b&&n[d].classList.add(i.slideFullyVisibleClass),u.progress=o?-v:v,u.originalProgress=o?-g:g}}function fo(t){const e=this;if(typeof t>"u"){const c=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*c||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:o,isBeginning:s,isEnd:r,progressLoop:a}=e;const d=s,u=r;if(n===0)o=0,s=!0,r=!0;else{o=(t-e.minTranslate())/n;const c=Math.abs(t-e.minTranslate())<1,v=Math.abs(t-e.maxTranslate())<1;s=c||o<=0,r=v||o>=1,c&&(o=0),v&&(o=1)}if(i.loop){const c=e.getSlideIndexByData(0),v=e.getSlideIndexByData(e.slides.length-1),g=e.slidesGrid[c],y=e.slidesGrid[v],h=e.slidesGrid[e.slidesGrid.length-1],b=Math.abs(t);b>=g?a=(b-g)/h:a=(b+h-y)/h,a>1&&(a-=1)}Object.assign(e,{progress:o,progressLoop:a,isBeginning:s,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),s&&!d&&e.emit("reachBeginning toEdge"),r&&!u&&e.emit("reachEnd toEdge"),(d&&!s||u&&!r)&&e.emit("fromEdge"),e.emit("progress",o)}function mo(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:o}=t,s=t.virtual&&i.virtual.enabled,r=t.grid&&i.grid&&i.grid.rows>1,a=v=>Fe(n,`.${i.slideClass}${v}, swiper-slide${v}`)[0];e.forEach(v=>{v.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let d,u,c;if(s)if(i.loop){let v=o-t.virtual.slidesBefore;v<0&&(v=t.virtual.slides.length+v),v>=t.virtual.slides.length&&(v-=t.virtual.slides.length),d=a(`[data-swiper-slide-index="${v}"]`)}else d=a(`[data-swiper-slide-index="${o}"]`);else r?(d=e.filter(v=>v.column===o)[0],c=e.filter(v=>v.column===o+1)[0],u=e.filter(v=>v.column===o-1)[0]):d=e[o];d&&(d.classList.add(i.slideActiveClass),r?(c&&c.classList.add(i.slideNextClass),u&&u.classList.add(i.slidePrevClass)):(c=Kn(d,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c&&(c=e[0]),c&&c.classList.add(i.slideNextClass),u=Jn(d,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]),u&&u.classList.add(i.slidePrevClass))),t.emitSlidesClasses()}const Ct=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let o=n.querySelector(`.${t.params.lazyPreloaderClass}`);!o&&t.isElement&&(n.shadowRoot?o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(o=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.remove()}},qt=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Xt=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),o=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const r=o,a=[r-e];a.push(...Array.from({length:e}).map((d,u)=>r+n+u)),t.slides.forEach((d,u)=>{a.includes(d.column)&&qt(t,u)});return}const s=o+n-1;if(t.params.rewind||t.params.loop)for(let r=o-e;r<=s+e;r+=1){const a=(r%i+i)%i;(a<o||a>s)&&qt(t,a)}else for(let r=Math.max(o-e,0);r<=Math.min(s+e,i-1);r+=1)r!==o&&(r>s||r<o)&&qt(t,r)};function ho(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let o;for(let s=0;s<e.length;s+=1)typeof e[s+1]<"u"?n>=e[s]&&n<e[s+1]-(e[s+1]-e[s])/2?o=s:n>=e[s]&&n<e[s+1]&&(o=s+1):n>=e[s]&&(o=s);return i.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function go(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:o,activeIndex:s,realIndex:r,snapIndex:a}=e;let d=t,u;const c=y=>{let h=y-e.virtual.slidesBefore;return h<0&&(h=e.virtual.slides.length+h),h>=e.virtual.slides.length&&(h-=e.virtual.slides.length),h};if(typeof d>"u"&&(d=ho(e)),n.indexOf(i)>=0)u=n.indexOf(i);else{const y=Math.min(o.slidesPerGroupSkip,d);u=y+Math.floor((d-y)/o.slidesPerGroup)}if(u>=n.length&&(u=n.length-1),d===s&&!e.params.loop){u!==a&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(d===s&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=c(d);return}const v=e.grid&&o.grid&&o.grid.rows>1;let g;if(e.virtual&&o.virtual.enabled&&o.loop)g=c(d);else if(v){const y=e.slides.filter(b=>b.column===d)[0];let h=parseInt(y.getAttribute("data-swiper-slide-index"),10);Number.isNaN(h)&&(h=Math.max(e.slides.indexOf(y),0)),g=Math.floor(h/o.grid.rows)}else if(e.slides[d]){const y=e.slides[d].getAttribute("data-swiper-slide-index");y?g=parseInt(y,10):g=d}else g=d;Object.assign(e,{previousSnapIndex:a,snapIndex:u,previousRealIndex:r,realIndex:g,previousIndex:s,activeIndex:d}),e.initialized&&Xt(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(r!==g&&e.emit("realIndexChange"),e.emit("slideChange"))}function bo(t,e){const i=this,n=i.params;let o=t.closest(`.${n.slideClass}, swiper-slide`);!o&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(a=>{!o&&a.matches&&a.matches(`.${n.slideClass}, swiper-slide`)&&(o=a)});let s=!1,r;if(o){for(let a=0;a<i.slides.length;a+=1)if(i.slides[a]===o){s=!0,r=a;break}}if(o&&s)i.clickedSlide=o,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(o.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=r;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var yo={updateSize:ro,updateSlides:co,updateAutoHeight:uo,updateSlidesOffset:po,updateSlidesProgress:vo,updateProgress:fo,updateSlidesClasses:mo,updateActiveIndex:go,updateClickedSlide:bo};function wo(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:o,wrapperEl:s}=e;if(i.virtualTranslate)return n?-o:o;if(i.cssMode)return o;let r=Yn(s,t);return r+=e.cssOverflowAdjustment(),n&&(r=-r),r||0}function So(t,e){const i=this,{rtlTranslate:n,params:o,wrapperEl:s,progress:r}=i;let a=0,d=0;const u=0;i.isHorizontal()?a=n?-t:t:d=t,o.roundLengths&&(a=Math.floor(a),d=Math.floor(d)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?a:d,o.cssMode?s[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-a:-d:o.virtualTranslate||(i.isHorizontal()?a-=i.cssOverflowAdjustment():d-=i.cssOverflowAdjustment(),s.style.transform=`translate3d(${a}px, ${d}px, ${u}px)`);let c;const v=i.maxTranslate()-i.minTranslate();v===0?c=0:c=(t-i.minTranslate())/v,c!==r&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function To(){return-this.snapGrid[0]}function xo(){return-this.snapGrid[this.snapGrid.length-1]}function Eo(t,e,i,n,o){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const s=this,{params:r,wrapperEl:a}=s;if(s.animating&&r.preventInteractionOnTransition)return!1;const d=s.minTranslate(),u=s.maxTranslate();let c;if(n&&t>d?c=d:n&&t<u?c=u:c=t,s.updateProgress(c),r.cssMode){const v=s.isHorizontal();if(e===0)a[v?"scrollLeft":"scrollTop"]=-c;else{if(!s.support.smoothScroll)return Mi({swiper:s,targetPosition:-c,side:v?"left":"top"}),!0;a.scrollTo({[v?"left":"top"]:-c,behavior:"smooth"})}return!0}return e===0?(s.setTransition(0),s.setTranslate(c),i&&(s.emit("beforeTransitionStart",e,o),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(c),i&&(s.emit("beforeTransitionStart",e,o),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(g){!s||s.destroyed||g.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,i&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var Co={getTranslate:wo,setTranslate:So,minTranslate:To,maxTranslate:xo,translateTo:Eo};function Io(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function Ri(t){let{swiper:e,runCallbacks:i,direction:n,step:o}=t;const{activeIndex:s,previousIndex:r}=e;let a=n;if(a||(s>r?a="next":s<r?a="prev":a="reset"),e.emit(`transition${o}`),i&&s!==r){if(a==="reset"){e.emit(`slideResetTransition${o}`);return}e.emit(`slideChangeTransition${o}`),a==="next"?e.emit(`slideNextTransition${o}`):e.emit(`slidePrevTransition${o}`)}}function _o(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),Ri({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function ko(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),Ri({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Do={setTransition:Io,transitionStart:_o,transitionEnd:ko};function Ao(t,e,i,n,o){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;let r=t;r<0&&(r=0);const{params:a,snapGrid:d,slidesGrid:u,previousIndex:c,activeIndex:v,rtlTranslate:g,wrapperEl:y,enabled:h}=s;if(s.animating&&a.preventInteractionOnTransition||!h&&!n&&!o||s.destroyed)return!1;const b=Math.min(s.params.slidesPerGroupSkip,r);let C=b+Math.floor((r-b)/s.params.slidesPerGroup);C>=d.length&&(C=d.length-1);const p=-d[C];if(a.normalizeSlideIndex)for(let f=0;f<u.length;f+=1){const x=-Math.floor(p*100),k=Math.floor(u[f]*100),m=Math.floor(u[f+1]*100);typeof u[f+1]<"u"?x>=k&&x<m-(m-k)/2?r=f:x>=k&&x<m&&(r=f+1):x>=k&&(r=f)}if(s.initialized&&r!==v&&(!s.allowSlideNext&&(g?p>s.translate&&p>s.minTranslate():p<s.translate&&p<s.minTranslate())||!s.allowSlidePrev&&p>s.translate&&p>s.maxTranslate()&&(v||0)!==r))return!1;r!==(c||0)&&i&&s.emit("beforeSlideChangeStart"),s.updateProgress(p);let w;if(r>v?w="next":r<v?w="prev":w="reset",g&&-p===s.translate||!g&&p===s.translate)return s.updateActiveIndex(r),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),a.effect!=="slide"&&s.setTranslate(p),w!=="reset"&&(s.transitionStart(i,w),s.transitionEnd(i,w)),!1;if(a.cssMode){const f=s.isHorizontal(),x=g?p:-p;if(e===0){const k=s.virtual&&s.params.virtual.enabled;k&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),k&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{y[f?"scrollLeft":"scrollTop"]=x})):y[f?"scrollLeft":"scrollTop"]=x,k&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return Mi({swiper:s,targetPosition:x,side:f?"left":"top"}),!0;y.scrollTo({[f?"left":"top"]:x,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(p),s.updateActiveIndex(r),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,n),s.transitionStart(i,w),e===0?s.transitionEnd(i,w):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(x){!s||s.destroyed||x.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(i,w))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function Po(t,e,i,n){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;if(o.destroyed)return;const s=o.grid&&o.params.grid&&o.params.grid.rows>1;let r=t;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)r=r+o.virtual.slidesBefore;else{let a;if(s){const g=r*o.params.grid.rows;a=o.slides.filter(y=>y.getAttribute("data-swiper-slide-index")*1===g)[0].column}else a=o.getSlideIndexByData(r);const d=s?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:u}=o.params;let c=o.params.slidesPerView;c==="auto"?c=o.slidesPerViewDynamic():(c=Math.ceil(parseFloat(o.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let v=d-a<c;if(u&&(v=v||a<Math.ceil(c/2)),v){const g=u?a<o.activeIndex?"prev":"next":a-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:g,slideTo:!0,activeSlideIndex:g==="next"?a+1:a-d+1,slideRealIndex:g==="next"?o.realIndex:void 0})}if(s){const g=r*o.params.grid.rows;r=o.slides.filter(y=>y.getAttribute("data-swiper-slide-index")*1===g)[0].column}else r=o.getSlideIndexByData(r)}return requestAnimationFrame(()=>{o.slideTo(r,e,i,n)}),o}function Oo(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this,{enabled:o,params:s,animating:r}=n;if(!o||n.destroyed)return n;let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));const d=n.activeIndex<s.slidesPerGroupSkip?1:a,u=n.virtual&&s.virtual.enabled;if(s.loop){if(r&&!u&&s.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+d,t,e,i)}),!0}return s.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+d,t,e,i)}function Mo(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this,{params:o,snapGrid:s,slidesGrid:r,rtlTranslate:a,enabled:d,animating:u}=n;if(!d||n.destroyed)return n;const c=n.virtual&&o.virtual.enabled;if(o.loop){if(u&&!c&&o.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const v=a?n.translate:-n.translate;function g(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const y=g(v),h=s.map(p=>g(p));let b=s[h.indexOf(y)-1];if(typeof b>"u"&&o.cssMode){let p;s.forEach((w,f)=>{y>=w&&(p=f)}),typeof p<"u"&&(b=s[p>0?p-1:p])}let C=0;if(typeof b<"u"&&(C=r.indexOf(b),C<0&&(C=n.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(C=C-n.slidesPerViewDynamic("previous",!0)+1,C=Math.max(C,0))),o.rewind&&n.isBeginning){const p=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(p,t,e,i)}else if(o.loop&&n.activeIndex===0&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(C,t,e,i)}),!0;return n.slideTo(C,t,e,i)}function Lo(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this;if(!n.destroyed)return n.slideTo(n.activeIndex,t,e,i)}function jo(t,e,i,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),n===void 0&&(n=.5);const o=this;if(o.destroyed)return;let s=o.activeIndex;const r=Math.min(o.params.slidesPerGroupSkip,s),a=r+Math.floor((s-r)/o.params.slidesPerGroup),d=o.rtlTranslate?o.translate:-o.translate;if(d>=o.snapGrid[a]){const u=o.snapGrid[a],c=o.snapGrid[a+1];d-u>(c-u)*n&&(s+=o.params.slidesPerGroup)}else{const u=o.snapGrid[a-1],c=o.snapGrid[a];d-u<=(c-u)*n&&(s-=o.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,o.slidesGrid.length-1),o.slideTo(s,t,e,i)}function No(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let o=t.clickedIndex,s;const r=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?o<t.loopedSlides-n/2||o>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),o=t.getSlideIndex(Fe(i,`${r}[data-swiper-slide-index="${s}"]`)[0]),at(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-n?(t.loopFix(),o=t.getSlideIndex(Fe(i,`${r}[data-swiper-slide-index="${s}"]`)[0]),at(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}var Bo={slideTo:Ao,slideToLoop:Po,slideNext:Oo,slidePrev:Mo,slideReset:Lo,slideToClosest:jo,slideToClickedSlide:No};function Ro(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const o=()=>{Fe(n,`.${i.slideClass}, swiper-slide`).forEach((v,g)=>{v.setAttribute("data-swiper-slide-index",g)})},s=e.grid&&i.grid&&i.grid.rows>1,r=i.slidesPerGroup*(s?i.grid.rows:1),a=e.slides.length%r!==0,d=s&&e.slides.length%i.grid.rows!==0,u=c=>{for(let v=0;v<c;v+=1){const g=e.isElement?vt("swiper-slide",[i.slideBlankClass]):vt("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(g)}};if(a){if(i.loopAddBlankSlides){const c=r-e.slides.length%r;u(c),e.recalcSlides(),e.updateSlides()}else St("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else if(d){if(i.loopAddBlankSlides){const c=i.grid.rows-e.slides.length%i.grid.rows;u(c),e.recalcSlides(),e.updateSlides()}else St("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else o();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function zo(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:o,activeSlideIndex:s,byController:r,byMousewheel:a}=t===void 0?{}:t;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:u,allowSlidePrev:c,allowSlideNext:v,slidesEl:g,params:y}=d,{centeredSlides:h}=y;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&y.virtual.enabled){i&&(!y.centeredSlides&&d.snapIndex===0?d.slideTo(d.virtual.slides.length,0,!1,!0):y.centeredSlides&&d.snapIndex<y.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0)),d.allowSlidePrev=c,d.allowSlideNext=v,d.emit("loopFix");return}let b=y.slidesPerView;b==="auto"?b=d.slidesPerViewDynamic():(b=Math.ceil(parseFloat(y.slidesPerView,10)),h&&b%2===0&&(b=b+1));const C=y.slidesPerGroupAuto?b:y.slidesPerGroup;let p=C;p%C!==0&&(p+=C-p%C),p+=y.loopAdditionalSlides,d.loopedSlides=p;const w=d.grid&&y.grid&&y.grid.rows>1;u.length<b+p?St("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):w&&y.grid.fill==="row"&&St("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const f=[],x=[];let k=d.activeIndex;typeof s>"u"?s=d.getSlideIndex(u.filter(I=>I.classList.contains(y.slideActiveClass))[0]):k=s;const m=n==="next"||!n,L=n==="prev"||!n;let _=0,T=0;const E=w?Math.ceil(u.length/y.grid.rows):u.length,S=(w?u[s].column:s)+(h&&typeof o>"u"?-b/2+.5:0);if(S<p){_=Math.max(p-S,C);for(let I=0;I<p-S;I+=1){const P=I-Math.floor(I/E)*E;if(w){const N=E-P-1;for(let U=u.length-1;U>=0;U-=1)u[U].column===N&&f.push(U)}else f.push(E-P-1)}}else if(S+b>E-p){T=Math.max(S-(E-p*2),C);for(let I=0;I<T;I+=1){const P=I-Math.floor(I/E)*E;w?u.forEach((N,U)=>{N.column===P&&x.push(U)}):x.push(P)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),L&&f.forEach(I=>{u[I].swiperLoopMoveDOM=!0,g.prepend(u[I]),u[I].swiperLoopMoveDOM=!1}),m&&x.forEach(I=>{u[I].swiperLoopMoveDOM=!0,g.append(u[I]),u[I].swiperLoopMoveDOM=!1}),d.recalcSlides(),y.slidesPerView==="auto"?d.updateSlides():w&&(f.length>0&&L||x.length>0&&m)&&d.slides.forEach((I,P)=>{d.grid.updateSlide(P,I,d.slides)}),y.watchSlidesProgress&&d.updateSlidesOffset(),i){if(f.length>0&&L){if(typeof e>"u"){const I=d.slidesGrid[k],N=d.slidesGrid[k+_]-I;a?d.setTranslate(d.translate-N):(d.slideTo(k+Math.ceil(_),0,!1,!0),o&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-N,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-N))}else if(o){const I=w?f.length/y.grid.rows:f.length;d.slideTo(d.activeIndex+I,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(x.length>0&&m)if(typeof e>"u"){const I=d.slidesGrid[k],N=d.slidesGrid[k-T]-I;a?d.setTranslate(d.translate-N):(d.slideTo(k-T,0,!1,!0),o&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-N,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-N))}else{const I=w?x.length/y.grid.rows:x.length;d.slideTo(d.activeIndex-I,0,!1,!0)}}if(d.allowSlidePrev=c,d.allowSlideNext=v,d.controller&&d.controller.control&&!r){const I={slideRealIndex:e,direction:n,setTranslate:o,activeSlideIndex:s,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(P=>{!P.destroyed&&P.params.loop&&P.loopFix({...I,slideTo:P.params.slidesPerView===y.slidesPerView?i:!1})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...I,slideTo:d.controller.control.params.slidesPerView===y.slidesPerView?i:!1})}d.emit("loopFix")}function Vo(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(o=>{const s=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;n[s]=o}),t.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),n.forEach(o=>{i.append(o)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Fo={loopCreate:Ro,loopFix:zo,loopDestroy:Vo};function Ho(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Uo(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Go={setGrabCursor:Ho,unsetGrabCursor:Uo};function $o(t,e){e===void 0&&(e=this);function i(n){if(!n||n===Ve()||n===ke())return null;n.assignedSlot&&(n=n.assignedSlot);const o=n.closest(t);return!o&&!n.getRootNode?null:o||i(n.getRootNode().host)}return i(e)}function zi(t,e,i){const n=ke(),{params:o}=t,s=o.edgeSwipeDetection,r=o.edgeSwipeThreshold;return s&&(i<=r||i>=n.innerWidth-r)?s==="prevent"?(e.preventDefault(),!0):!1:!0}function Wo(t){const e=this,i=Ve();let n=t;n.originalEvent&&(n=n.originalEvent);const o=e.touchEventsData;if(n.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==n.pointerId)return;o.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(o.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){zi(e,n,n.targetTouches[0].pageX);return}const{params:s,touches:r,enabled:a}=e;if(!a||!s.simulateTouch&&n.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let d=n.target;if(s.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(d)||"which"in n&&n.which===3||"button"in n&&n.button>0||o.isTouched&&o.isMoved)return;const u=!!s.noSwipingClass&&s.noSwipingClass!=="",c=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&c&&(d=c[0]);const v=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,g=!!(n.target&&n.target.shadowRoot);if(s.noSwiping&&(g?$o(v,d):d.closest(v))){e.allowClick=!0;return}if(s.swipeHandler&&!d.closest(s.swipeHandler))return;r.currentX=n.pageX,r.currentY=n.pageY;const y=r.currentX,h=r.currentY;if(!zi(e,n,y))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=y,r.startY=h,o.touchStartTime=je(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(o.allowThresholdMove=!1);let b=!0;d.matches(o.focusableElements)&&(b=!1,d.nodeName==="SELECT"&&(o.isTouched=!1)),i.activeElement&&i.activeElement.matches(o.focusableElements)&&i.activeElement!==d&&i.activeElement.blur();const C=b&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||C)&&!d.isContentEditable&&n.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Yo(t){const e=Ve(),i=this,n=i.touchEventsData,{params:o,touches:s,rtlTranslate:r,enabled:a}=i;if(!a||!o.simulateTouch&&t.pointerType==="mouse")return;let d=t;if(d.originalEvent&&(d=d.originalEvent),d.type==="pointermove"&&(n.touchId!==null||d.pointerId!==n.pointerId))return;let u;if(d.type==="touchmove"){if(u=[...d.changedTouches].filter(m=>m.identifier===n.touchId)[0],!u||u.identifier!==n.touchId)return}else u=d;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",d);return}const c=u.pageX,v=u.pageY;if(d.preventedByNestedSwiper){s.startX=c,s.startY=v;return}if(!i.allowTouchMove){d.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(s,{startX:c,startY:v,currentX:c,currentY:v}),n.touchStartTime=je());return}if(o.touchReleaseOnEdges&&!o.loop){if(i.isVertical()){if(v<s.startY&&i.translate<=i.maxTranslate()||v>s.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(c<s.startX&&i.translate<=i.maxTranslate()||c>s.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&d.target===e.activeElement&&d.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",d),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=c,s.currentY=v;const g=s.currentX-s.startX,y=s.currentY-s.startY;if(i.params.threshold&&Math.sqrt(g**2+y**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let m;i.isHorizontal()&&s.currentY===s.startY||i.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:g*g+y*y>=25&&(m=Math.atan2(Math.abs(y),Math.abs(g))*180/Math.PI,n.isScrolling=i.isHorizontal()?m>o.touchAngle:90-m>o.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",d),typeof n.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(n.startMoving=!0),n.isScrolling){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!o.cssMode&&d.cancelable&&d.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&d.stopPropagation();let h=i.isHorizontal()?g:y,b=i.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;o.oneWayMovement&&(h=Math.abs(h)*(r?1:-1),b=Math.abs(b)*(r?1:-1)),s.diff=h,h*=o.touchRatio,r&&(h=-h,b=-b);const C=i.touchesDirection;i.swipeDirection=h>0?"prev":"next",i.touchesDirection=b>0?"prev":"next";const p=i.params.loop&&!o.cssMode,w=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(p&&w&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const m=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(m)}n.allowMomentumBounce=!1,o.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",d)}let f;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&C!==i.touchesDirection&&p&&w&&Math.abs(h)>=1){Object.assign(s,{startX:c,startY:v,currentX:c,currentY:v,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",d),n.isMoved=!0,n.currentTranslate=h+n.startTranslate;let x=!0,k=o.resistanceRatio;if(o.touchReleaseOnEdges&&(k=0),h>0?(p&&w&&!f&&n.allowThresholdMove&&n.currentTranslate>(o.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(x=!1,o.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+h)**k))):h<0&&(p&&w&&!f&&n.allowThresholdMove&&n.currentTranslate<(o.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(o.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(x=!1,o.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-h)**k))),x&&(d.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),o.threshold>0)if(Math.abs(h)>o.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,s.diff=i.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{n.currentTranslate=n.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&i.freeMode||o.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function qo(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let o;if(n.type==="touchend"||n.type==="touchcancel"){if(o=[...n.changedTouches].filter(k=>k.identifier===i.touchId)[0],!o||o.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;o=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:r,touches:a,rtlTranslate:d,slidesGrid:u,enabled:c}=e;if(!c||!r.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&r.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}r.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const v=je(),g=v-i.touchStartTime;if(e.allowClick){const k=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(k&&k[0]||n.target,k),e.emit("tap click",n),g<300&&v-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=je(),at(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||a.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let y;if(r.followFinger?y=d?e.translate:-e.translate:y=-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:y});return}const h=y>=-e.maxTranslate()&&!e.params.loop;let b=0,C=e.slidesSizesGrid[0];for(let k=0;k<u.length;k+=k<r.slidesPerGroupSkip?1:r.slidesPerGroup){const m=k<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof u[k+m]<"u"?(h||y>=u[k]&&y<u[k+m])&&(b=k,C=u[k+m]-u[k]):(h||y>=u[k])&&(b=k,C=u[u.length-1]-u[u.length-2])}let p=null,w=null;r.rewind&&(e.isBeginning?w=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const f=(y-u[b])/C,x=b<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(g>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(f>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?p:b+x):e.slideTo(b)),e.swipeDirection==="prev"&&(f>1-r.longSwipesRatio?e.slideTo(b+x):w!==null&&f<0&&Math.abs(f)>r.longSwipesRatio?e.slideTo(w):e.slideTo(b))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(b+x):e.slideTo(b):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:b+x),e.swipeDirection==="prev"&&e.slideTo(w!==null?w:b))}}function Vi(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:o,snapGrid:s}=t,r=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=r&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!r?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=o,t.allowSlideNext=n,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function Xo(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Jo(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let o;const s=t.maxTranslate()-t.minTranslate();s===0?o=0:o=(t.translate-t.minTranslate())/s,o!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Ko(t){const e=this;Ct(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Qo(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Fi=(t,e)=>{const i=Ve(),{params:n,el:o,wrapperEl:s,device:r}=t,a=!!n.nested,d=e==="on"?"addEventListener":"removeEventListener",u=e;i[d]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a}),o[d]("touchstart",t.onTouchStart,{passive:!1}),o[d]("pointerdown",t.onTouchStart,{passive:!1}),i[d]("touchmove",t.onTouchMove,{passive:!1,capture:a}),i[d]("pointermove",t.onTouchMove,{passive:!1,capture:a}),i[d]("touchend",t.onTouchEnd,{passive:!0}),i[d]("pointerup",t.onTouchEnd,{passive:!0}),i[d]("pointercancel",t.onTouchEnd,{passive:!0}),i[d]("touchcancel",t.onTouchEnd,{passive:!0}),i[d]("pointerout",t.onTouchEnd,{passive:!0}),i[d]("pointerleave",t.onTouchEnd,{passive:!0}),i[d]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&o[d]("click",t.onClick,!0),n.cssMode&&s[d]("scroll",t.onScroll),n.updateOnWindowResize?t[u](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",Vi,!0):t[u]("observerUpdate",Vi,!0),o[d]("load",t.onLoad,{capture:!0})};function Zo(){const t=this,{params:e}=t;t.onTouchStart=Wo.bind(t),t.onTouchMove=Yo.bind(t),t.onTouchEnd=qo.bind(t),t.onDocumentTouchStart=Qo.bind(t),e.cssMode&&(t.onScroll=Jo.bind(t)),t.onClick=Xo.bind(t),t.onLoad=Ko.bind(t),Fi(t,"on")}function el(){Fi(this,"off")}var tl={attachEvents:Zo,detachEvents:el};const Hi=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function il(){const t=this,{realIndex:e,initialized:i,params:n,el:o}=t,s=n.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const r=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!r||t.currentBreakpoint===r)return;const d=(r in s?s[r]:void 0)||t.originalParams,u=Hi(t,n),c=Hi(t,d),v=n.enabled;u&&!c?(o.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&c&&(o.classList.add(`${n.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&n.grid.fill==="column")&&o.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(p=>{if(typeof d[p]>"u")return;const w=n[p]&&n[p].enabled,f=d[p]&&d[p].enabled;w&&!f&&t[p].disable(),!w&&f&&t[p].enable()});const g=d.direction&&d.direction!==n.direction,y=n.loop&&(d.slidesPerView!==n.slidesPerView||g),h=n.loop;g&&i&&t.changeDirection(),Oe(t.params,d);const b=t.params.enabled,C=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),v&&!b?t.disable():!v&&b&&t.enable(),t.currentBreakpoint=r,t.emit("_beforeBreakpoint",d),i&&(y?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!h&&C?(t.loopCreate(e),t.updateSlides()):h&&!C&&t.loopDestroy()),t.emit("breakpoint",d)}function nl(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const o=ke(),s=e==="window"?o.innerHeight:i.clientHeight,r=Object.keys(t).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const d=parseFloat(a.substr(1));return{value:s*d,point:a}}return{value:a,point:a}});r.sort((a,d)=>parseInt(a.value,10)-parseInt(d.value,10));for(let a=0;a<r.length;a+=1){const{point:d,value:u}=r[a];e==="window"?o.matchMedia(`(min-width: ${u}px)`).matches&&(n=d):u<=i.clientWidth&&(n=d)}return n||"max"}var ol={setBreakpoint:il,getBreakpoint:nl};function ll(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(o=>{n[o]&&i.push(e+o)}):typeof n=="string"&&i.push(e+n)}),i}function sl(){const t=this,{classNames:e,params:i,rtl:n,el:o,device:s}=t,r=ll(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...r),o.classList.add(...e),t.emitContainerClasses()}function al(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var rl={addClasses:sl,removeClasses:al};function dl(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const o=t.slides.length-1,s=t.slidesGrid[o]+t.slidesSizesGrid[o]+n*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var cl={checkOverflow:dl},Jt={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function ul(t,e){return function(n){n===void 0&&(n={});const o=Object.keys(n)[0],s=n[o];if(typeof s!="object"||s===null){Oe(e,n);return}if(t[o]===!0&&(t[o]={enabled:!0}),o==="navigation"&&t[o]&&t[o].enabled&&!t[o].prevEl&&!t[o].nextEl&&(t[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&t[o]&&t[o].enabled&&!t[o].el&&(t[o].auto=!0),!(o in t&&"enabled"in s)){Oe(e,n);return}typeof t[o]=="object"&&!("enabled"in t[o])&&(t[o].enabled=!0),t[o]||(t[o]={enabled:!1}),Oe(e,n)}}const Kt={eventsEmitter:ao,update:yo,translate:Co,transition:Do,slide:Bo,loop:Fo,grabCursor:Go,events:tl,breakpoints:ol,checkOverflow:cl,classes:rl},Qt={};let Zt=class Ye{constructor(){let e,i;for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?i=o[0]:[e,i]=o,i||(i={}),i=Oe({},i),e&&!i.el&&(i.el=e);const r=Ve();if(i.el&&typeof i.el=="string"&&r.querySelectorAll(i.el).length>1){const c=[];return r.querySelectorAll(i.el).forEach(v=>{const g=Oe({},i,{el:v});c.push(new Ye(g))}),c}const a=this;a.__swiper__=!0,a.support=Ni(),a.device=Bi({userAgent:i.userAgent}),a.browser=oo(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],i.modules&&Array.isArray(i.modules)&&a.modules.push(...i.modules);const d={};a.modules.forEach(c=>{c({params:i,swiper:a,extendParams:ul(i,d),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=Oe({},Jt,d);return a.params=Oe({},u,Qt,i),a.originalParams=Oe({},a.params),a.passedParams=Oe({},i),a.params&&a.params.on&&Object.keys(a.params.on).forEach(c=>{a.on(c,a.params.on[c])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,o=Fe(i,`.${n.slideClass}, swiper-slide`),s=Tt(o[0]);return Tt(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:n}=e;e.slides=Fe(i,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const n=this;e=Math.min(Math.max(e,0),1);const o=n.minTranslate(),r=(n.maxTranslate()-o)*e+o;n.translateTo(r,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const o=e.getSlideClasses(n);i.push({slideEl:n,classNames:o}),e.emit("_slideClass",n,o)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:o,slides:s,slidesGrid:r,slidesSizesGrid:a,size:d,activeIndex:u}=n;let c=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let v=s[u]?Math.ceil(s[u].swiperSlideSize):0,g;for(let y=u+1;y<s.length;y+=1)s[y]&&!g&&(v+=Math.ceil(s[y].swiperSlideSize),c+=1,v>d&&(g=!0));for(let y=u-1;y>=0;y-=1)s[y]&&!g&&(v+=s[y].swiperSlideSize,c+=1,v>d&&(g=!0))}else if(e==="current")for(let v=u+1;v<s.length;v+=1)(i?r[v]+a[v]-r[u]<d:r[v]-r[u]<d)&&(c+=1);else for(let v=u-1;v>=0;v-=1)r[u]-r[v]<d&&(c+=1);return c}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(r=>{r.complete&&Ct(e,r)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function o(){const r=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(r,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)o(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const r=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(r.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||o()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,o=n.params.direction;return e||(e=o==="horizontal"?"vertical":"horizontal"),e===o||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${o}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const o=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(o()):Fe(n,o())[0];return!r&&i.params.createElements&&(r=vt("div",i.params.wrapperClass),n.append(r),Fe(n,`.${i.params.slideClass}`).forEach(a=>{r.append(a)})),Object.assign(i,{el:n,wrapperEl:r,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:r,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||Je(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||Je(n,"direction")==="rtl"),wrongRTL:Je(r,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const o=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&o.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(s=>{s.complete?Ct(i,s):s.addEventListener("load",r=>{Ct(i,r.target)})}),Xt(i),i.initialized=!0,Xt(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:o,el:s,wrapperEl:r,slides:a}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),o.loop&&n.loopDestroy(),i&&(n.removeClasses(),s.removeAttribute("style"),r.removeAttribute("style"),a&&a.length&&a.forEach(d=>{d.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass),d.removeAttribute("style"),d.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(d=>{n.off(d)}),e!==!1&&(n.el.swiper=null,$n(n)),n.destroyed=!0),null}static extendDefaults(e){Oe(Qt,e)}static get extendedDefaults(){return Qt}static get defaults(){return Jt}static installModule(e){Ye.prototype.__modules__||(Ye.prototype.__modules__=[]);const i=Ye.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Ye.installModule(i)),Ye):(Ye.installModule(e),Ye)}};Object.keys(Kt).forEach(t=>{Object.keys(Kt[t]).forEach(e=>{Zt.prototype[e]=Kt[t][e]})}),Zt.use([lo,so]);const Ui=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function et(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function dt(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:et(e[n])&&et(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:dt(t[n],e[n]):t[n]=e[n]})}function Gi(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function $i(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Wi(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Yi(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function pl(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function vl(t){let{swiper:e,slides:i,passedParams:n,changedParams:o,nextEl:s,prevEl:r,scrollbarEl:a,paginationEl:d}=t;const u=o.filter(T=>T!=="children"&&T!=="direction"&&T!=="wrapperClass"),{params:c,pagination:v,navigation:g,scrollbar:y,virtual:h,thumbs:b}=e;let C,p,w,f,x,k,m,L;o.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(C=!0),o.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(p=!0),o.includes("pagination")&&n.pagination&&(n.pagination.el||d)&&(c.pagination||c.pagination===!1)&&v&&!v.el&&(w=!0),o.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&y&&!y.el&&(f=!0),o.includes("navigation")&&n.navigation&&(n.navigation.prevEl||r)&&(n.navigation.nextEl||s)&&(c.navigation||c.navigation===!1)&&g&&!g.prevEl&&!g.nextEl&&(x=!0);const _=T=>{e[T]&&(e[T].destroy(),T==="navigation"?(e.isElement&&(e[T].prevEl.remove(),e[T].nextEl.remove()),c[T].prevEl=void 0,c[T].nextEl=void 0,e[T].prevEl=void 0,e[T].nextEl=void 0):(e.isElement&&e[T].el.remove(),c[T].el=void 0,e[T].el=void 0))};o.includes("loop")&&e.isElement&&(c.loop&&!n.loop?k=!0:!c.loop&&n.loop?m=!0:L=!0),u.forEach(T=>{if(et(c[T])&&et(n[T]))Object.assign(c[T],n[T]),(T==="navigation"||T==="pagination"||T==="scrollbar")&&"enabled"in n[T]&&!n[T].enabled&&_(T);else{const E=n[T];(E===!0||E===!1)&&(T==="navigation"||T==="pagination"||T==="scrollbar")?E===!1&&_(T):c[T]=n[T]}}),u.includes("controller")&&!p&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),o.includes("children")&&i&&h&&c.virtual.enabled?(h.slides=i,h.update(!0)):o.includes("virtual")&&h&&c.virtual.enabled&&(i&&(h.slides=i),h.update(!0)),o.includes("children")&&i&&c.loop&&(L=!0),C&&b.init()&&b.update(!0),p&&(e.controller.control=c.controller.control),w&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-pagination"),d.part.add("pagination"),e.el.appendChild(d)),d&&(c.pagination.el=d),v.init(),v.render(),v.update()),f&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(c.scrollbar.el=a),y.init(),y.updateSize(),y.setTranslate()),x&&(e.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=e.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),e.el.appendChild(s)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),r.innerHTML=e.hostEl.constructor.prevButtonSvg,r.part.add("button-prev"),e.el.appendChild(r))),s&&(c.navigation.nextEl=s),r&&(c.navigation.prevEl=r),g.init(),g.update()),o.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),o.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),o.includes("direction")&&e.changeDirection(n.direction,!1),(k||L)&&e.loopDestroy(),(m||L)&&e.loopCreate(),e.update()}function fl(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},o={};dt(i,Jt),i._emitClasses=!0,i.init=!1;const s={},r=Ui.map(d=>d.replace(/_/,"")),a=Object.assign({},t);return Object.keys(a).forEach(d=>{typeof t[d]>"u"||(r.indexOf(d)>=0?et(t[d])?(i[d]={},o[d]={},dt(i[d],t[d]),dt(o[d],t[d])):(i[d]=t[d],o[d]=t[d]):d.search(/on[A-Z]/)===0&&typeof t[d]=="function"?e?n[`${d[2].toLowerCase()}${d.substr(3)}`]=t[d]:i.on[`${d[2].toLowerCase()}${d.substr(3)}`]=t[d]:s[d]=t[d])}),["navigation","pagination","scrollbar"].forEach(d=>{i[d]===!0&&(i[d]={}),i[d]===!1&&delete i[d]}),{params:i,passedParams:o,rest:s,events:n}}function ml(t,e){let{el:i,nextEl:n,prevEl:o,paginationEl:s,scrollbarEl:r,swiper:a}=t;Gi(e)&&n&&o&&(a.params.navigation.nextEl=n,a.originalParams.navigation.nextEl=n,a.params.navigation.prevEl=o,a.originalParams.navigation.prevEl=o),$i(e)&&s&&(a.params.pagination.el=s,a.originalParams.pagination.el=s),Wi(e)&&r&&(a.params.scrollbar.el=r,a.originalParams.scrollbar.el=r),a.init(i)}function hl(t,e,i,n,o){const s=[];if(!e)return s;const r=d=>{s.indexOf(d)<0&&s.push(d)};if(i&&n){const d=n.map(o),u=i.map(o);d.join("")!==u.join("")&&r("children"),n.length!==i.length&&r("children")}return Ui.filter(d=>d[0]==="_").map(d=>d.replace(/_/,"")).forEach(d=>{if(d in t&&d in e)if(et(t[d])&&et(e[d])){const u=Object.keys(t[d]),c=Object.keys(e[d]);u.length!==c.length?r(d):(u.forEach(v=>{t[d][v]!==e[d][v]&&r(d)}),c.forEach(v=>{t[d][v]!==e[d][v]&&r(d)}))}else t[d]!==e[d]&&r(d)}),s}const gl=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function It(){return It=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},It.apply(this,arguments)}function qi(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function Xi(t){const e=[];return l.Children.toArray(t).forEach(i=>{qi(i)?e.push(i):i.props&&i.props.children&&Xi(i.props.children).forEach(n=>e.push(n))}),e}function bl(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return l.Children.toArray(t).forEach(n=>{if(qi(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const o=Xi(n.props.children);o.length>0?o.forEach(s=>e.push(s)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function yl(t,e,i){if(!i)return null;const n=c=>{let v=c;return c<0?v=e.length+c:v>=e.length&&(v=v-e.length),v},o=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:s,to:r}=i,a=t.params.loop?-e.length:0,d=t.params.loop?e.length*2:e.length,u=[];for(let c=a;c<d;c+=1)c>=s&&c<=r&&u.push(e[n(c)]);return u.map((c,v)=>l.cloneElement(c,{swiper:t,style:o,key:c.props.virtualIndex||c.key||`slide-${v}`}))}function ft(t,e){return typeof window>"u"?l.useEffect(t,e):l.useLayoutEffect(t,e)}const ei=l.createContext(null),Ji=()=>l.useContext(ei),wl=l.createContext(null),tt=l.forwardRef(function(t,e){let{className:i,tag:n="div",wrapperTag:o="div",children:s,onSwiper:r,...a}=t===void 0?{}:t,d=!1;const[u,c]=l.useState("swiper"),[v,g]=l.useState(null),[y,h]=l.useState(!1),b=l.useRef(!1),C=l.useRef(null),p=l.useRef(null),w=l.useRef(null),f=l.useRef(null),x=l.useRef(null),k=l.useRef(null),m=l.useRef(null),L=l.useRef(null),{params:_,passedParams:T,rest:E,events:A}=fl(a),{slides:S,slots:I}=bl(s),P=()=>{h(!y)};Object.assign(_.on,{_containerClasses(j,z){c(z)}});const N=()=>{Object.assign(_.on,A),d=!0;const j={..._};if(delete j.wrapperClass,p.current=new Zt(j),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=S;const z={cache:!1,slides:S,renderExternal:g,renderExternalUpdate:!1};dt(p.current.params.virtual,z),dt(p.current.originalParams.virtual,z)}};C.current||N(),p.current&&p.current.on("_beforeBreakpoint",P);const U=()=>{d||!A||!p.current||Object.keys(A).forEach(j=>{p.current.on(j,A[j])})},G=()=>{!A||!p.current||Object.keys(A).forEach(j=>{p.current.off(j,A[j])})};l.useEffect(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",P)}),l.useEffect(()=>{!b.current&&p.current&&(p.current.emitSlidesClasses(),b.current=!0)}),ft(()=>{if(e&&(e.current=C.current),!!C.current)return p.current.destroyed&&N(),ml({el:C.current,nextEl:x.current,prevEl:k.current,paginationEl:m.current,scrollbarEl:L.current,swiper:p.current},_),r&&!p.current.destroyed&&r(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),ft(()=>{U();const j=hl(T,w.current,S,f.current,z=>z.key);return w.current=T,f.current=S,j.length&&p.current&&!p.current.destroyed&&vl({swiper:p.current,slides:S,passedParams:T,changedParams:j,nextEl:x.current,prevEl:k.current,scrollbarEl:L.current,paginationEl:m.current}),()=>{G()}}),ft(()=>{gl(p.current)},[v]);function B(){return _.virtual?yl(p.current,S,v):S.map((j,z)=>l.cloneElement(j,{swiper:p.current,swiperSlideIndex:z}))}return l.createElement(n,It({ref:C,className:Yi(`${u}${i?` ${i}`:""}`)},E),l.createElement(wl.Provider,{value:p.current},I["container-start"],l.createElement(o,{className:pl(_.wrapperClass)},I["wrapper-start"],B(),I["wrapper-end"]),Gi(_)&&l.createElement(l.Fragment,null,l.createElement("div",{ref:k,className:"swiper-button-prev"}),l.createElement("div",{ref:x,className:"swiper-button-next"})),Wi(_)&&l.createElement("div",{ref:L,className:"swiper-scrollbar"}),$i(_)&&l.createElement("div",{ref:m,className:"swiper-pagination"}),I["container-end"]))});tt.displayName="Swiper";const Ue=l.forwardRef(function(t,e){let{tag:i="div",children:n,className:o="",swiper:s,zoom:r,lazy:a,virtualIndex:d,swiperSlideIndex:u,...c}=t===void 0?{}:t;const v=l.useRef(null),[g,y]=l.useState("swiper-slide"),[h,b]=l.useState(!1);function C(x,k,m){k===v.current&&y(m)}ft(()=>{if(typeof u<"u"&&(v.current.swiperSlideIndex=u),e&&(e.current=v.current),!(!v.current||!s)){if(s.destroyed){g!=="swiper-slide"&&y("swiper-slide");return}return s.on("_slideClass",C),()=>{s&&s.off("_slideClass",C)}}}),ft(()=>{s&&v.current&&!s.destroyed&&y(s.getSlideClasses(v.current))},[s]);const p={isActive:g.indexOf("swiper-slide-active")>=0,isVisible:g.indexOf("swiper-slide-visible")>=0,isPrev:g.indexOf("swiper-slide-prev")>=0,isNext:g.indexOf("swiper-slide-next")>=0},w=()=>typeof n=="function"?n(p):n,f=()=>{b(!0)};return l.createElement(i,It({ref:v,className:Yi(`${g}${o?` ${o}`:""}`),"data-swiper-slide-index":d,onLoad:f},c),r&&l.createElement(ei.Provider,{value:p},l.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof r=="number"?r:void 0},w(),a&&!h&&l.createElement("div",{className:"swiper-lazy-preloader"}))),!r&&l.createElement(ei.Provider,{value:p},w(),a&&!h&&l.createElement("div",{className:"swiper-lazy-preloader"})))});Ue.displayName="SwiperSlide";const Sl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",Tl=({visible:t,onClose:e,children:i,modalStyle:n,padding:o,popup:s})=>{var r;const[a,d]=l.useState(!1),u=l.useRef(null);l.useEffect(()=>{const g=document.getElementById("sxp-render"),y=document.getElementById("pb-modal");y?u.current=y:(u.current=document.createElement("div"),u.current.setAttribute("id","pb-modal"),g?.appendChild(u.current))},[]);const c=l.useMemo(()=>s?.id&&s?.id!==""||t,[t,s]);if(l.useEffect(()=>{c?d(!0):setTimeout(()=>{d(!1)},s?.duration)},[c,s]),!u.current)return null;const v=be.debounce(()=>{e?.()},300);return hi.createPortal(l.createElement(l.Fragment,null,a&&l.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:c?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:v},l.createElement("div",{className:`modal-container ${c?"modal-popIn":"modal-popOut"}`,style:{padding:o,animationDuration:((r=s?.duration)!==null&&r!==void 0?r:0)/1e3+"s"},onClick:g=>{g.stopPropagation(),g.preventDefault()}},l.createElement("div",{onClick:e,className:"modal-icon-wrapper"},l.createElement("img",{src:Sl,alt:"close",className:"modal-icon"})),i))),u.current)};var _t=l.memo(Tl);const xl=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const n=t.split(" "),o=[];for(let r=0;r<n.length&&(o.push(n[r]),!(o.join(" ").length>=e));r++);return(o.length>1&&o.length<n.length?o.slice(0,o.length-1):o).join(" ")+" "},El=({text:t,maxStr:e=108,style:i,className:n,onClick:o,foldText:s,unfoldText:r,isPost:a,onChange:d})=>{const[u,c]=l.useState(!1),[v,g]=l.useState(!1),y=Number(i?.lineClamp||2),h=l.useRef(null),b=l.useRef(null),C=l.useCallback(()=>{c(!u)},[u,d]);return l.useMemo(()=>!u&&t.length>e?xl(t,e)+"...":t,[t,e,u]),l.useEffect(()=>{var p,w;((p=b?.current)===null||p===void 0?void 0:p.offsetHeight)>((w=h?.current)===null||w===void 0?void 0:w.offsetHeight)&&a?g(!0):g(!1),b.current.style.display="none"},[a]),l.createElement("div",{className:n,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},l.createElement("div",{ref:h,style:{overflow:"hidden",WebkitLineClamp:!a||u?"":y,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:t?.replace(/\n/g,"</br>")}}),l.createElement("div",{ref:b,dangerouslySetInnerHTML:{__html:t?.replace(/\n/g,"</br>")}}),t&&a&&v&&l.createElement("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:o??C},u?r||"show less":s||"show more"))};var kt=l.memo(El);const Cl=l.forwardRef((t,e)=>{const{src:i,onLoad:n,style:o,className:s,loading:r}=t,[a,d]=l.useState(),{swiperRef:u}=ue();return l.useImperativeHandle(e,()=>({setSrc:c=>{d(c)}})),l.useEffect(()=>{var c,v;const g=(v=(c=u?.current)===null||c===void 0?void 0:c.swiper)===null||v===void 0?void 0:v.activeIndex;(g===0||g>0)&&d(i)},[i,u]),l.useRef(null),l.createElement(l.Fragment,null,a?.includes(".avif")?l.createElement("picture",null,l.createElement("source",{type:"image/avif",srcSet:a}),l.createElement("source",{type:"image/webp",srcSet:`${a}?imageMogr2/format/webp`}),l.createElement("source",{type:"image/jpeg",srcSet:`${a}?imageMogr2/format/jpg`}),l.createElement("img",{className:s,src:a,style:o,loading:r,onLoad:c=>{n?.(c.target)}})):l.createElement("img",{className:s,src:a,style:o,loading:r,onLoad:c=>{n?.(c.target)}}))});var Me=l.memo(Cl);const Il=t=>{var e,i,n,o,s,r,a,d,u,{content:c,style:v,bgImg:g,onClick:y,schema:h,isDefault:b,bottom_image:C,tipText:p,isPost:w,viewTime:f,rec:x,swiper:k,commodityStyles:m,buttonStyle:L,index:_}=t,T=xe(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index"]);const{sxpParameter:E}=ue(),{popupDetailData:A,bffEventReport:S,isPreview:I,bffFbReport:P}=ue(),{jumpToWeb:N,productView:U}=ze(),G=l.useRef(null),[B,j]=l.useState(!1),z=w?x:A,O=w?z?.product:(e=z?.video)===null||e===void 0?void 0:e.bindProduct,D=w?(i=z?.product)===null||i===void 0?void 0:i.bindCta:(o=(n=z?.video)===null||n===void 0?void 0:n.bindProduct)===null||o===void 0?void 0:o.bindCta,$=w?_:A?.index,V=()=>{O?.link&&(N(z,O,D,$),w||U(z,O,D,f||G.current,$),window.location.href=window.getJointUtmLink(O.link))};l.useEffect(()=>{w||P?.({eventName:"ProductView"})},[w,P]),l.useEffect(()=>{const W=()=>{G.current=new Date};return W(),window.addEventListener("pageshow",W),()=>{window.removeEventListener("pageshow",W)}},[]);const F=l.useMemo(()=>{var W,re,J,Z,he;return O?.currency&&O?.price?`${(J=(re=(W=O?.currency)===null||W===void 0?void 0:W.split("-")[1])===null||re===void 0?void 0:re.toUpperCase())!==null&&J!==void 0?J:""}${(he=(Z=O?.price)===null||Z===void 0?void 0:Z.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&he!==void 0?he:""}`:"$7,000"},[O?.price,O?.currency]),ee=I?375:(s=v?.width)!==null&&s!==void 0?s:window.innerWidth,Q=({isPost:W})=>{var re,J,Z;return l.createElement("div",null,l.createElement("div",{className:"pb-commondity-content-collection",style:se(m?.collection),hidden:!!O&&(!O?.collection||O?.collection==="")},(re=O?.collection)!==null&&re!==void 0?re:"Tiffany Lock"),l.createElement("div",{className:"pb-commondity-content-title",style:se(m?.title),hidden:!!O&&!O?.title},(J=O?.title)!==null&&J!==void 0?J:"Pendant in Yellow Gold with Diamonds, Medium"),l.createElement("div",{className:"pb-commondity-content-price",style:se(m?.price),hidden:!!O&&!O?.price},F),l.createElement("div",{hidden:!!O&&(!O?.info||O?.info==="")},l.createElement(kt,{foldText:p?.foldText,unfoldText:p?.unfoldText,onClick:()=>j(!0),isPost:W,text:(Z=O?.info)!==null&&Z!==void 0?Z:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var xe=require("lodash"),bn=require("uuid"),yn=require("pako"),o=require("react"),Bt=require("qs"),wn=require("eventemitter3"),ie=require("@emotion/css"),Sn=require("@ant-design/pro-components"),Tn=require("react-dom");function xn(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if(i!=="default"){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}var wi=xn(Tn);function ke(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(t);l<n.length;l++)e.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(t,n[l])&&(i[n[l]]=t[n[l]]);return i}function Le(t,e,i,n){function l(s){return s instanceof i?s:new i(function(d){d(s)})}return new(i||(i=Promise))(function(s,d){function a(c){try{u(n.next(c))}catch(v){d(v)}}function r(c){try{u(n.throw(c))}catch(v){d(v)}}function u(c){c.done?s(c.value):l(c.value).then(a,r)}u((n=n.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const En=/:\w+/g;var Si=(t,e)=>Le(void 0,void 0,void 0,function*(){const i={},n={};for(let l=0;l<e?.length;l++){const{id:s,method:d,url:a,urlParams:r,name:u,queryString:c,headers:v,body:m}=e[l];let w=a;r&&Object.entries(r).forEach(([y,S])=>{w=w.replace(En,I=>I===y?S:I)}),c&&(w+=c),n[s]=u;try{const y=yield fetch(w,{method:d,headers:Object.assign({"Content-Type":"application/json"},v),body:JSON.stringify(m)}).then(S=>S.json());i[s]=y}catch(y){console.error("DataSource request error: ",y),i[s]={}}}return{$store:i,idMapName:n}});const Ti="SXP_TOKEN_INFO",Cn=(t,e)=>Le(void 0,void 0,void 0,function*(){var i;const n=t.getTenantId(),l=t.getAppId(),s=t.getApiUrl(),d=window.localStorage.getItem(Ti);let a=JSON.parse(d||"{}");if(Date.now()>((i=a?.expireTime)!==null&&i!==void 0?i:0)){const u=yield fetch(`${s}/storefront/v1/proxy/token/${e}`,{method:"POST",headers:{"x-tenant-id":n||"","x-app-id":l||""}}).then(c=>c.json());if(u.success){const c=u.data;a=Object.assign(Object.assign({},c),{expireTime:Date.now()+c.expire*1e3}),window.localStorage.setItem(Ti,JSON.stringify(a))}}return a});function Tt(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let l;if(e=e||i.length,t)for(l=0;l<t;l++)n[l]=i[0|Math.random()*e];else{let s;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",l=0;l<36;l++)n[l]||(s=0|Math.random()*16,n[l]=i[l===19?s&3|8:s])}return n.join("")}const In=t=>{let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=i.length;let l=0;for(;l<t;)e+=i.charAt(Math.floor(Math.random()*n)),l+=1;return e},_n=()=>{const t=bn.v4();return t?.replaceAll?t.replaceAll("-",""):In(32)};function xi(t){const i=atob(t).split("").map(function(s){return s.charCodeAt(0)}),n=new Uint8Array(i),l=yn.inflate(n,{to:"string"});return JSON.parse(l)}let Rt=null;const kn={dev:"https://clc-pagebuilder-be-dev.chatlabs.net",staging:"https://clc-pagebuilder-be-staging.chatlabs.net",live:"https://clc-pagebuilder-be.chatlabs.net"};class Dn{constructor(){if(this.setAppId=e=>{this.appId=e},this.setTenantId=e=>{this.tenantId=e},this.getAppId=()=>this.appId,this.getTenantId=()=>this.tenantId,Rt)return Rt;Rt=this}setApiUrl(e){this.apiUrl=`https://${e}`}getApiUrl(){return this.apiUrl?this.apiUrl:this.env?kn[this.env]:""}getEnv(){return this.env}setEnv(e){this.env=e}}let Ae=null;const An={init:({appId:t,tenantId:e,env:i="live",apiUrl:n})=>{Ae||(Ae=new Dn),n&&Ae.setApiUrl(n),Ae.setAppId(t),Ae.setTenantId(e),Ae.setEnv(i)},getDetail:t=>{if(!Ae)return;const e=Ae.getTenantId(),i=Ae.getAppId(),n=Ae.getApiUrl();return fetch(`${n}/storefront/v1/page?path=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>Le(void 0,void 0,void 0,function*(){var s,d;const a=yield l.json(),r=xi((s=a?.data)===null||s===void 0?void 0:s.data);if(r){const{$store:u}=yield Si(n,(d=r?.dataSource)!==null&&d!==void 0?d:[]);a.data.data=r,Object.assign(a.data.data,{__STORE__:u})}return a}))},getSxpDetailByPageId:t=>Le(void 0,void 0,void 0,function*(){if(!Ae)return;const e=Ae.getTenantId(),i=Ae.getAppId(),n=Ae.getApiUrl();return fetch(`${n}/storefront/v1/page?id=`+t,{method:"get",headers:{"x-tenant-id":e||"","x-app-id":i||""}}).then(l=>Le(void 0,void 0,void 0,function*(){var s;const d=yield l.json();if(!d.success)return;const a=xi((s=d?.data)===null||s===void 0?void 0:s.data);return d.data.data=a,d.data}))}),getSxpRecommendVideoData:t=>Le(void 0,void 0,void 0,function*(){if(!Ae)return;const e=yield Cn(Ae,t),i=Tt(0,0);let n=window.localStorage.getItem("SXP_FAKE_SESSION_ID");xe.isEmpty(n)&&(n=Tt(36,62),window.localStorage.setItem("SXP_FAKE_SESSION_ID",n));const l=yield fetch("https://dev-sxp-be.chatlabs.net/platform/open/rec/v1.2",{method:"POST",headers:{"Content-Type":"application/json",token:e.token,channel:e.channel,userId:e.userId},body:JSON.stringify({productUserId:n,channel:e.channel,maxRecs:10,requestId:i})}).then(s=>s.json());return l?.data||null})};function et(){return o.useContext(Li)}function Pn(){return o.useContext(Mi)}const zt="feRealSessionIdKey",Ei=()=>{const t=_n();return`${Date.now()}${t}`},On=()=>{let t=Ln();return t||(t=Ei(),window.sessionStorage.setItem(zt,t)),t},Mn=()=>{const t=Ei();window.sessionStorage.setItem(zt,t)},Ln=()=>window.sessionStorage.getItem(zt),Ci="SXP_FAKE_USER_ID",Ii="FAKE_USER_STATE",_i="AGREE_POLICY",ki=()=>{let t=window.localStorage.getItem(Ci);return xe.isEmpty(t)&&(t=Tt(36,62),window.localStorage.setItem(Ci,t)),t},jn=()=>{const t=window.localStorage.getItem(Ii);return xe.isEmpty(t)&&window.localStorage.setItem(Ii,"true"),xe.isEmpty(t)};function He(t,e){const{appDomain:i}=ve();return o.useMemo(()=>e?`https://${e}${t}`:i?`https://${i}${t}`:`${window.location.origin}${t}`,[i,t,e])}const tt=new wn;var $e;(function(t){t.PAGE_DID_SHOW="pageDidShow",t.PAGE_DID_HIDE="pageDidHide",t.CHANGE_THEME_TAG="changeThemeTag"})($e||($e={}));const Nn=({width:t=window.innerWidth,height:e=window.innerHeight,privacy_title:i,privacy_context:n,privacy_policy_url:l,privacy_policy_title:s})=>{const{setIsAgreePolicy:d,bffEventReport:a}=ve(),r=o.useMemo(()=>{const v=location.search.slice(1),m=Bt.parse(v.replace(/\+/g,"%2B"));for(const w in m)m[w]=m[w].replace(/%2B/g,"+");return m},[]),u=v=>{var m;return(m=r[v])!==null&&m!==void 0?m:null};o.useEffect(()=>{a?.({eventInfo:{eventSubject:"privacyEnter",eventDescription:"User enter privacy page",utmSource:u("utm_source"),utmMedium:u("utm_medium"),utmCampaign:u("utm_campaign"),utmId:u("utm_id"),utmContent:u("utm_content"),clSource:u("cl_source"),enterTime:`${Date.now()}`,enterUrl:window.location.href,rtc:null,requestId:null,sessionID:null}})},[]);const c=()=>{a?.({eventInfo:{eventSubject:"userConsent",eventDescription:"\u7528\u6237\u6388\u6743\u3010\u64CD\u4F5C\u7ED3\u679C\u3011",consentResult:"0",consentTags:"[]",rtc:null,requestId:null,sessionID:null}}),d?.(!0),window.localStorage.setItem(_i,"yes")};return o.createElement("div",{className:"consent-bg"},o.createElement("div",{className:"consent"},o.createElement("div",{className:"consent-col"},o.createElement("div",{className:"consent-title"},i??"Privacy Policy"),o.createElement("div",{className:"consent-content"},n??"This site uses cookies to improve your online experience. By continuing to use the site please agree the policy first.")),o.createElement("div",{className:"consent-col"},o.createElement("button",{className:"consent-btn",onClick:c},"Agree"),o.createElement("a",{className:"consent-policy",target:"_blank",href:l},s??"More information"))))};var Bn=o.memo(Nn);const Di=o.createContext({rtcList:[],tagList:[]});var Ft;(function(t){t[t.BFF=5]="BFF"})(Ft||(Ft={}));const Ai=["utm_source","utm_medium","utm_campaign","utm_id","utm_content","cl_source"],Rn=({render:t,dataSources:e,utmVal:i,enableReportEvent:n=!0,maxSize:l,defaultSize:s,isPreview:d=!1,sxpParameter:a,appDomain:r,hashTagSize:u,loadingImage:c,isOpenHashTag:v=!1,enabledMetaConversionApi:m=!1,consentHeight:w,consentWidth:y,isShowTag:S=!0,isOpenConsent:I=!1,globalConfig:p})=>{var b,f,x,k,h,P,C;const[g,E]=o.useState([]),[A,T]=o.useState([]),[D,O]=o.useState(!1),[L,z]=o.useState({rtc:"",requestId:""}),F=o.useRef(null),B=o.useRef(!1),[N,R]=o.useState(()=>!!window.localStorage.getItem(_i)),[j,_]=o.useState(),[G,V]=o.useState(),[$,J]=o.useState(v),[ee,Y]=o.useState([]),[pe,W]=o.useState(0),[oe,K]=o.useState(!1),[Q,me]=o.useState(null),Ce=o.useRef(),Pe=o.useRef();o.useEffect(()=>{const H=U=>{Ce.current=U};return tt.on($e.CHANGE_THEME_TAG,H),()=>{tt.off($e.CHANGE_THEME_TAG,H)}},[]),o.useEffect(()=>{J(v)},[v]);const Ve=o.useMemo(()=>e?.find(H=>H.type===Ft.BFF),[e]),q=o.useCallback((H,U)=>{if(!Ve)return;const re=Ve.url,be=ki();if(U?.query){const he=Bt.stringify(U.query);H=`${H}?${he}`}return U.type==="beacon"&&navigator.sendBeacon?navigator.sendBeacon(`${re}/api/v1${H}`,new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({},Ve.headers),{"x-user-id":be}),U.body))],{type:"application/json;charset=UTF-8"})):window.fetch(`${re}/api/v1${H}`,{headers:Object.assign({"Content-Type":"application/json","x-user-id":be},Ve.headers),method:U.method,body:JSON.stringify(U.body)}).then(he=>he.json()).catch(he=>Promise.reject(he))},[Ve]),ce=o.useCallback(H=>Le(void 0,void 0,void 0,function*(){var U,re,be,he,Se;if(H={maxSize:(U=H?.maxSize)!==null&&U!==void 0?U:l,defaultSize:(re=H?.defaultSize)!==null&&re!==void 0?re:s,"itemFilter.itemId":H?.["itemFilter.itemId"],"itemFilter.itemType":H?.["itemFilter.itemType"],hashTag:H?.hashTag,traceInfo:H?.traceInfo,themeTag:H?.themeTag},i){const Te=(Se=(he=(be=i?.split("&"))===null||be===void 0?void 0:be.filter(Ze=>{const st=Ze.split("=")[0];return Ai.includes(st)}))===null||he===void 0?void 0:he.join("&"))!==null&&Se!==void 0?Se:"";H=Object.assign(Object.assign({},H),{channel:decodeURIComponent(Te)})}const ge=yield q?.("/recommend/list",{method:"GET",query:H});if(ge?.success)return H?.hashTag||z({rtc:ge.data.rtc,requestId:ge.data.requestId}),ge?.data}),[q,i,l,s]),fe=o.useCallback(()=>Le(void 0,void 0,void 0,function*(){var H,U;if(g.length<=0)return;const re=yield ce({hashTag:G?.hashTag,"itemFilter.itemId":G?.itemId,"itemFilter.itemType":G?.itemType,themeTag:Ce.current});E(g.concat((H=re?.recList)!==null&&H!==void 0?H:[])),Y(ee.concat((U=re?.recList)!==null&&U!==void 0?U:[]))}),[ce,g,G,ee]),te=o.useCallback(({userInfo:H,eventInfo:U})=>{if(!n)return;H||(H={});const re=On(),be=Object.assign({sessionID:re,rtc:L.rtc,requestId:L.requestId},U),he=Object.entries(H).map(([ge,Te])=>({name:ge,value:Te})),Se=Object.entries(be).map(([ge,Te])=>Te&&{name:ge,value:Te}).filter(Boolean);return console.log("======== \u4E8B\u4EF6\u4E0A\u62A5 ========"),console.log("userInfo:",H),console.log("eventInfo:",be),console.log("========= \u7ED3\u675F ========="),q?.("/event/report",{method:"POST",body:{userInfo:he,eventInfo:Se},type:"beacon"})},[q,L,n]),Ye=o.useCallback(H=>{var U,{eventName:re,actionSource:be="website",eventSourceUrl:he=(U=window?.location)===null||U===void 0?void 0:U.href,externalId:Se}=H;if(!n||!m)return;const ge=ki();return q?.("/fb/events",{method:"POST",body:{eventName:re,actionSource:be,eventSourceUrl:he,userData:{externalId:ge}},type:"beacon"})},[q,n,m]),De=o.useCallback(H=>Le(void 0,void 0,void 0,function*(){const U=yield q?.("/recommend/like",{method:"POST",body:H});return U?.success}),[q]),Qe=o.useCallback(H=>Le(void 0,void 0,void 0,function*(){const U=yield q?.("/recommend/unlike",{method:"POST",body:H});return U?.success}),[q]),qe=o.useCallback(H=>Le(void 0,void 0,void 0,function*(){const U=yield q?.("/customform",{method:"POST",body:H});return U?.success}),[q]),Ee=o.useCallback(()=>Le(void 0,void 0,void 0,function*(){var H,U,re,be,he;if(!(!i||!S))try{const Se=(re=(U=(H=i?.split("&"))===null||H===void 0?void 0:H.filter(Te=>{const Ze=Te.split("=")[0];return Ai.includes(Ze)}))===null||U===void 0?void 0:U.join("&"))!==null&&re!==void 0?re:"",ge=yield q?.("/tag/list",{method:"GET",query:{channel:decodeURIComponent(Se)}});T((he=(be=ge?.data)===null||be===void 0?void 0:be.tags)!==null&&he!==void 0?he:[])}catch(Se){console.log("e",Se)}}),[q,i,S]),Nt=o.useCallback((H,U,re,be)=>{var he,Se,ge,Te,Ze,st,ht,M,ne,X,ae,de;const le=re?.bindCta,Z=((he=U?.video)===null||he===void 0?void 0:he.bindProduct)||((Se=U?.video)===null||Se===void 0?void 0:Se.bindProducts)&&((Te=(ge=U?.video)===null||ge===void 0?void 0:ge.bindProducts)===null||Te===void 0?void 0:Te.length)>0;let se="";oe?se="hashTagPage":!((Ze=U?.video)===null||Ze===void 0)&&Ze.url?se="videoPage":!((ht=(st=U?.video)===null||st===void 0?void 0:st.imgUrls)===null||ht===void 0)&&ht.length&&(se="imagePage"),te?.({eventInfo:Object.assign(Object.assign({},H),{ctaId:(M=le?.itemId)!==null&&M!==void 0?M:"",ctaName:(ne=le?.title)!==null&&ne!==void 0?ne:"",contentTags:JSON.stringify(le?.tags),position:be+"",contentId:(ae=(X=U?.video)===null||X===void 0?void 0:X.itemId)!==null&&ae!==void 0?ae:"",productId:Z?re?.itemId:"",traceInfo:(de=le?.traceInfo)!==null&&de!==void 0?de:"",fromKName:se})})},[te,oe]),mt=o.useCallback(()=>{var H,U;const re=location.search.slice(1),be=Bt.parse(re.replace(/\+/g,"%2B"));for(const ge in be)be[ge]=be[ge].replace(/%2B/g,"+");const he=ge=>{var Te;return(Te=be[ge])!==null&&Te!==void 0?Te:""},Se=new Date;Pe.current=Se,te?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:he("utm_source"),utmMedium:he("utm_medium"),utmCampaign:he("utm_campaign"),utmId:he("utm_id"),utmContent:he("utm_content"),enterTime:Math.floor(Se/1e3)+"",requestId:null,enterUrl:(U=(H=window?.location)===null||H===void 0?void 0:H.href)!==null&&U!==void 0?U:"",clSource:he("cl_source")}})},[te]);o.useEffect(()=>{mt()},[]),o.useEffect(()=>{N&&(O(!0),Ee(),ce().then(H=>{var U,re;E((U=H?.recList)!==null&&U!==void 0?U:[]),Y((re=H?.recList)!==null&&re!==void 0?re:[])}).finally(()=>{te({eventInfo:{eventSubject:"apiRequest",eventDescription:"api request succeed"}}),O(!1),B.current=!0}))},[N]),o.useEffect(()=>{B.current&&(O(!0),Ee(),ce().then(H=>{var U,re;E((U=H?.recList)!==null&&U!==void 0?U:[]),Y((re=H?.recList)!==null&&re!==void 0?re:[])}).finally(()=>{O(!1)}))},[ce,Ee]);const St=He("/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif",r);return o.createElement(Di.Provider,{value:{rtcList:g,setRtcList:E,mutateLike:De,mutateUnlike:Qe,submitForm:qe,popupDetailData:j,loadVideos:fe,setPopupDetailData:_,getRecommendVideos:ce,bffEventReport:te,utmVal:i,isPreview:d,loading:D,sxpParameter:a,waterFallData:G,setWaterFallData:V,ctaEvent:Nt,swiperRef:F,openHashtag:$,setOpenHashtag:J,cacheRtcList:ee,setCacheRtcList:Y,cacheActiveIndex:pe,setCacheActiveIndex:W,isFromHashtag:oe,setIsFromHashtag:K,appDomain:r,hashTagSize:u,loadingImage:c??St,isOpenHashTag:v,tagList:A,setLoading:O,videoRef:Q,setVideoRef:me,bffFbReport:Ye,isAgreePolicy:N,setIsAgreePolicy:R,curTime:Pe,h5EnterLink:mt,themeTag:Ce}},!((k=(x=(f=(b=p?.consent)===null||b===void 0?void 0:b[0])===null||f===void 0?void 0:f.item)===null||x===void 0?void 0:x.props)===null||k===void 0)&&k.privacy_necessity&&!N||I?o.createElement(Bn,Object.assign({},(C=(P=(h=p?.consent)===null||h===void 0?void 0:h[0])===null||P===void 0?void 0:P.item)===null||C===void 0?void 0:C.props)):t({rtcList:g,mutateLike:De,mutateUnlike:Qe,submitForm:qe,tagList:A}))};var Pi=o.memo(Rn);function ve(){return o.useContext(Di)}var Oi;(function(t){t.STRING="string",t.NUMBER="number",t.ARRAY="array",t.OBJECT="object",t.BOOLEAN="boolean",t.ARRAY_OBJECT="array-object",t.ARRAY_STRING="array-string",t.ARRAY_NUMBER="array-number"})(Oi||(Oi={}));const Mi=o.createContext({$store:{},options:[],configs:[]}),zn=({children:t,isSsr:e,enable:i})=>{const[n,l]=o.useState([]),{schema:s}=et(),[d,a]=o.useState(s.__STORE__||{}),[r,u]=o.useState([]);o.useEffect(()=>{var m;e||xe.isEqual(r,s?.dataSource)||u((m=s?.dataSource)!==null&&m!==void 0?m:[])},[s?.dataSource,e]);const c=o.useCallback(()=>Le(void 0,void 0,void 0,function*(){const{$store:m,idMapName:w}=yield Si("",r);a(m),v(m,w)}),[r]),v=(m,w)=>{const y=[];Object.entries(m).forEach(([S,I])=>{Object.keys(I).forEach(p=>{const b={label:`${w[S]} - ${p}`,value:`{{ ${S}.${p} }}`};y.push(b)})}),l(y)};return o.useEffect(()=>{e||c()},[c,e,s]),i?o.createElement(Mi.Provider,{value:{$store:s.__STORE__||d,options:n,configs:r}},t):t};var Fn=o.memo(zn);const xt={id:Tt(6,10),item:{type:"common",h:300,category:"block",displayName:"block",isFirstLayout:!0,w:1e3},point:{i:"x-0",x:-38.34375,y:0,w:1e3,h:300,isBounded:!0,actualX:0,actualY:0},pathArr:[0],positionY:0},Vt={id:"",duration:0,name:"none"},Li=o.createContext({resolver:{},currentNode:null,schema:{pointData:[],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},__STORE__:{},sxpPageConf:{}},pageInfoData:{},prePiontData:[],undoStack:[xt],redoStack:[],popup:Vt,setPopup:()=>{}}),ji=o.forwardRef(({children:t,resolver:e,isSsr:i,schema:n,enableDataSource:l=!0,utmVal:s},d)=>{const[a,r]=o.useState(null),[u,c]=o.useState(n||{pointData:[xt],dataSource:[],mobilePiontData:[],type:"PC",pcPiontData:[],pageInfo:{},pcPageConf:{},mobilePageConf:{},sxpPageConf:{}}),[v,m]=o.useState([xt]),[w,y]=o.useState([[xt]]),[S,I]=o.useState([]),[p,b]=o.useState(Vt);typeof window<"u"&&(window.sxpPopup=(P,C)=>{b(Object.assign(Object.assign(Object.assign({},Vt),{id:P}),C))}),typeof window<"u"&&(window.getJointUtmLink=P=>P?.indexOf("?")!==-1?P+(s?"&"+s:""):P+(s?"?"+s:"")),o.useEffect(()=>{y([u.pointData]),I([])},[u.type]);const f=o.useCallback(P=>{const C=xe.cloneDeep(u);C&&(C.dataSource=P,c?.(C))},[u]),[x,k]=o.useState();o.useImperativeHandle(d,()=>({loadSchema(P){P&&(y([P.pointData]),c(P))},exportSchema(){return xe.cloneDeep(u)},getPageInfoData(){return x},initPageInfoData(P){P&&k(P)}}));const h=o.useMemo(()=>{if(u)return u.type==="PC"?u.pcPageConf:u.mobilePageConf},[u]);return o.createElement(Li.Provider,{value:{resolver:e,currentNode:a,schema:u,setCurrentNode:r,setSchema:c,saveDataSource:f,prePiontData:v,setPrePiontData:m,pageInfoData:x,setPageInfoData:P=>k(Object.assign(Object.assign({},x),P)),undoStack:w,redoStack:S,setRedoStack:I,setUndoStack:y,getCurPageConf:h,popup:p,setPopup:b}},o.createElement(Fn,{isSsr:i,enable:l},t))});var Vn=Object.freeze({__proto__:null,EditorCore:ji}),Hn=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];const ue=[{label:"defalut",value:"appFont"}],Ht=typeof window<"u"&&window?.localStorage.getItem("sxp_font_links"),Un=Ht&&Ht!==""?JSON.parse(Ht):[];var ze={fontOptions:[...ue,...Un]},Ut,Gt,$t,Gn=[{type:"Text",label:"\u7EC4\u4EF6\u540D\u79F0",name:"name"},{title:"\u8868\u5355\u4FE1\u606F",child:[{type:"Text",label:"\u6807\u9898",name:["props","title"]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Color",name:["textStyle","color"]},{type:"Select",name:["textStyle","fontFamily"],options:ue,initialValue:(Ut=ue?.[0])===null||Ut===void 0?void 0:Ut.value},{type:"Number",name:["textStyle","fontSize"],addonAfter:"px"}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle",name:["textStyle"]},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign",name:["textStyle"]},{label:"\u8868\u5355\u5E03\u5C40",type:"Radius",options:[{label:"\u5DE6\u53F3",value:"horizontal"},{label:"\u4E0A\u4E0B",value:"vertical"},{label:"\u63D0\u793A",value:void 0}],name:["props","layoutType"]},{label:"\u63D0\u4EA4\u6309\u94AE\u6587\u672C",type:"Text",name:["props","submitText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Select",name:["props","submitButtonStyle","fontFamily"],options:ze?.fontOptions,initialValue:($t=(Gt=ze?.fontOptions)===null||Gt===void 0?void 0:Gt[0])===null||$t===void 0?void 0:$t.value},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{type:"TextStyle",name:["props","submitButtonStyle"]},{type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitBgColor"]}]},{title:"\u8868\u5355\u9879",child:[{type:"AddFormItems",name:["props","columns"]}]}];function Be(){const{bffEventReport:t,popupDetailData:e,waterFallData:i,isFromHashtag:n}=ve(),l=o.useCallback((a,r,u,c)=>{var v,m,w,y,S,I,p,b,f,x,k,h,P,C;let g="";e&&(!((m=(v=a?.video)===null||v===void 0?void 0:v.bindProducts)===null||m===void 0)&&m.length||!((w=a?.video)===null||w===void 0)&&w.bindProduct)?g="pdpPage":n?g="hashTagPage":!((y=a?.video)===null||y===void 0)&&y.url?g="videoPage":!((S=a?.video)===null||S===void 0)&&S.imgUrls&&(!((p=(I=a?.video)===null||I===void 0?void 0:I.imgUrls)===null||p===void 0)&&p.length)?g="imagePage":a?.product&&(g="productPage"),t?.({eventInfo:{eventSubject:"jumpToWeb",eventDescription:"User jumped to website",productId:(b=r?.itemId)!==null&&b!==void 0?b:"",productName:(f=r?.title)!==null&&f!==void 0?f:"",price:r?.price?r?.price+"":"0",productCollection:(x=r?.collection)!==null&&x!==void 0?x:"",fromKName:g,fromKPage:location?.href,contentTags:r?.tags?JSON.stringify(r?.tags):"",position:c+"",contentId:(h=(k=a?.video)===null||k===void 0?void 0:k.itemId)!==null&&h!==void 0?h:"",ctatId:(P=u?.itemId)!==null&&P!==void 0?P:"",traceInfo:(C=r?.traceInfo)!==null&&C!==void 0?C:""}})},[t,e,n]),s=o.useCallback((a,r,u,c,v)=>{var m,w,y,S;let I="";e&&(!((w=(m=a?.video)===null||m===void 0?void 0:m.bindProducts)===null||w===void 0)&&w.length||!((y=a?.video)===null||y===void 0)&&y.bindProduct)?I="pdpPage":a?.product&&(I="productPage"),t?.({eventInfo:{productId:r?.itemId,productName:r?.title,price:r?.price?r?.price+"":"0",productCollection:r?.collection,fromKName:I,fromKPage:location?.href,contentTags:JSON.stringify(r?.tags),position:v+"",contentId:(S=a?.video)===null||S===void 0?void 0:S.itemId,ctatId:u?.itemId,traceInfo:r?.traceInfo,timeOnSite:Math.floor((new Date-c)/1e3)+"",eventSubject:"productView",eventDescription:"User browsed the product"}})},[t,e]),d=o.useCallback((a,r,u)=>{t?.({eventInfo:{lastFeed:a,themeTags:r?`[${r}]`:"",hashTags:u?`[${u}]`:"",eventSubject:"backMainFeed",eventDescription:"back Main Feed"}})},[t]);return{jumpToWeb:l,productView:s,backMainFeed:d}}const $n=t=>{var{columns:e,style:i,title:n,textStyle:l,submitBgColor:s,submitColor:d,submitText:a,layoutType:r,isExternalLink:u,isPopup:c,onClick:v,onClose:m,submitButtonStyle:w}=t,y=ke(t,["columns","style","title","textStyle","submitBgColor","submitColor","submitText","layoutType","isExternalLink","isPopup","onClick","onClose","submitButtonStyle"]);const{submitForm:S,popupDetailData:I}=ve(),{jumpToWeb:p}=Be(),b=o.useRef(),[f,x]=o.useState(!1),k=o.useMemo(()=>[{title:"",dataIndex:"field",valueType:"text",key:"1"},{title:"",dataIndex:"field",valueType:"text",key:"2"},{title:"",dataIndex:"field",valueType:"text",key:"3"},{title:"",dataIndex:"field",valueType:"text",key:"4"}],[]),h=o.useMemo(()=>{if(r===void 0){const C=xe.cloneDeep(e)||k;return C?.map(g=>Object.assign(Object.assign({},g),{title:void 0,fieldProps:{placeholder:g?.title}}))}else return xe.cloneDeep(e)||k},[r,e,k]),P=xe.debounce(()=>Le(void 0,void 0,void 0,function*(){var C,g,E,A,T,D;const O=yield(C=b?.current)===null||C===void 0?void 0:C.getFieldsValue();if(!O)return;const L=(E=(g=Object.keys(O))===null||g===void 0?void 0:g.map(F=>{var B;return{name:F,value:(B=O[F])!==null&&B!==void 0?B:""}}))===null||E===void 0?void 0:E.filter(F=>F?.value);if(!L||!L?.length)return;x(!0);const z=yield S?.({attributes:L});if(x(!1),z){if(u){const F=I,B=(A=F?.video)===null||A===void 0?void 0:A.bindProduct,N=(D=(T=F?.video)===null||T===void 0?void 0:T.bindProduct)===null||D===void 0?void 0:D.bindCta,R=I?.index;p(F,B,N,R)}c||m?.(),v?.()}}),1e3);return o.createElement("div",{className:"pb-appoint-form"},o.createElement("div",{className:`pb-appoint-form-title ${ie.css(Object.assign({},l))}`},n),o.createElement("div",Object.assign({className:ie.css(Object.assign({},i))},y),o.createElement("div",{className:"pb-appoint-form-container"},o.createElement(Sn.BetaSchemaForm,{columns:h,submitter:!1,layout:r,autoFocusFirstInput:!1,size:"large",formRef:b,className:"panel-reset"}))),o.createElement("div",{className:"pb-appoint-form-btn-wrapper"},o.createElement("button",{onClick:P,className:"pb-appoint-form-btn",style:Object.assign({color:d,background:s},w)},f?o.createElement(o.Fragment,null,"loading..."):a)))};var Wn=o.memo($n);function Re(t,e){return t.extend=e,t}const Yn=Re(Wn,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"popup",type:"AppointForm",related:{settingRender:Gn,bindableProps:[],interactionRender:Hn},defaulSetting:{name:"\u8868\u5355",props:{title:"Appointment Booking",submitColor:"#fff",submitBgColor:"#000",submitText:"Submit",layoutType:void 0},style:{},textStyle:{fontSize:14,color:"#000",textAlign:"center"}},w:100,h:40,sort:2});var Wt,Yt,qn=[{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",child:[{label:"\u4E0A\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginTop"]},{label:"\u4E0B\u8FB9\u8DDD",type:"Number",addonAfter:"px",name:["marginBottom"]}]},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Color",name:["color"]},{type:"Select",options:ue,name:["fontFamily"],initialValue:(Wt=ue?.[0])===null||Wt===void 0?void 0:Wt.value},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Select",name:["props","buttonStyle","fontFamily"],options:ue,initialValue:(Yt=ue?.[0])===null||Yt===void 0?void 0:Yt.value},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]}]}];function Ni(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function qt(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Ni(e[i])&&Ni(t[i])&&Object.keys(e[i]).length>0&&qt(t[i],e[i])})}const Bi={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function We(){const t=typeof document<"u"?document:{};return qt(t,Bi),t}const Xn={document:Bi,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function je(){const t=typeof window<"u"?window:{};return qt(t,Xn),t}function ot(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Jn(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function pt(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Ue(){return Date.now()}function Kn(t){const e=je();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Qn(t,e){e===void 0&&(e="x");const i=je();let n,l,s;const d=Kn(t);return i.WebKitCSSMatrix?(l=d.transform||d.webkitTransform,l.split(",").length>6&&(l=l.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new i.WebKitCSSMatrix(l==="none"?"":l)):(s=d.MozTransform||d.OTransform||d.MsTransform||d.msTransform||d.transform||d.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=s.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?l=s.m41:n.length===16?l=parseFloat(n[12]):l=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?l=s.m42:n.length===16?l=parseFloat(n[13]):l=parseFloat(n[5])),l||0}function Et(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Zn(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Fe(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(n!=null&&!Zn(n)){const l=Object.keys(Object(n)).filter(s=>e.indexOf(s)<0);for(let s=0,d=l.length;s<d;s+=1){const a=l[s],r=Object.getOwnPropertyDescriptor(n,a);r!==void 0&&r.enumerable&&(Et(t[a])&&Et(n[a])?n[a].__swiper__?t[a]=n[a]:Fe(t[a],n[a]):!Et(t[a])&&Et(n[a])?(t[a]={},n[a].__swiper__?t[a]=n[a]:Fe(t[a],n[a])):t[a]=n[a])}}}return t}function Ct(t,e,i){t.style.setProperty(e,i)}function Ri(t){let{swiper:e,targetPosition:i,side:n}=t;const l=je(),s=-e.translate;let d=null,a;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(e.cssModeFrameID);const u=i>s?"next":"prev",c=(m,w)=>u==="next"&&m>=w||u==="prev"&&m<=w,v=()=>{a=new Date().getTime(),d===null&&(d=a);const m=Math.max(Math.min((a-d)/r,1),0),w=.5-Math.cos(m*Math.PI)/2;let y=s+w*(i-s);if(c(y,i)&&(y=i),e.wrapperEl.scrollTo({[n]:y}),c(y,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:y})}),l.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=l.requestAnimationFrame(v)};v()}function Xe(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function It(t){try{console.warn(t);return}catch{}}function bt(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:ot(e)),i}function eo(t){const e=je(),i=We(),n=t.getBoundingClientRect(),l=i.body,s=t.clientTop||l.clientTop||0,d=t.clientLeft||l.clientLeft||0,a=t===e?e.scrollY:t.scrollTop,r=t===e?e.scrollX:t.scrollLeft;return{top:n.top+a-s,left:n.left+r-d}}function to(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function io(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function lt(t,e){return je().getComputedStyle(t,null).getPropertyValue(e)}function _t(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function zi(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function Xt(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function Jt(t,e,i){const n=je();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function Je(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function no(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const s=je();i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let d,a=Ue(),r;const u=[];function c(f){let P=0,C=0,g=0,E=0;return"detail"in f&&(C=f.detail),"wheelDelta"in f&&(C=-f.wheelDelta/120),"wheelDeltaY"in f&&(C=-f.wheelDeltaY/120),"wheelDeltaX"in f&&(P=-f.wheelDeltaX/120),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(P=C,C=0),g=P*10,E=C*10,"deltaY"in f&&(E=f.deltaY),"deltaX"in f&&(g=f.deltaX),f.shiftKey&&!g&&(g=E,E=0),(g||E)&&f.deltaMode&&(f.deltaMode===1?(g*=40,E*=40):(g*=800,E*=800)),g&&!P&&(P=g<1?-1:1),E&&!C&&(C=E<1?-1:1),{spinX:P,spinY:C,pixelX:g,pixelY:E}}function v(){e.enabled&&(e.mouseEntered=!0)}function m(){e.enabled&&(e.mouseEntered=!1)}function w(f){return e.params.mousewheel.thresholdDelta&&f.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Ue()-a<e.params.mousewheel.thresholdTime?!1:f.delta>=6&&Ue()-a<60?!0:(f.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),l("scroll",f.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),l("scroll",f.raw)),a=new s.Date().getTime(),!1)}function y(f){const x=e.params.mousewheel;if(f.direction<0){if(e.isEnd&&!e.params.loop&&x.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&x.releaseOnEdges)return!0;return!1}function S(f){let x=f,k=!0;if(!e.enabled||f.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const h=e.params.mousewheel;e.params.cssMode&&x.preventDefault();let P=e.el;e.params.mousewheel.eventsTarget!=="container"&&(P=document.querySelector(e.params.mousewheel.eventsTarget));const C=P&&P.contains(x.target);if(!e.mouseEntered&&!C&&!h.releaseOnEdges)return!0;x.originalEvent&&(x=x.originalEvent);let g=0;const E=e.rtlTranslate?-1:1,A=c(x);if(h.forceToAxis)if(e.isHorizontal())if(Math.abs(A.pixelX)>Math.abs(A.pixelY))g=-A.pixelX*E;else return!0;else if(Math.abs(A.pixelY)>Math.abs(A.pixelX))g=-A.pixelY;else return!0;else g=Math.abs(A.pixelX)>Math.abs(A.pixelY)?-A.pixelX*E:-A.pixelY;if(g===0)return!0;h.invert&&(g=-g);let T=e.getTranslate()+g*h.sensitivity;if(T>=e.minTranslate()&&(T=e.minTranslate()),T<=e.maxTranslate()&&(T=e.maxTranslate()),k=e.params.loop?!0:!(T===e.minTranslate()||T===e.maxTranslate()),k&&e.params.nested&&x.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const D={time:Ue(),delta:Math.abs(g),direction:Math.sign(g),raw:f};u.length>=2&&u.shift();const O=u.length?u[u.length-1]:void 0;if(u.push(D),O?(D.direction!==O.direction||D.delta>O.delta||D.time>O.time+150)&&w(D):w(D),y(D))return!0}else{const D={time:Ue(),delta:Math.abs(g),direction:Math.sign(g)},O=r&&D.time<r.time+500&&D.delta<=r.delta&&D.direction===r.direction;if(!O){r=void 0;let L=e.getTranslate()+g*h.sensitivity;const z=e.isBeginning,F=e.isEnd;if(L>=e.minTranslate()&&(L=e.minTranslate()),L<=e.maxTranslate()&&(L=e.maxTranslate()),e.setTransition(0),e.setTranslate(L),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!z&&e.isBeginning||!F&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:D.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(d),d=void 0,u.length>=15&&u.shift();const B=u.length?u[u.length-1]:void 0,N=u[0];if(u.push(D),B&&(D.delta>B.delta||D.direction!==B.direction))u.splice(0);else if(u.length>=15&&D.time-N.time<500&&N.delta-D.delta>=1&&D.delta<=6){const R=g>0?.8:.2;r=D,u.splice(0),d=pt(()=>{e.slideToClosest(e.params.speed,!0,void 0,R)},0)}d||(d=pt(()=>{r=D,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(O||l("scroll",x),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),h.releaseOnEdges&&(L===e.minTranslate()||L===e.maxTranslate()))return!0}}return x.preventDefault?x.preventDefault():x.returnValue=!1,!1}function I(f){let x=e.el;e.params.mousewheel.eventsTarget!=="container"&&(x=document.querySelector(e.params.mousewheel.eventsTarget)),x[f]("mouseenter",v),x[f]("mouseleave",m),x[f]("wheel",S)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",S),!0):e.mousewheel.enabled?!1:(I("addEventListener"),e.mousewheel.enabled=!0,!0)}function b(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,S),!0):e.mousewheel.enabled?(I("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&b(),e.params.mousewheel.enabled&&p()}),n("destroy",()=>{e.params.cssMode&&p(),e.mousewheel.enabled&&b()}),Object.assign(e.mousewheel,{enable:p,disable:b})}function Fi(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(l=>{if(!i[l]&&i.auto===!0){let s=Xe(t.el,`.${n[l]}`)[0];s||(s=bt("div",n[l]),s.className=n[l],t.el.append(s)),i[l]=s,e[l]=s}}),i}function vt(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function kt(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const s="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:p=>p,formatFractionTotal:p=>p,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let d,a=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(p,b){const{bulletActiveClass:f}=e.params.pagination;p&&(p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${f}-${b}`),p=p[`${b==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${f}-${b}-${b}`)))}function c(p){const b=p.target.closest(vt(e.params.pagination.bulletClass));if(!b)return;p.preventDefault();const f=_t(b)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===f)return;e.slideToLoop(f)}else e.slideTo(f)}function v(){const p=e.rtl,b=e.params.pagination;if(r())return;let f=e.pagination.el;f=Je(f);let x,k;const h=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,P=e.params.loop?Math.ceil(h/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(k=e.previousRealIndex||0,x=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(x=e.snapIndex,k=e.previousSnapIndex):(k=e.previousIndex||0,x=e.activeIndex||0),b.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const C=e.pagination.bullets;let g,E,A;if(b.dynamicBullets&&(d=Jt(C[0],e.isHorizontal()?"width":"height",!0),f.forEach(T=>{T.style[e.isHorizontal()?"width":"height"]=`${d*(b.dynamicMainBullets+4)}px`}),b.dynamicMainBullets>1&&k!==void 0&&(a+=x-(k||0),a>b.dynamicMainBullets-1?a=b.dynamicMainBullets-1:a<0&&(a=0)),g=Math.max(x-a,0),E=g+(Math.min(C.length,b.dynamicMainBullets)-1),A=(E+g)/2),C.forEach(T=>{const D=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(O=>`${b.bulletActiveClass}${O}`)].map(O=>typeof O=="string"&&O.includes(" ")?O.split(" "):O).flat();T.classList.remove(...D)}),f.length>1)C.forEach(T=>{const D=_t(T);D===x?T.classList.add(...b.bulletActiveClass.split(" ")):e.isElement&&T.setAttribute("part","bullet"),b.dynamicBullets&&(D>=g&&D<=E&&T.classList.add(...`${b.bulletActiveClass}-main`.split(" ")),D===g&&u(T,"prev"),D===E&&u(T,"next"))});else{const T=C[x];if(T&&T.classList.add(...b.bulletActiveClass.split(" ")),e.isElement&&C.forEach((D,O)=>{D.setAttribute("part",O===x?"bullet-active":"bullet")}),b.dynamicBullets){const D=C[g],O=C[E];for(let L=g;L<=E;L+=1)C[L]&&C[L].classList.add(...`${b.bulletActiveClass}-main`.split(" "));u(D,"prev"),u(O,"next")}}if(b.dynamicBullets){const T=Math.min(C.length,b.dynamicMainBullets+4),D=(d*T-d)/2-A*d,O=p?"right":"left";C.forEach(L=>{L.style[e.isHorizontal()?O:"top"]=`${D}px`})}}f.forEach((C,g)=>{if(b.type==="fraction"&&(C.querySelectorAll(vt(b.currentClass)).forEach(E=>{E.textContent=b.formatFractionCurrent(x+1)}),C.querySelectorAll(vt(b.totalClass)).forEach(E=>{E.textContent=b.formatFractionTotal(P)})),b.type==="progressbar"){let E;b.progressbarOpposite?E=e.isHorizontal()?"vertical":"horizontal":E=e.isHorizontal()?"horizontal":"vertical";const A=(x+1)/P;let T=1,D=1;E==="horizontal"?T=A:D=A,C.querySelectorAll(vt(b.progressbarFillClass)).forEach(O=>{O.style.transform=`translate3d(0,0,0) scaleX(${T}) scaleY(${D})`,O.style.transitionDuration=`${e.params.speed}ms`})}b.type==="custom"&&b.renderCustom?(C.innerHTML=b.renderCustom(e,x+1,P),g===0&&l("paginationRender",C)):(g===0&&l("paginationRender",C),l("paginationUpdate",C)),e.params.watchOverflow&&e.enabled&&C.classList[e.isLocked?"add":"remove"](b.lockClass)})}function m(){const p=e.params.pagination;if(r())return;const b=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let f=e.pagination.el;f=Je(f);let x="";if(p.type==="bullets"){let k=e.params.loop?Math.ceil(b/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&k>b&&(k=b);for(let h=0;h<k;h+=1)p.renderBullet?x+=p.renderBullet.call(e,h,p.bulletClass):x+=`<${p.bulletElement} ${e.isElement?'part="bullet"':""} class="${p.bulletClass}"></${p.bulletElement}>`}p.type==="fraction"&&(p.renderFraction?x=p.renderFraction.call(e,p.currentClass,p.totalClass):x=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`),p.type==="progressbar"&&(p.renderProgressbar?x=p.renderProgressbar.call(e,p.progressbarFillClass):x=`<span class="${p.progressbarFillClass}"></span>`),e.pagination.bullets=[],f.forEach(k=>{p.type!=="custom"&&(k.innerHTML=x||""),p.type==="bullets"&&e.pagination.bullets.push(...k.querySelectorAll(vt(p.bulletClass)))}),p.type!=="custom"&&l("paginationRender",f[0])}function w(){e.params.pagination=Fi(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let b;typeof p.el=="string"&&e.isElement&&(b=e.el.querySelector(p.el)),!b&&typeof p.el=="string"&&(b=[...document.querySelectorAll(p.el)]),b||(b=p.el),!(!b||b.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(b)&&b.length>1&&(b=[...e.el.querySelectorAll(p.el)],b.length>1&&(b=b.filter(f=>zi(f,".swiper")[0]===e.el)[0])),Array.isArray(b)&&b.length===1&&(b=b[0]),Object.assign(e.pagination,{el:b}),b=Je(b),b.forEach(f=>{p.type==="bullets"&&p.clickable&&f.classList.add(...(p.clickableClass||"").split(" ")),f.classList.add(p.modifierClass+p.type),f.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(f.classList.add(`${p.modifierClass}${p.type}-dynamic`),a=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&f.classList.add(p.progressbarOppositeClass),p.clickable&&f.addEventListener("click",c),e.enabled||f.classList.add(p.lockClass)}))}function y(){const p=e.params.pagination;if(r())return;let b=e.pagination.el;b&&(b=Je(b),b.forEach(f=>{f.classList.remove(p.hiddenClass),f.classList.remove(p.modifierClass+p.type),f.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&(f.classList.remove(...(p.clickableClass||"").split(" ")),f.removeEventListener("click",c))})),e.pagination.bullets&&e.pagination.bullets.forEach(f=>f.classList.remove(...p.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const p=e.params.pagination;let{el:b}=e.pagination;b=Je(b),b.forEach(f=>{f.classList.remove(p.horizontalClass,p.verticalClass),f.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?I():(w(),m(),v())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&v()}),n("snapIndexChange",()=>{v()}),n("snapGridLengthChange",()=>{m(),v()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:p}=e.pagination;p&&(p=Je(p),p.forEach(b=>b.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{v()}),n("click",(p,b)=>{const f=b.target,x=Je(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&x&&x.length>0&&!f.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&f===e.navigation.nextEl||e.navigation.prevEl&&f===e.navigation.prevEl))return;const k=x[0].classList.contains(e.params.pagination.hiddenClass);l(k===!0?"paginationShow":"paginationHide"),x.forEach(h=>h.classList.toggle(e.params.pagination.hiddenClass))}});const S=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Je(p),p.forEach(b=>b.classList.remove(e.params.pagination.paginationDisabledClass))),w(),m(),v()},I=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=Je(p),p.forEach(b=>b.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:S,disable:I,render:m,update:v,init:w,destroy:y})}function oo(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const s=We();let d=!1,a=null,r=null,u,c,v,m;i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function w(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:T,rtlTranslate:D}=e,{dragEl:O,el:L}=T,z=e.params.scrollbar,F=e.params.loop?e.progressLoop:e.progress;let B=c,N=(v-c)*F;D?(N=-N,N>0?(B=c-N,N=0):-N+c>v&&(B=v+N)):N<0?(B=c+N,N=0):N+c>v&&(B=v-N),e.isHorizontal()?(O.style.transform=`translate3d(${N}px, 0, 0)`,O.style.width=`${B}px`):(O.style.transform=`translate3d(0px, ${N}px, 0)`,O.style.height=`${B}px`),z.hide&&(clearTimeout(a),L.style.opacity=1,a=setTimeout(()=>{L.style.opacity=0,L.style.transitionDuration="400ms"},1e3))}function y(T){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${T}ms`)}function S(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:T}=e,{dragEl:D,el:O}=T;D.style.width="",D.style.height="",v=e.isHorizontal()?O.offsetWidth:O.offsetHeight,m=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?c=v*m:c=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?D.style.width=`${c}px`:D.style.height=`${c}px`,m>=1?O.style.display="none":O.style.display="",e.params.scrollbar.hide&&(O.style.opacity=0),e.params.watchOverflow&&e.enabled&&T.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function I(T){return e.isHorizontal()?T.clientX:T.clientY}function p(T){const{scrollbar:D,rtlTranslate:O}=e,{el:L}=D;let z;z=(I(T)-eo(L)[e.isHorizontal()?"left":"top"]-(u!==null?u:c/2))/(v-c),z=Math.max(Math.min(z,1),0),O&&(z=1-z);const F=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*z;e.updateProgress(F),e.setTranslate(F),e.updateActiveIndex(),e.updateSlidesClasses()}function b(T){const D=e.params.scrollbar,{scrollbar:O,wrapperEl:L}=e,{el:z,dragEl:F}=O;d=!0,u=T.target===F?I(T)-T.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,T.preventDefault(),T.stopPropagation(),L.style.transitionDuration="100ms",F.style.transitionDuration="100ms",p(T),clearTimeout(r),z.style.transitionDuration="0ms",D.hide&&(z.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),l("scrollbarDragStart",T)}function f(T){const{scrollbar:D,wrapperEl:O}=e,{el:L,dragEl:z}=D;d&&(T.preventDefault?T.preventDefault():T.returnValue=!1,p(T),O.style.transitionDuration="0ms",L.style.transitionDuration="0ms",z.style.transitionDuration="0ms",l("scrollbarDragMove",T))}function x(T){const D=e.params.scrollbar,{scrollbar:O,wrapperEl:L}=e,{el:z}=O;d&&(d=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",L.style.transitionDuration=""),D.hide&&(clearTimeout(r),r=pt(()=>{z.style.opacity=0,z.style.transitionDuration="400ms"},1e3)),l("scrollbarDragEnd",T),D.snapOnRelease&&e.slideToClosest())}function k(T){const{scrollbar:D,params:O}=e,L=D.el;if(!L)return;const z=L,F=O.passiveListeners?{passive:!1,capture:!1}:!1,B=O.passiveListeners?{passive:!0,capture:!1}:!1;if(!z)return;const N=T==="on"?"addEventListener":"removeEventListener";z[N]("pointerdown",b,F),s[N]("pointermove",f,F),s[N]("pointerup",x,B)}function h(){!e.params.scrollbar.el||!e.scrollbar.el||k("on")}function P(){!e.params.scrollbar.el||!e.scrollbar.el||k("off")}function C(){const{scrollbar:T,el:D}=e;e.params.scrollbar=Fi(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const O=e.params.scrollbar;if(!O.el)return;let L;if(typeof O.el=="string"&&e.isElement&&(L=e.el.querySelector(O.el)),!L&&typeof O.el=="string"){if(L=s.querySelectorAll(O.el),!L.length)return}else L||(L=O.el);e.params.uniqueNavElements&&typeof O.el=="string"&&L.length>1&&D.querySelectorAll(O.el).length===1&&(L=D.querySelector(O.el)),L.length>0&&(L=L[0]),L.classList.add(e.isHorizontal()?O.horizontalClass:O.verticalClass);let z;L&&(z=L.querySelector(vt(e.params.scrollbar.dragClass)),z||(z=bt("div",e.params.scrollbar.dragClass),L.append(z))),Object.assign(T,{el:L,dragEl:z}),O.draggable&&h(),L&&L.classList[e.enabled?"remove":"add"](...ot(e.params.scrollbar.lockClass))}function g(){const T=e.params.scrollbar,D=e.scrollbar.el;D&&D.classList.remove(...ot(e.isHorizontal()?T.horizontalClass:T.verticalClass)),P()}n("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const T=e.params.scrollbar;let{el:D}=e.scrollbar;D=Je(D),D.forEach(O=>{O.classList.remove(T.horizontalClass,T.verticalClass),O.classList.add(e.isHorizontal()?T.horizontalClass:T.verticalClass)})}),n("init",()=>{e.params.scrollbar.enabled===!1?A():(C(),S(),w())}),n("update resize observerUpdate lock unlock changeDirection",()=>{S()}),n("setTranslate",()=>{w()}),n("setTransition",(T,D)=>{y(D)}),n("enable disable",()=>{const{el:T}=e.scrollbar;T&&T.classList[e.enabled?"remove":"add"](...ot(e.params.scrollbar.lockClass))}),n("destroy",()=>{g()});const E=()=>{e.el.classList.remove(...ot(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ot(e.params.scrollbar.scrollbarDisabledClass)),C(),S(),w()},A=()=>{e.el.classList.add(...ot(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ot(e.params.scrollbar.scrollbarDisabledClass)),g()};Object.assign(e.scrollbar,{enable:E,disable:A,updateSize:S,setTranslate:w,init:C,destroy:g})}function Dt(t){let{swiper:e,extendParams:i,on:n,emit:l,params:s}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let d,a,r=s&&s.autoplay?s.autoplay.delay:3e3,u=s&&s.autoplay?s.autoplay.delay:3e3,c,v=new Date().getTime(),m,w,y,S,I,p,b;function f(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",f),!b&&E())}const x=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?m=!0:m&&(u=c,m=!1);const B=e.autoplay.paused?c:v+u-new Date().getTime();e.autoplay.timeLeft=B,l("autoplayTimeLeft",B,B/r),a=requestAnimationFrame(()=>{x()})},k=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.filter(R=>R.classList.contains("swiper-slide-active"))[0]:B=e.slides[e.activeIndex],B?parseInt(B.getAttribute("data-swiper-autoplay"),10):void 0},h=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(a),x();let N=typeof B>"u"?e.params.autoplay.delay:B;r=e.params.autoplay.delay,u=e.params.autoplay.delay;const R=k();!Number.isNaN(R)&&R>0&&typeof B>"u"&&(N=R,r=R,u=R),c=N;const j=e.params.speed,_=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(j,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,j,!0,!0),l("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(j,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,j,!0,!0),l("autoplay")),e.params.cssMode&&(v=new Date().getTime(),requestAnimationFrame(()=>{h()})))};return N>0?(clearTimeout(d),d=setTimeout(()=>{_()},N)):requestAnimationFrame(()=>{_()}),N},P=()=>{v=new Date().getTime(),e.autoplay.running=!0,h(),l("autoplayStart")},C=()=>{e.autoplay.running=!1,clearTimeout(d),cancelAnimationFrame(a),l("autoplayStop")},g=(B,N)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(d),B||(p=!0);const R=()=>{l("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",f):E()};if(e.autoplay.paused=!0,N){I&&(c=e.params.autoplay.delay),I=!1,R();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-v),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),R())},E=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(v=new Date().getTime(),p?(p=!1,h(c)):h(),e.autoplay.paused=!1,l("autoplayResume"))},A=()=>{if(e.destroyed||!e.autoplay.running)return;const B=We();B.visibilityState==="hidden"&&(p=!0,g(!0)),B.visibilityState==="visible"&&E()},T=B=>{B.pointerType==="mouse"&&(p=!0,b=!0,!(e.animating||e.autoplay.paused)&&g(!0))},D=B=>{B.pointerType==="mouse"&&(b=!1,e.autoplay.paused&&E())},O=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",T),e.el.addEventListener("pointerleave",D))},L=()=>{e.el.removeEventListener("pointerenter",T),e.el.removeEventListener("pointerleave",D)},z=()=>{We().addEventListener("visibilitychange",A)},F=()=>{We().removeEventListener("visibilitychange",A)};n("init",()=>{e.params.autoplay.enabled&&(O(),z(),P())}),n("destroy",()=>{L(),F(),e.autoplay.running&&C()}),n("_freeModeStaticRelease",()=>{(y||p)&&E()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?C():g(!0,!0)}),n("beforeTransitionStart",(B,N,R)=>{e.destroyed||!e.autoplay.running||(R||!e.params.autoplay.disableOnInteraction?g(!0,!0):C())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){C();return}w=!0,y=!1,p=!1,S=setTimeout(()=>{p=!0,y=!0,g(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!w)){if(clearTimeout(S),clearTimeout(d),e.params.autoplay.disableOnInteraction){y=!1,w=!1;return}y&&e.params.cssMode&&E(),y=!1,w=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(I=!0)}),Object.assign(e.autoplay,{start:P,stop:C,pause:g,resume:E})}function lo(t){let{swiper:e,extendParams:i,emit:n,once:l}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function s(){if(e.params.cssMode)return;const r=e.getTranslate();e.setTranslate(r),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function d(){if(e.params.cssMode)return;const{touchEventsData:r,touches:u}=e;r.velocities.length===0&&r.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:Ue()})}function a(r){let{currentPos:u}=r;if(e.params.cssMode)return;const{params:c,wrapperEl:v,rtlTranslate:m,snapGrid:w,touchEventsData:y}=e,I=Ue()-y.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length<w.length?e.slideTo(w.length-1):e.slideTo(e.slides.length-1);return}if(c.freeMode.momentum){if(y.velocities.length>1){const C=y.velocities.pop(),g=y.velocities.pop(),E=C.position-g.position,A=C.time-g.time;e.velocity=E/A,e.velocity/=2,Math.abs(e.velocity)<c.freeMode.minimumVelocity&&(e.velocity=0),(A>150||Ue()-C.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=c.freeMode.momentumVelocityRatio,y.velocities.length=0;let p=1e3*c.freeMode.momentumRatio;const b=e.velocity*p;let f=e.translate+b;m&&(f=-f);let x=!1,k;const h=Math.abs(e.velocity)*20*c.freeMode.momentumBounceRatio;let P;if(f<e.maxTranslate())c.freeMode.momentumBounce?(f+e.maxTranslate()<-h&&(f=e.maxTranslate()-h),k=e.maxTranslate(),x=!0,y.allowMomentumBounce=!0):f=e.maxTranslate(),c.loop&&c.centeredSlides&&(P=!0);else if(f>e.minTranslate())c.freeMode.momentumBounce?(f-e.minTranslate()>h&&(f=e.minTranslate()+h),k=e.minTranslate(),x=!0,y.allowMomentumBounce=!0):f=e.minTranslate(),c.loop&&c.centeredSlides&&(P=!0);else if(c.freeMode.sticky){let C;for(let g=0;g<w.length;g+=1)if(w[g]>-f){C=g;break}Math.abs(w[C]-f)<Math.abs(w[C-1]-f)||e.swipeDirection==="next"?f=w[C]:f=w[C-1],f=-f}if(P&&l("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(m?p=Math.abs((-f-e.translate)/e.velocity):p=Math.abs((f-e.translate)/e.velocity),c.freeMode.sticky){const C=Math.abs((m?-f:f)-e.translate),g=e.slidesSizesGrid[e.activeIndex];C<g?p=c.speed:C<2*g?p=c.speed*1.5:p=c.speed*2.5}}else if(c.freeMode.sticky){e.slideToClosest();return}c.freeMode.momentumBounce&&x?(e.updateProgress(k),e.setTransition(p),e.setTranslate(f),e.transitionStart(!0,e.swipeDirection),e.animating=!0,Xt(v,()=>{!e||e.destroyed||!y.allowMomentumBounce||(n("momentumBounce"),e.setTransition(c.speed),setTimeout(()=>{e.setTranslate(k),Xt(v,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(f),e.setTransition(p),e.setTranslate(f),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Xt(v,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(f),e.updateActiveIndex(),e.updateSlidesClasses()}else if(c.freeMode.sticky){e.slideToClosest();return}else c.freeMode&&n("_freeModeNoMomentumRelease");(!c.freeMode.momentum||I>=c.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:s,onTouchMove:d,onTouchEnd:a}})}let Kt;function so(){const t=je(),e=We();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Vi(){return Kt||(Kt=so()),Kt}let Qt;function ao(t){let{userAgent:e}=t===void 0?{}:t;const i=Vi(),n=je(),l=n.navigator.platform,s=e||n.navigator.userAgent,d={ios:!1,android:!1},a=n.screen.width,r=n.screen.height,u=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad).*OS\s([\d_]+)/);const v=s.match(/(iPod)(.*OS\s([\d_]+))?/),m=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),w=l==="Win32";let y=l==="MacIntel";const S=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&y&&i.touch&&S.indexOf(`${a}x${r}`)>=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),y=!1),u&&!w&&(d.os="android",d.android=!0),(c||m||v)&&(d.os="ios",d.ios=!0),d}function Hi(t){return t===void 0&&(t={}),Qt||(Qt=ao(t)),Qt}let Zt;function ro(){const t=je(),e=Hi();let i=!1;function n(){const a=t.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(n()){const a=String(t.navigator.userAgent);if(a.includes("Version/")){const[r,u]=a.split("Version/")[1].split(" ")[0].split(".").map(c=>Number(c));i=r<16||r===16&&u<2}}const l=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),s=n(),d=s||l&&e.ios;return{isSafari:i||s,needPerspectiveFix:i,need3dFix:d,isWebView:l}}function co(){return Zt||(Zt=ro()),Zt}function uo(t){let{swiper:e,on:i,emit:n}=t;const l=je();let s=null,d=null;const a=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},r=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(v=>{d=l.requestAnimationFrame(()=>{const{width:m,height:w}=e;let y=m,S=w;v.forEach(I=>{let{contentBoxSize:p,contentRect:b,target:f}=I;f&&f!==e.el||(y=b?b.width:(p[0]||p).inlineSize,S=b?b.height:(p[0]||p).blockSize)}),(y!==m||S!==w)&&a()})}),s.observe(e.el))},u=()=>{d&&l.cancelAnimationFrame(d),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof l.ResizeObserver<"u"){r();return}l.addEventListener("resize",a),l.addEventListener("orientationchange",c)}),i("destroy",()=>{u(),l.removeEventListener("resize",a),l.removeEventListener("orientationchange",c)})}function po(t){let{swiper:e,extendParams:i,on:n,emit:l}=t;const s=[],d=je(),a=function(c,v){v===void 0&&(v={});const m=d.MutationObserver||d.WebkitMutationObserver,w=new m(y=>{if(e.__preventObserver__)return;if(y.length===1){l("observerUpdate",y[0]);return}const S=function(){l("observerUpdate",y[0])};d.requestAnimationFrame?d.requestAnimationFrame(S):d.setTimeout(S,0)});w.observe(c,{attributes:typeof v.attributes>"u"?!0:v.attributes,childList:typeof v.childList>"u"?!0:v.childList,characterData:typeof v.characterData>"u"?!0:v.characterData}),s.push(w)},r=()=>{if(e.params.observer){if(e.params.observeParents){const c=zi(e.hostEl);for(let v=0;v<c.length;v+=1)a(c[v])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}},u=()=>{s.forEach(c=>{c.disconnect()}),s.splice(0,s.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",r),n("destroy",u)}var vo={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const l=i?"unshift":"push";return t.split(" ").forEach(s=>{n.eventsListeners[s]||(n.eventsListeners[s]=[]),n.eventsListeners[s][l](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function l(){n.off(t,l),l.__emitterProxy&&delete l.__emitterProxy;for(var s=arguments.length,d=new Array(s),a=0;a<s;a++)d[a]=arguments[a];e.apply(n,d)}return l.__emitterProxy=e,n.on(t,l,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((l,s)=>{(l===e||l.__emitterProxy&&l.__emitterProxy===e)&&i.eventsListeners[n].splice(s,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,n;for(var l=arguments.length,s=new Array(l),d=0;d<l;d++)s[d]=arguments[d];return typeof s[0]=="string"||Array.isArray(s[0])?(e=s[0],i=s.slice(1,s.length),n=t):(e=s[0].events,i=s[0].data,n=s[0].context||t),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(r=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[r,...i])}),t.eventsListeners&&t.eventsListeners[r]&&t.eventsListeners[r].forEach(u=>{u.apply(n,i)})}),t}};function fo(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(lt(n,"padding-left")||0,10)-parseInt(lt(n,"padding-right")||0,10),i=i-parseInt(lt(n,"padding-top")||0,10)-parseInt(lt(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function mo(){const t=this;function e(E,A){return parseFloat(E.getPropertyValue(t.getDirectionLabel(A))||0)}const i=t.params,{wrapperEl:n,slidesEl:l,size:s,rtlTranslate:d,wrongRTL:a}=t,r=t.virtual&&i.virtual.enabled,u=r?t.virtual.slides.length:t.slides.length,c=Xe(l,`.${t.params.slideClass}, swiper-slide`),v=r?t.virtual.slides.length:c.length;let m=[];const w=[],y=[];let S=i.slidesOffsetBefore;typeof S=="function"&&(S=i.slidesOffsetBefore.call(t));let I=i.slidesOffsetAfter;typeof I=="function"&&(I=i.slidesOffsetAfter.call(t));const p=t.snapGrid.length,b=t.slidesGrid.length;let f=i.spaceBetween,x=-S,k=0,h=0;if(typeof s>"u")return;typeof f=="string"&&f.indexOf("%")>=0?f=parseFloat(f.replace("%",""))/100*s:typeof f=="string"&&(f=parseFloat(f)),t.virtualSize=-f,c.forEach(E=>{d?E.style.marginLeft="":E.style.marginRight="",E.style.marginBottom="",E.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Ct(n,"--swiper-centered-offset-before",""),Ct(n,"--swiper-centered-offset-after",""));const P=i.grid&&i.grid.rows>1&&t.grid;P?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let C;const g=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(E=>typeof i.breakpoints[E].slidesPerView<"u").length>0;for(let E=0;E<v;E+=1){C=0;let A;if(c[E]&&(A=c[E]),P&&t.grid.updateSlide(E,A,c),!(c[E]&<(A,"display")==="none")){if(i.slidesPerView==="auto"){g&&(c[E].style[t.getDirectionLabel("width")]="");const T=getComputedStyle(A),D=A.style.transform,O=A.style.webkitTransform;if(D&&(A.style.transform="none"),O&&(A.style.webkitTransform="none"),i.roundLengths)C=t.isHorizontal()?Jt(A,"width",!0):Jt(A,"height",!0);else{const L=e(T,"width"),z=e(T,"padding-left"),F=e(T,"padding-right"),B=e(T,"margin-left"),N=e(T,"margin-right"),R=T.getPropertyValue("box-sizing");if(R&&R==="border-box")C=L+B+N;else{const{clientWidth:j,offsetWidth:_}=A;C=L+z+F+B+N+(_-j)}}D&&(A.style.transform=D),O&&(A.style.webkitTransform=O),i.roundLengths&&(C=Math.floor(C))}else C=(s-(i.slidesPerView-1)*f)/i.slidesPerView,i.roundLengths&&(C=Math.floor(C)),c[E]&&(c[E].style[t.getDirectionLabel("width")]=`${C}px`);c[E]&&(c[E].swiperSlideSize=C),y.push(C),i.centeredSlides?(x=x+C/2+k/2+f,k===0&&E!==0&&(x=x-s/2-f),E===0&&(x=x-s/2-f),Math.abs(x)<1/1e3&&(x=0),i.roundLengths&&(x=Math.floor(x)),h%i.slidesPerGroup===0&&m.push(x),w.push(x)):(i.roundLengths&&(x=Math.floor(x)),(h-Math.min(t.params.slidesPerGroupSkip,h))%t.params.slidesPerGroup===0&&m.push(x),w.push(x),x=x+C+f),t.virtualSize+=C+f,k=C,h+=1}}if(t.virtualSize=Math.max(t.virtualSize,s)+I,d&&a&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+f}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+f}px`),P&&t.grid.updateWrapperSize(C,m),!i.centeredSlides){const E=[];for(let A=0;A<m.length;A+=1){let T=m[A];i.roundLengths&&(T=Math.floor(T)),m[A]<=t.virtualSize-s&&E.push(T)}m=E,Math.floor(t.virtualSize-s)-Math.floor(m[m.length-1])>1&&m.push(t.virtualSize-s)}if(r&&i.loop){const E=y[0]+f;if(i.slidesPerGroup>1){const A=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),T=E*i.slidesPerGroup;for(let D=0;D<A;D+=1)m.push(m[m.length-1]+T)}for(let A=0;A<t.virtual.slidesBefore+t.virtual.slidesAfter;A+=1)i.slidesPerGroup===1&&m.push(m[m.length-1]+E),w.push(w[w.length-1]+E),t.virtualSize+=E}if(m.length===0&&(m=[0]),f!==0){const E=t.isHorizontal()&&d?"marginLeft":t.getDirectionLabel("marginRight");c.filter((A,T)=>!i.cssMode||i.loop?!0:T!==c.length-1).forEach(A=>{A.style[E]=`${f}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let E=0;y.forEach(T=>{E+=T+(f||0)}),E-=f;const A=E-s;m=m.map(T=>T<=0?-S:T>A?A+I:T)}if(i.centerInsufficientSlides){let E=0;if(y.forEach(A=>{E+=A+(f||0)}),E-=f,E<s){const A=(s-E)/2;m.forEach((T,D)=>{m[D]=T-A}),w.forEach((T,D)=>{w[D]=T+A})}}if(Object.assign(t,{slides:c,snapGrid:m,slidesGrid:w,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Ct(n,"--swiper-centered-offset-before",`${-m[0]}px`),Ct(n,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const E=-t.snapGrid[0],A=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(T=>T+E),t.slidesGrid=t.slidesGrid.map(T=>T+A)}if(v!==u&&t.emit("slidesLengthChange"),m.length!==p&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),w.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!r&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const E=`${i.containerModifierClass}backface-hidden`,A=t.el.classList.contains(E);v<=i.maxBackfaceHiddenSlides?A||t.el.classList.add(E):A&&t.el.classList.remove(E)}}function ho(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let l=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const d=a=>n?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{i.push(a)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const a=e.activeIndex+s;if(a>e.slides.length&&!n)break;i.push(d(a))}else i.push(d(e.activeIndex));for(s=0;s<i.length;s+=1)if(typeof i[s]<"u"){const a=i[s].offsetHeight;l=a>l?a:l}(l||l===0)&&(e.wrapperEl.style.height=`${l}px`)}function go(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}function bo(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:l,snapGrid:s}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let d=-t;l&&(d=t),n.forEach(r=>{r.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=i.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let r=0;r<n.length;r+=1){const u=n[r];let c=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=n[0].swiperSlideOffset);const v=(d+(i.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+a),m=(d-s[0]+(i.centeredSlides?e.minTranslate():0)-c)/(u.swiperSlideSize+a),w=-(d-c),y=w+e.slidesSizesGrid[r],S=w>=0&&w<=e.size-e.slidesSizesGrid[r];(w>=0&&w<e.size-1||y>1&&y<=e.size||w<=0&&y>=e.size)&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(r),n[r].classList.add(i.slideVisibleClass)),S&&n[r].classList.add(i.slideFullyVisibleClass),u.progress=l?-v:v,u.originalProgress=l?-m:m}}function yo(t){const e=this;if(typeof t>"u"){const c=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*c||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:l,isBeginning:s,isEnd:d,progressLoop:a}=e;const r=s,u=d;if(n===0)l=0,s=!0,d=!0;else{l=(t-e.minTranslate())/n;const c=Math.abs(t-e.minTranslate())<1,v=Math.abs(t-e.maxTranslate())<1;s=c||l<=0,d=v||l>=1,c&&(l=0),v&&(l=1)}if(i.loop){const c=e.getSlideIndexByData(0),v=e.getSlideIndexByData(e.slides.length-1),m=e.slidesGrid[c],w=e.slidesGrid[v],y=e.slidesGrid[e.slidesGrid.length-1],S=Math.abs(t);S>=m?a=(S-m)/y:a=(S+y-w)/y,a>1&&(a-=1)}Object.assign(e,{progress:l,progressLoop:a,isBeginning:s,isEnd:d}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),s&&!r&&e.emit("reachBeginning toEdge"),d&&!u&&e.emit("reachEnd toEdge"),(r&&!s||u&&!d)&&e.emit("fromEdge"),e.emit("progress",l)}function wo(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:l}=t,s=t.virtual&&i.virtual.enabled,d=t.grid&&i.grid&&i.grid.rows>1,a=v=>Xe(n,`.${i.slideClass}${v}, swiper-slide${v}`)[0];e.forEach(v=>{v.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let r,u,c;if(s)if(i.loop){let v=l-t.virtual.slidesBefore;v<0&&(v=t.virtual.slides.length+v),v>=t.virtual.slides.length&&(v-=t.virtual.slides.length),r=a(`[data-swiper-slide-index="${v}"]`)}else r=a(`[data-swiper-slide-index="${l}"]`);else d?(r=e.filter(v=>v.column===l)[0],c=e.filter(v=>v.column===l+1)[0],u=e.filter(v=>v.column===l-1)[0]):r=e[l];r&&(r.classList.add(i.slideActiveClass),d?(c&&c.classList.add(i.slideNextClass),u&&u.classList.add(i.slidePrevClass)):(c=io(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c&&(c=e[0]),c&&c.classList.add(i.slideNextClass),u=to(r,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]),u&&u.classList.add(i.slidePrevClass))),t.emitSlidesClasses()}const At=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let l=n.querySelector(`.${t.params.lazyPreloaderClass}`);!l&&t.isElement&&(n.shadowRoot?l=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(l=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),l&&l.remove())})),l&&l.remove()}},ei=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},ti=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),l=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const d=l,a=[d-e];a.push(...Array.from({length:e}).map((r,u)=>d+n+u)),t.slides.forEach((r,u)=>{a.includes(r.column)&&ei(t,u)});return}const s=l+n-1;if(t.params.rewind||t.params.loop)for(let d=l-e;d<=s+e;d+=1){const a=(d%i+i)%i;(a<l||a>s)&&ei(t,a)}else for(let d=Math.max(l-e,0);d<=Math.min(s+e,i-1);d+=1)d!==l&&(d>s||d<l)&&ei(t,d)};function So(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let l;for(let s=0;s<e.length;s+=1)typeof e[s+1]<"u"?n>=e[s]&&n<e[s+1]-(e[s+1]-e[s])/2?l=s:n>=e[s]&&n<e[s+1]&&(l=s+1):n>=e[s]&&(l=s);return i.normalizeSlideIndex&&(l<0||typeof l>"u")&&(l=0),l}function To(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:l,activeIndex:s,realIndex:d,snapIndex:a}=e;let r=t,u;const c=w=>{let y=w-e.virtual.slidesBefore;return y<0&&(y=e.virtual.slides.length+y),y>=e.virtual.slides.length&&(y-=e.virtual.slides.length),y};if(typeof r>"u"&&(r=So(e)),n.indexOf(i)>=0)u=n.indexOf(i);else{const w=Math.min(l.slidesPerGroupSkip,r);u=w+Math.floor((r-w)/l.slidesPerGroup)}if(u>=n.length&&(u=n.length-1),r===s&&!e.params.loop){u!==a&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(r===s&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=c(r);return}const v=e.grid&&l.grid&&l.grid.rows>1;let m;if(e.virtual&&l.virtual.enabled&&l.loop)m=c(r);else if(v){const w=e.slides.filter(S=>S.column===r)[0];let y=parseInt(w.getAttribute("data-swiper-slide-index"),10);Number.isNaN(y)&&(y=Math.max(e.slides.indexOf(w),0)),m=Math.floor(y/l.grid.rows)}else if(e.slides[r]){const w=e.slides[r].getAttribute("data-swiper-slide-index");w?m=parseInt(w,10):m=r}else m=r;Object.assign(e,{previousSnapIndex:a,snapIndex:u,previousRealIndex:d,realIndex:m,previousIndex:s,activeIndex:r}),e.initialized&&ti(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(d!==m&&e.emit("realIndexChange"),e.emit("slideChange"))}function xo(t,e){const i=this,n=i.params;let l=t.closest(`.${n.slideClass}, swiper-slide`);!l&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(a=>{!l&&a.matches&&a.matches(`.${n.slideClass}, swiper-slide`)&&(l=a)});let s=!1,d;if(l){for(let a=0;a<i.slides.length;a+=1)if(i.slides[a]===l){s=!0,d=a;break}}if(l&&s)i.clickedSlide=l,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(l.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=d;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Eo={updateSize:fo,updateSlides:mo,updateAutoHeight:ho,updateSlidesOffset:go,updateSlidesProgress:bo,updateProgress:yo,updateSlidesClasses:wo,updateActiveIndex:To,updateClickedSlide:xo};function Co(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:n,translate:l,wrapperEl:s}=e;if(i.virtualTranslate)return n?-l:l;if(i.cssMode)return l;let d=Qn(s,t);return d+=e.cssOverflowAdjustment(),n&&(d=-d),d||0}function Io(t,e){const i=this,{rtlTranslate:n,params:l,wrapperEl:s,progress:d}=i;let a=0,r=0;const u=0;i.isHorizontal()?a=n?-t:t:r=t,l.roundLengths&&(a=Math.floor(a),r=Math.floor(r)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?a:r,l.cssMode?s[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-a:-r:l.virtualTranslate||(i.isHorizontal()?a-=i.cssOverflowAdjustment():r-=i.cssOverflowAdjustment(),s.style.transform=`translate3d(${a}px, ${r}px, ${u}px)`);let c;const v=i.maxTranslate()-i.minTranslate();v===0?c=0:c=(t-i.minTranslate())/v,c!==d&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function _o(){return-this.snapGrid[0]}function ko(){return-this.snapGrid[this.snapGrid.length-1]}function Do(t,e,i,n,l){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),n===void 0&&(n=!0);const s=this,{params:d,wrapperEl:a}=s;if(s.animating&&d.preventInteractionOnTransition)return!1;const r=s.minTranslate(),u=s.maxTranslate();let c;if(n&&t>r?c=r:n&&t<u?c=u:c=t,s.updateProgress(c),d.cssMode){const v=s.isHorizontal();if(e===0)a[v?"scrollLeft":"scrollTop"]=-c;else{if(!s.support.smoothScroll)return Ri({swiper:s,targetPosition:-c,side:v?"left":"top"}),!0;a.scrollTo({[v?"left":"top"]:-c,behavior:"smooth"})}return!0}return e===0?(s.setTransition(0),s.setTranslate(c),i&&(s.emit("beforeTransitionStart",e,l),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(c),i&&(s.emit("beforeTransitionStart",e,l),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(m){!s||s.destroyed||m.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,i&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var Ao={getTranslate:Co,setTranslate:Io,minTranslate:_o,maxTranslate:ko,translateTo:Do};function Po(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function Ui(t){let{swiper:e,runCallbacks:i,direction:n,step:l}=t;const{activeIndex:s,previousIndex:d}=e;let a=n;if(a||(s>d?a="next":s<d?a="prev":a="reset"),e.emit(`transition${l}`),i&&s!==d){if(a==="reset"){e.emit(`slideResetTransition${l}`);return}e.emit(`slideChangeTransition${l}`),a==="next"?e.emit(`slideNextTransition${l}`):e.emit(`slidePrevTransition${l}`)}}function Oo(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),Ui({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function Mo(t,e){t===void 0&&(t=!0);const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),Ui({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Lo={setTransition:Po,transitionStart:Oo,transitionEnd:Mo};function jo(t,e,i,n,l){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;let d=t;d<0&&(d=0);const{params:a,snapGrid:r,slidesGrid:u,previousIndex:c,activeIndex:v,rtlTranslate:m,wrapperEl:w,enabled:y}=s;if(s.animating&&a.preventInteractionOnTransition||!y&&!n&&!l||s.destroyed)return!1;const S=Math.min(s.params.slidesPerGroupSkip,d);let I=S+Math.floor((d-S)/s.params.slidesPerGroup);I>=r.length&&(I=r.length-1);const p=-r[I];if(a.normalizeSlideIndex)for(let f=0;f<u.length;f+=1){const x=-Math.floor(p*100),k=Math.floor(u[f]*100),h=Math.floor(u[f+1]*100);typeof u[f+1]<"u"?x>=k&&x<h-(h-k)/2?d=f:x>=k&&x<h&&(d=f+1):x>=k&&(d=f)}if(s.initialized&&d!==v&&(!s.allowSlideNext&&(m?p>s.translate&&p>s.minTranslate():p<s.translate&&p<s.minTranslate())||!s.allowSlidePrev&&p>s.translate&&p>s.maxTranslate()&&(v||0)!==d))return!1;d!==(c||0)&&i&&s.emit("beforeSlideChangeStart"),s.updateProgress(p);let b;if(d>v?b="next":d<v?b="prev":b="reset",m&&-p===s.translate||!m&&p===s.translate)return s.updateActiveIndex(d),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),a.effect!=="slide"&&s.setTranslate(p),b!=="reset"&&(s.transitionStart(i,b),s.transitionEnd(i,b)),!1;if(a.cssMode){const f=s.isHorizontal(),x=m?p:-p;if(e===0){const k=s.virtual&&s.params.virtual.enabled;k&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),k&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{w[f?"scrollLeft":"scrollTop"]=x})):w[f?"scrollLeft":"scrollTop"]=x,k&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return Ri({swiper:s,targetPosition:x,side:f?"left":"top"}),!0;w.scrollTo({[f?"left":"top"]:x,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(p),s.updateActiveIndex(d),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,n),s.transitionStart(i,b),e===0?s.transitionEnd(i,b):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(x){!s||s.destroyed||x.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(i,b))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function No(t,e,i,n){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const l=this;if(l.destroyed)return;const s=l.grid&&l.params.grid&&l.params.grid.rows>1;let d=t;if(l.params.loop)if(l.virtual&&l.params.virtual.enabled)d=d+l.virtual.slidesBefore;else{let a;if(s){const m=d*l.params.grid.rows;a=l.slides.filter(w=>w.getAttribute("data-swiper-slide-index")*1===m)[0].column}else a=l.getSlideIndexByData(d);const r=s?Math.ceil(l.slides.length/l.params.grid.rows):l.slides.length,{centeredSlides:u}=l.params;let c=l.params.slidesPerView;c==="auto"?c=l.slidesPerViewDynamic():(c=Math.ceil(parseFloat(l.params.slidesPerView,10)),u&&c%2===0&&(c=c+1));let v=r-a<c;if(u&&(v=v||a<Math.ceil(c/2)),v){const m=u?a<l.activeIndex?"prev":"next":a-l.activeIndex-1<l.params.slidesPerView?"next":"prev";l.loopFix({direction:m,slideTo:!0,activeSlideIndex:m==="next"?a+1:a-r+1,slideRealIndex:m==="next"?l.realIndex:void 0})}if(s){const m=d*l.params.grid.rows;d=l.slides.filter(w=>w.getAttribute("data-swiper-slide-index")*1===m)[0].column}else d=l.getSlideIndexByData(d)}return requestAnimationFrame(()=>{l.slideTo(d,e,i,n)}),l}function Bo(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this,{enabled:l,params:s,animating:d}=n;if(!l||n.destroyed)return n;let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));const r=n.activeIndex<s.slidesPerGroupSkip?1:a,u=n.virtual&&s.virtual.enabled;if(s.loop){if(d&&!u&&s.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+r,t,e,i)}),!0}return s.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+r,t,e,i)}function Ro(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this,{params:l,snapGrid:s,slidesGrid:d,rtlTranslate:a,enabled:r,animating:u}=n;if(!r||n.destroyed)return n;const c=n.virtual&&l.virtual.enabled;if(l.loop){if(u&&!c&&l.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const v=a?n.translate:-n.translate;function m(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const w=m(v),y=s.map(p=>m(p));let S=s[y.indexOf(w)-1];if(typeof S>"u"&&l.cssMode){let p;s.forEach((b,f)=>{w>=b&&(p=f)}),typeof p<"u"&&(S=s[p>0?p-1:p])}let I=0;if(typeof S<"u"&&(I=d.indexOf(S),I<0&&(I=n.activeIndex-1),l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(I=I-n.slidesPerViewDynamic("previous",!0)+1,I=Math.max(I,0))),l.rewind&&n.isBeginning){const p=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(p,t,e,i)}else if(l.loop&&n.activeIndex===0&&l.cssMode)return requestAnimationFrame(()=>{n.slideTo(I,t,e,i)}),!0;return n.slideTo(I,t,e,i)}function zo(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this;if(!n.destroyed)return n.slideTo(n.activeIndex,t,e,i)}function Fo(t,e,i,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),n===void 0&&(n=.5);const l=this;if(l.destroyed)return;let s=l.activeIndex;const d=Math.min(l.params.slidesPerGroupSkip,s),a=d+Math.floor((s-d)/l.params.slidesPerGroup),r=l.rtlTranslate?l.translate:-l.translate;if(r>=l.snapGrid[a]){const u=l.snapGrid[a],c=l.snapGrid[a+1];r-u>(c-u)*n&&(s+=l.params.slidesPerGroup)}else{const u=l.snapGrid[a-1],c=l.snapGrid[a];r-u<=(c-u)*n&&(s-=l.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,l.slidesGrid.length-1),l.slideTo(s,t,e,i)}function Vo(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let l=t.clickedIndex,s;const d=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?l<t.loopedSlides-n/2||l>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),l=t.getSlideIndex(Xe(i,`${d}[data-swiper-slide-index="${s}"]`)[0]),pt(()=>{t.slideTo(l)})):t.slideTo(l):l>t.slides.length-n?(t.loopFix(),l=t.getSlideIndex(Xe(i,`${d}[data-swiper-slide-index="${s}"]`)[0]),pt(()=>{t.slideTo(l)})):t.slideTo(l)}else t.slideTo(l)}var Ho={slideTo:jo,slideToLoop:No,slideNext:Bo,slidePrev:Ro,slideReset:zo,slideToClosest:Fo,slideToClickedSlide:Vo};function Uo(t){const e=this,{params:i,slidesEl:n}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const l=()=>{Xe(n,`.${i.slideClass}, swiper-slide`).forEach((v,m)=>{v.setAttribute("data-swiper-slide-index",m)})},s=e.grid&&i.grid&&i.grid.rows>1,d=i.slidesPerGroup*(s?i.grid.rows:1),a=e.slides.length%d!==0,r=s&&e.slides.length%i.grid.rows!==0,u=c=>{for(let v=0;v<c;v+=1){const m=e.isElement?bt("swiper-slide",[i.slideBlankClass]):bt("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(m)}};if(a){if(i.loopAddBlankSlides){const c=d-e.slides.length%d;u(c),e.recalcSlides(),e.updateSlides()}else It("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");l()}else if(r){if(i.loopAddBlankSlides){const c=i.grid.rows-e.slides.length%i.grid.rows;u(c),e.recalcSlides(),e.updateSlides()}else It("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");l()}else l();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function Go(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:l,activeSlideIndex:s,byController:d,byMousewheel:a}=t===void 0?{}:t;const r=this;if(!r.params.loop)return;r.emit("beforeLoopFix");const{slides:u,allowSlidePrev:c,allowSlideNext:v,slidesEl:m,params:w}=r,{centeredSlides:y}=w;if(r.allowSlidePrev=!0,r.allowSlideNext=!0,r.virtual&&w.virtual.enabled){i&&(!w.centeredSlides&&r.snapIndex===0?r.slideTo(r.virtual.slides.length,0,!1,!0):w.centeredSlides&&r.snapIndex<w.slidesPerView?r.slideTo(r.virtual.slides.length+r.snapIndex,0,!1,!0):r.snapIndex===r.snapGrid.length-1&&r.slideTo(r.virtual.slidesBefore,0,!1,!0)),r.allowSlidePrev=c,r.allowSlideNext=v,r.emit("loopFix");return}let S=w.slidesPerView;S==="auto"?S=r.slidesPerViewDynamic():(S=Math.ceil(parseFloat(w.slidesPerView,10)),y&&S%2===0&&(S=S+1));const I=w.slidesPerGroupAuto?S:w.slidesPerGroup;let p=I;p%I!==0&&(p+=I-p%I),p+=w.loopAdditionalSlides,r.loopedSlides=p;const b=r.grid&&w.grid&&w.grid.rows>1;u.length<S+p?It("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&w.grid.fill==="row"&&It("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const f=[],x=[];let k=r.activeIndex;typeof s>"u"?s=r.getSlideIndex(u.filter(D=>D.classList.contains(w.slideActiveClass))[0]):k=s;const h=n==="next"||!n,P=n==="prev"||!n;let C=0,g=0;const E=b?Math.ceil(u.length/w.grid.rows):u.length,T=(b?u[s].column:s)+(y&&typeof l>"u"?-S/2+.5:0);if(T<p){C=Math.max(p-T,I);for(let D=0;D<p-T;D+=1){const O=D-Math.floor(D/E)*E;if(b){const L=E-O-1;for(let z=u.length-1;z>=0;z-=1)u[z].column===L&&f.push(z)}else f.push(E-O-1)}}else if(T+S>E-p){g=Math.max(T-(E-p*2),I);for(let D=0;D<g;D+=1){const O=D-Math.floor(D/E)*E;b?u.forEach((L,z)=>{L.column===O&&x.push(z)}):x.push(O)}}if(r.__preventObserver__=!0,requestAnimationFrame(()=>{r.__preventObserver__=!1}),P&&f.forEach(D=>{u[D].swiperLoopMoveDOM=!0,m.prepend(u[D]),u[D].swiperLoopMoveDOM=!1}),h&&x.forEach(D=>{u[D].swiperLoopMoveDOM=!0,m.append(u[D]),u[D].swiperLoopMoveDOM=!1}),r.recalcSlides(),w.slidesPerView==="auto"?r.updateSlides():b&&(f.length>0&&P||x.length>0&&h)&&r.slides.forEach((D,O)=>{r.grid.updateSlide(O,D,r.slides)}),w.watchSlidesProgress&&r.updateSlidesOffset(),i){if(f.length>0&&P){if(typeof e>"u"){const D=r.slidesGrid[k],L=r.slidesGrid[k+C]-D;a?r.setTranslate(r.translate-L):(r.slideTo(k+Math.ceil(C),0,!1,!0),l&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-L,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-L))}else if(l){const D=b?f.length/w.grid.rows:f.length;r.slideTo(r.activeIndex+D,0,!1,!0),r.touchEventsData.currentTranslate=r.translate}}else if(x.length>0&&h)if(typeof e>"u"){const D=r.slidesGrid[k],L=r.slidesGrid[k-g]-D;a?r.setTranslate(r.translate-L):(r.slideTo(k-g,0,!1,!0),l&&(r.touchEventsData.startTranslate=r.touchEventsData.startTranslate-L,r.touchEventsData.currentTranslate=r.touchEventsData.currentTranslate-L))}else{const D=b?x.length/w.grid.rows:x.length;r.slideTo(r.activeIndex-D,0,!1,!0)}}if(r.allowSlidePrev=c,r.allowSlideNext=v,r.controller&&r.controller.control&&!d){const D={slideRealIndex:e,direction:n,setTranslate:l,activeSlideIndex:s,byController:!0};Array.isArray(r.controller.control)?r.controller.control.forEach(O=>{!O.destroyed&&O.params.loop&&O.loopFix({...D,slideTo:O.params.slidesPerView===w.slidesPerView?i:!1})}):r.controller.control instanceof r.constructor&&r.controller.control.params.loop&&r.controller.control.loopFix({...D,slideTo:r.controller.control.params.slidesPerView===w.slidesPerView?i:!1})}r.emit("loopFix")}function $o(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(l=>{const s=typeof l.swiperSlideIndex>"u"?l.getAttribute("data-swiper-slide-index")*1:l.swiperSlideIndex;n[s]=l}),t.slides.forEach(l=>{l.removeAttribute("data-swiper-slide-index")}),n.forEach(l=>{i.append(l)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Wo={loopCreate:Uo,loopFix:Go,loopDestroy:$o};function Yo(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function qo(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Xo={setGrabCursor:Yo,unsetGrabCursor:qo};function Jo(t,e){e===void 0&&(e=this);function i(n){if(!n||n===We()||n===je())return null;n.assignedSlot&&(n=n.assignedSlot);const l=n.closest(t);return!l&&!n.getRootNode?null:l||i(n.getRootNode().host)}return i(e)}function Gi(t,e,i){const n=je(),{params:l}=t,s=l.edgeSwipeDetection,d=l.edgeSwipeThreshold;return s&&(i<=d||i>=n.innerWidth-d)?s==="prevent"?(e.preventDefault(),!0):!1:!0}function Ko(t){const e=this,i=We();let n=t;n.originalEvent&&(n=n.originalEvent);const l=e.touchEventsData;if(n.type==="pointerdown"){if(l.pointerId!==null&&l.pointerId!==n.pointerId)return;l.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(l.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){Gi(e,n,n.targetTouches[0].pageX);return}const{params:s,touches:d,enabled:a}=e;if(!a||!s.simulateTouch&&n.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let r=n.target;if(s.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(r)||"which"in n&&n.which===3||"button"in n&&n.button>0||l.isTouched&&l.isMoved)return;const u=!!s.noSwipingClass&&s.noSwipingClass!=="",c=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&c&&(r=c[0]);const v=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,m=!!(n.target&&n.target.shadowRoot);if(s.noSwiping&&(m?Jo(v,r):r.closest(v))){e.allowClick=!0;return}if(s.swipeHandler&&!r.closest(s.swipeHandler))return;d.currentX=n.pageX,d.currentY=n.pageY;const w=d.currentX,y=d.currentY;if(!Gi(e,n,w))return;Object.assign(l,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=w,d.startY=y,l.touchStartTime=Ue(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(l.allowThresholdMove=!1);let S=!0;r.matches(l.focusableElements)&&(S=!1,r.nodeName==="SELECT"&&(l.isTouched=!1)),i.activeElement&&i.activeElement.matches(l.focusableElements)&&i.activeElement!==r&&i.activeElement.blur();const I=S&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||I)&&!r.isContentEditable&&n.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Qo(t){const e=We(),i=this,n=i.touchEventsData,{params:l,touches:s,rtlTranslate:d,enabled:a}=i;if(!a||!l.simulateTouch&&t.pointerType==="mouse")return;let r=t;if(r.originalEvent&&(r=r.originalEvent),r.type==="pointermove"&&(n.touchId!==null||r.pointerId!==n.pointerId))return;let u;if(r.type==="touchmove"){if(u=[...r.changedTouches].filter(h=>h.identifier===n.touchId)[0],!u||u.identifier!==n.touchId)return}else u=r;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",r);return}const c=u.pageX,v=u.pageY;if(r.preventedByNestedSwiper){s.startX=c,s.startY=v;return}if(!i.allowTouchMove){r.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(s,{startX:c,startY:v,currentX:c,currentY:v}),n.touchStartTime=Ue());return}if(l.touchReleaseOnEdges&&!l.loop){if(i.isVertical()){if(v<s.startY&&i.translate<=i.maxTranslate()||v>s.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(c<s.startX&&i.translate<=i.maxTranslate()||c>s.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&r.target===e.activeElement&&r.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",r),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=c,s.currentY=v;const m=s.currentX-s.startX,w=s.currentY-s.startY;if(i.params.threshold&&Math.sqrt(m**2+w**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let h;i.isHorizontal()&&s.currentY===s.startY||i.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:m*m+w*w>=25&&(h=Math.atan2(Math.abs(w),Math.abs(m))*180/Math.PI,n.isScrolling=i.isHorizontal()?h>l.touchAngle:90-h>l.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",r),typeof n.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(n.startMoving=!0),n.isScrolling){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!l.cssMode&&r.cancelable&&r.preventDefault(),l.touchMoveStopPropagation&&!l.nested&&r.stopPropagation();let y=i.isHorizontal()?m:w,S=i.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;l.oneWayMovement&&(y=Math.abs(y)*(d?1:-1),S=Math.abs(S)*(d?1:-1)),s.diff=y,y*=l.touchRatio,d&&(y=-y,S=-S);const I=i.touchesDirection;i.swipeDirection=y>0?"prev":"next",i.touchesDirection=S>0?"prev":"next";const p=i.params.loop&&!l.cssMode,b=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(p&&b&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const h=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(h)}n.allowMomentumBounce=!1,l.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",r)}let f;if(new Date().getTime(),n.isMoved&&n.allowThresholdMove&&I!==i.touchesDirection&&p&&b&&Math.abs(y)>=1){Object.assign(s,{startX:c,startY:v,currentX:c,currentY:v,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",r),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let x=!0,k=l.resistanceRatio;if(l.touchReleaseOnEdges&&(k=0),y>0?(p&&b&&!f&&n.allowThresholdMove&&n.currentTranslate>(l.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(x=!1,l.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+y)**k))):y<0&&(p&&b&&!f&&n.allowThresholdMove&&n.currentTranslate<(l.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(l.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(l.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(x=!1,l.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-y)**k))),x&&(r.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),l.threshold>0)if(Math.abs(y)>l.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,s.diff=i.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{n.currentTranslate=n.startTranslate;return}!l.followFinger||l.cssMode||((l.freeMode&&l.freeMode.enabled&&i.freeMode||l.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),l.freeMode&&l.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function Zo(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let l;if(n.type==="touchend"||n.type==="touchcancel"){if(l=[...n.changedTouches].filter(k=>k.identifier===i.touchId)[0],!l||l.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;l=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:d,touches:a,rtlTranslate:r,slidesGrid:u,enabled:c}=e;if(!c||!d.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&d.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}d.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const v=Ue(),m=v-i.touchStartTime;if(e.allowClick){const k=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(k&&k[0]||n.target,k),e.emit("tap click",n),m<300&&v-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=Ue(),pt(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||a.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let w;if(d.followFinger?w=r?e.translate:-e.translate:w=-i.currentTranslate,d.cssMode)return;if(d.freeMode&&d.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:w});return}const y=w>=-e.maxTranslate()&&!e.params.loop;let S=0,I=e.slidesSizesGrid[0];for(let k=0;k<u.length;k+=k<d.slidesPerGroupSkip?1:d.slidesPerGroup){const h=k<d.slidesPerGroupSkip-1?1:d.slidesPerGroup;typeof u[k+h]<"u"?(y||w>=u[k]&&w<u[k+h])&&(S=k,I=u[k+h]-u[k]):(y||w>=u[k])&&(S=k,I=u[u.length-1]-u[u.length-2])}let p=null,b=null;d.rewind&&(e.isBeginning?b=d.virtual&&d.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(p=0));const f=(w-u[S])/I,x=S<d.slidesPerGroupSkip-1?1:d.slidesPerGroup;if(m>d.longSwipesMs){if(!d.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(f>=d.longSwipesRatio?e.slideTo(d.rewind&&e.isEnd?p:S+x):e.slideTo(S)),e.swipeDirection==="prev"&&(f>1-d.longSwipesRatio?e.slideTo(S+x):b!==null&&f<0&&Math.abs(f)>d.longSwipesRatio?e.slideTo(b):e.slideTo(S))}else{if(!d.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(S+x):e.slideTo(S):(e.swipeDirection==="next"&&e.slideTo(p!==null?p:S+x),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:S))}}function $i(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:l,snapGrid:s}=t,d=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=d&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!d?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=l,t.allowSlideNext=n,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function el(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function tl(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let l;const s=t.maxTranslate()-t.minTranslate();s===0?l=0:l=(t.translate-t.minTranslate())/s,l!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function il(t){const e=this;At(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function nl(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Wi=(t,e)=>{const i=We(),{params:n,el:l,wrapperEl:s,device:d}=t,a=!!n.nested,r=e==="on"?"addEventListener":"removeEventListener",u=e;i[r]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a}),l[r]("touchstart",t.onTouchStart,{passive:!1}),l[r]("pointerdown",t.onTouchStart,{passive:!1}),i[r]("touchmove",t.onTouchMove,{passive:!1,capture:a}),i[r]("pointermove",t.onTouchMove,{passive:!1,capture:a}),i[r]("touchend",t.onTouchEnd,{passive:!0}),i[r]("pointerup",t.onTouchEnd,{passive:!0}),i[r]("pointercancel",t.onTouchEnd,{passive:!0}),i[r]("touchcancel",t.onTouchEnd,{passive:!0}),i[r]("pointerout",t.onTouchEnd,{passive:!0}),i[r]("pointerleave",t.onTouchEnd,{passive:!0}),i[r]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&l[r]("click",t.onClick,!0),n.cssMode&&s[r]("scroll",t.onScroll),n.updateOnWindowResize?t[u](d.ios||d.android?"resize orientationchange observerUpdate":"resize observerUpdate",$i,!0):t[u]("observerUpdate",$i,!0),l[r]("load",t.onLoad,{capture:!0})};function ol(){const t=this,{params:e}=t;t.onTouchStart=Ko.bind(t),t.onTouchMove=Qo.bind(t),t.onTouchEnd=Zo.bind(t),t.onDocumentTouchStart=nl.bind(t),e.cssMode&&(t.onScroll=tl.bind(t)),t.onClick=el.bind(t),t.onLoad=il.bind(t),Wi(t,"on")}function ll(){Wi(this,"off")}var sl={attachEvents:ol,detachEvents:ll};const Yi=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function al(){const t=this,{realIndex:e,initialized:i,params:n,el:l}=t,s=n.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const d=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!d||t.currentBreakpoint===d)return;const r=(d in s?s[d]:void 0)||t.originalParams,u=Yi(t,n),c=Yi(t,r),v=n.enabled;u&&!c?(l.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&c&&(l.classList.add(`${n.containerModifierClass}grid`),(r.grid.fill&&r.grid.fill==="column"||!r.grid.fill&&n.grid.fill==="column")&&l.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(p=>{if(typeof r[p]>"u")return;const b=n[p]&&n[p].enabled,f=r[p]&&r[p].enabled;b&&!f&&t[p].disable(),!b&&f&&t[p].enable()});const m=r.direction&&r.direction!==n.direction,w=n.loop&&(r.slidesPerView!==n.slidesPerView||m),y=n.loop;m&&i&&t.changeDirection(),Fe(t.params,r);const S=t.params.enabled,I=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),v&&!S?t.disable():!v&&S&&t.enable(),t.currentBreakpoint=d,t.emit("_beforeBreakpoint",r),i&&(w?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!y&&I?(t.loopCreate(e),t.updateSlides()):y&&!I&&t.loopDestroy()),t.emit("breakpoint",r)}function rl(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let n=!1;const l=je(),s=e==="window"?l.innerHeight:i.clientHeight,d=Object.keys(t).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const r=parseFloat(a.substr(1));return{value:s*r,point:a}}return{value:a,point:a}});d.sort((a,r)=>parseInt(a.value,10)-parseInt(r.value,10));for(let a=0;a<d.length;a+=1){const{point:r,value:u}=d[a];e==="window"?l.matchMedia(`(min-width: ${u}px)`).matches&&(n=r):u<=i.clientWidth&&(n=r)}return n||"max"}var dl={setBreakpoint:al,getBreakpoint:rl};function cl(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(l=>{n[l]&&i.push(e+l)}):typeof n=="string"&&i.push(e+n)}),i}function ul(){const t=this,{classNames:e,params:i,rtl:n,el:l,device:s}=t,d=cl(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...d),l.classList.add(...e),t.emitContainerClasses()}function pl(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var vl={addClasses:ul,removeClasses:pl};function fl(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const l=t.slides.length-1,s=t.slidesGrid[l]+t.slidesSizesGrid[l]+n*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var ml={checkOverflow:fl},ii={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function hl(t,e){return function(n){n===void 0&&(n={});const l=Object.keys(n)[0],s=n[l];if(typeof s!="object"||s===null){Fe(e,n);return}if(t[l]===!0&&(t[l]={enabled:!0}),l==="navigation"&&t[l]&&t[l].enabled&&!t[l].prevEl&&!t[l].nextEl&&(t[l].auto=!0),["pagination","scrollbar"].indexOf(l)>=0&&t[l]&&t[l].enabled&&!t[l].el&&(t[l].auto=!0),!(l in t&&"enabled"in s)){Fe(e,n);return}typeof t[l]=="object"&&!("enabled"in t[l])&&(t[l].enabled=!0),t[l]||(t[l]={enabled:!1}),Fe(e,n)}}const ni={eventsEmitter:vo,update:Eo,translate:Ao,transition:Lo,slide:Ho,loop:Wo,grabCursor:Xo,events:sl,breakpoints:dl,checkOverflow:ml,classes:vl},oi={};let li=class it{constructor(){let e,i;for(var n=arguments.length,l=new Array(n),s=0;s<n;s++)l[s]=arguments[s];l.length===1&&l[0].constructor&&Object.prototype.toString.call(l[0]).slice(8,-1)==="Object"?i=l[0]:[e,i]=l,i||(i={}),i=Fe({},i),e&&!i.el&&(i.el=e);const d=We();if(i.el&&typeof i.el=="string"&&d.querySelectorAll(i.el).length>1){const c=[];return d.querySelectorAll(i.el).forEach(v=>{const m=Fe({},i,{el:v});c.push(new it(m))}),c}const a=this;a.__swiper__=!0,a.support=Vi(),a.device=Hi({userAgent:i.userAgent}),a.browser=co(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],i.modules&&Array.isArray(i.modules)&&a.modules.push(...i.modules);const r={};a.modules.forEach(c=>{c({params:i,swiper:a,extendParams:hl(i,r),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=Fe({},ii,r);return a.params=Fe({},u,oi,i),a.originalParams=Fe({},a.params),a.passedParams=Fe({},i),a.params&&a.params.on&&Object.keys(a.params.on).forEach(c=>{a.on(c,a.params.on[c])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,l=Xe(i,`.${n.slideClass}, swiper-slide`),s=_t(l[0]);return _t(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:n}=e;e.slides=Xe(i,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const n=this;e=Math.min(Math.max(e,0),1);const l=n.minTranslate(),d=(n.maxTranslate()-l)*e+l;n.translateTo(d,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const l=e.getSlideClasses(n);i.push({slideEl:n,classNames:l}),e.emit("_slideClass",n,l)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const n=this,{params:l,slides:s,slidesGrid:d,slidesSizesGrid:a,size:r,activeIndex:u}=n;let c=1;if(typeof l.slidesPerView=="number")return l.slidesPerView;if(l.centeredSlides){let v=s[u]?Math.ceil(s[u].swiperSlideSize):0,m;for(let w=u+1;w<s.length;w+=1)s[w]&&!m&&(v+=Math.ceil(s[w].swiperSlideSize),c+=1,v>r&&(m=!0));for(let w=u-1;w>=0;w-=1)s[w]&&!m&&(v+=s[w].swiperSlideSize,c+=1,v>r&&(m=!0))}else if(e==="current")for(let v=u+1;v<s.length;v+=1)(i?d[v]+a[v]-d[u]<r:d[v]-d[u]<r)&&(c+=1);else for(let v=u-1;v>=0;v-=1)d[u]-d[v]<r&&(c+=1);return c}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(d=>{d.complete&&At(e,d)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function l(){const d=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(d,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)l(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const d=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(d.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||l()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const n=this,l=n.params.direction;return e||(e=l==="horizontal"?"vertical":"horizontal"),e===l||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${l}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const l=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let d=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(l()):Xe(n,l())[0];return!d&&i.params.createElements&&(d=bt("div",i.params.wrapperClass),n.append(d),Xe(n,`.${i.params.slideClass}`).forEach(a=>{d.append(a)})),Object.assign(i,{el:n,wrapperEl:d,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:d,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||lt(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||lt(n,"direction")==="rtl"),wrongRTL:lt(d,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const l=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&l.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),l.forEach(s=>{s.complete?At(i,s):s.addEventListener("load",d=>{At(i,d.target)})}),ti(i),i.initialized=!0,ti(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const n=this,{params:l,el:s,wrapperEl:d,slides:a}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),l.loop&&n.loopDestroy(),i&&(n.removeClasses(),s.removeAttribute("style"),d.removeAttribute("style"),a&&a.length&&a.forEach(r=>{r.classList.remove(l.slideVisibleClass,l.slideFullyVisibleClass,l.slideActiveClass,l.slideNextClass,l.slidePrevClass),r.removeAttribute("style"),r.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(r=>{n.off(r)}),e!==!1&&(n.el.swiper=null,Jn(n)),n.destroyed=!0),null}static extendDefaults(e){Fe(oi,e)}static get extendedDefaults(){return oi}static get defaults(){return ii}static installModule(e){it.prototype.__modules__||(it.prototype.__modules__=[]);const i=it.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>it.installModule(i)),it):(it.installModule(e),it)}};Object.keys(ni).forEach(t=>{Object.keys(ni[t]).forEach(e=>{li.prototype[e]=ni[t][e]})}),li.use([uo,po]);const qi=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function ct(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function ft(t,e){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:ct(e[n])&&ct(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:ft(t[n],e[n]):t[n]=e[n]})}function Xi(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Ji(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Ki(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Qi(t){t===void 0&&(t="");const e=t.split(" ").map(n=>n.trim()).filter(n=>!!n),i=[];return e.forEach(n=>{i.indexOf(n)<0&&i.push(n)}),i.join(" ")}function gl(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function bl(t){let{swiper:e,slides:i,passedParams:n,changedParams:l,nextEl:s,prevEl:d,scrollbarEl:a,paginationEl:r}=t;const u=l.filter(g=>g!=="children"&&g!=="direction"&&g!=="wrapperClass"),{params:c,pagination:v,navigation:m,scrollbar:w,virtual:y,thumbs:S}=e;let I,p,b,f,x,k,h,P;l.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(I=!0),l.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(p=!0),l.includes("pagination")&&n.pagination&&(n.pagination.el||r)&&(c.pagination||c.pagination===!1)&&v&&!v.el&&(b=!0),l.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&w&&!w.el&&(f=!0),l.includes("navigation")&&n.navigation&&(n.navigation.prevEl||d)&&(n.navigation.nextEl||s)&&(c.navigation||c.navigation===!1)&&m&&!m.prevEl&&!m.nextEl&&(x=!0);const C=g=>{e[g]&&(e[g].destroy(),g==="navigation"?(e.isElement&&(e[g].prevEl.remove(),e[g].nextEl.remove()),c[g].prevEl=void 0,c[g].nextEl=void 0,e[g].prevEl=void 0,e[g].nextEl=void 0):(e.isElement&&e[g].el.remove(),c[g].el=void 0,e[g].el=void 0))};l.includes("loop")&&e.isElement&&(c.loop&&!n.loop?k=!0:!c.loop&&n.loop?h=!0:P=!0),u.forEach(g=>{if(ct(c[g])&&ct(n[g]))Object.assign(c[g],n[g]),(g==="navigation"||g==="pagination"||g==="scrollbar")&&"enabled"in n[g]&&!n[g].enabled&&C(g);else{const E=n[g];(E===!0||E===!1)&&(g==="navigation"||g==="pagination"||g==="scrollbar")?E===!1&&C(g):c[g]=n[g]}}),u.includes("controller")&&!p&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),l.includes("children")&&i&&y&&c.virtual.enabled?(y.slides=i,y.update(!0)):l.includes("virtual")&&y&&c.virtual.enabled&&(i&&(y.slides=i),y.update(!0)),l.includes("children")&&i&&c.loop&&(P=!0),I&&S.init()&&S.update(!0),p&&(e.controller.control=c.controller.control),b&&(e.isElement&&(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-pagination"),r.part.add("pagination"),e.el.appendChild(r)),r&&(c.pagination.el=r),v.init(),v.render(),v.update()),f&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(c.scrollbar.el=a),w.init(),w.updateSize(),w.setTranslate()),x&&(e.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=e.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),e.el.appendChild(s)),(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-button-prev"),d.innerHTML=e.hostEl.constructor.prevButtonSvg,d.part.add("button-prev"),e.el.appendChild(d))),s&&(c.navigation.nextEl=s),d&&(c.navigation.prevEl=d),m.init(),m.update()),l.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),l.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),l.includes("direction")&&e.changeDirection(n.direction,!1),(k||P)&&e.loopDestroy(),(h||P)&&e.loopCreate(),e.update()}function yl(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);const i={on:{}},n={},l={};ft(i,ii),i._emitClasses=!0,i.init=!1;const s={},d=qi.map(r=>r.replace(/_/,"")),a=Object.assign({},t);return Object.keys(a).forEach(r=>{typeof t[r]>"u"||(d.indexOf(r)>=0?ct(t[r])?(i[r]={},l[r]={},ft(i[r],t[r]),ft(l[r],t[r])):(i[r]=t[r],l[r]=t[r]):r.search(/on[A-Z]/)===0&&typeof t[r]=="function"?e?n[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:i.on[`${r[2].toLowerCase()}${r.substr(3)}`]=t[r]:s[r]=t[r])}),["navigation","pagination","scrollbar"].forEach(r=>{i[r]===!0&&(i[r]={}),i[r]===!1&&delete i[r]}),{params:i,passedParams:l,rest:s,events:n}}function wl(t,e){let{el:i,nextEl:n,prevEl:l,paginationEl:s,scrollbarEl:d,swiper:a}=t;Xi(e)&&n&&l&&(a.params.navigation.nextEl=n,a.originalParams.navigation.nextEl=n,a.params.navigation.prevEl=l,a.originalParams.navigation.prevEl=l),Ji(e)&&s&&(a.params.pagination.el=s,a.originalParams.pagination.el=s),Ki(e)&&d&&(a.params.scrollbar.el=d,a.originalParams.scrollbar.el=d),a.init(i)}function Sl(t,e,i,n,l){const s=[];if(!e)return s;const d=r=>{s.indexOf(r)<0&&s.push(r)};if(i&&n){const r=n.map(l),u=i.map(l);r.join("")!==u.join("")&&d("children"),n.length!==i.length&&d("children")}return qi.filter(r=>r[0]==="_").map(r=>r.replace(/_/,"")).forEach(r=>{if(r in t&&r in e)if(ct(t[r])&&ct(e[r])){const u=Object.keys(t[r]),c=Object.keys(e[r]);u.length!==c.length?d(r):(u.forEach(v=>{t[r][v]!==e[r][v]&&d(r)}),c.forEach(v=>{t[r][v]!==e[r][v]&&d(r)}))}else t[r]!==e[r]&&d(r)}),s}const Tl=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function Pt(){return Pt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Pt.apply(this,arguments)}function Zi(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function en(t){const e=[];return o.Children.toArray(t).forEach(i=>{Zi(i)?e.push(i):i.props&&i.props.children&&en(i.props.children).forEach(n=>e.push(n))}),e}function xl(t){const e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return o.Children.toArray(t).forEach(n=>{if(Zi(n))e.push(n);else if(n.props&&n.props.slot&&i[n.props.slot])i[n.props.slot].push(n);else if(n.props&&n.props.children){const l=en(n.props.children);l.length>0?l.forEach(s=>e.push(s)):i["container-end"].push(n)}else i["container-end"].push(n)}),{slides:e,slots:i}}function El(t,e,i){if(!i)return null;const n=c=>{let v=c;return c<0?v=e.length+c:v>=e.length&&(v=v-e.length),v},l=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:s,to:d}=i,a=t.params.loop?-e.length:0,r=t.params.loop?e.length*2:e.length,u=[];for(let c=a;c<r;c+=1)c>=s&&c<=d&&u.push(e[n(c)]);return u.map((c,v)=>o.cloneElement(c,{swiper:t,style:l,key:c.props.virtualIndex||c.key||`slide-${v}`}))}function yt(t,e){return typeof window>"u"?o.useEffect(t,e):o.useLayoutEffect(t,e)}const si=o.createContext(null),tn=()=>o.useContext(si),Cl=o.createContext(null),ut=o.forwardRef(function(t,e){let{className:i,tag:n="div",wrapperTag:l="div",children:s,onSwiper:d,...a}=t===void 0?{}:t,r=!1;const[u,c]=o.useState("swiper"),[v,m]=o.useState(null),[w,y]=o.useState(!1),S=o.useRef(!1),I=o.useRef(null),p=o.useRef(null),b=o.useRef(null),f=o.useRef(null),x=o.useRef(null),k=o.useRef(null),h=o.useRef(null),P=o.useRef(null),{params:C,passedParams:g,rest:E,events:A}=yl(a),{slides:T,slots:D}=xl(s),O=()=>{y(!w)};Object.assign(C.on,{_containerClasses(N,R){c(R)}});const L=()=>{Object.assign(C.on,A),r=!0;const N={...C};if(delete N.wrapperClass,p.current=new li(N),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=T;const R={cache:!1,slides:T,renderExternal:m,renderExternalUpdate:!1};ft(p.current.params.virtual,R),ft(p.current.originalParams.virtual,R)}};I.current||L(),p.current&&p.current.on("_beforeBreakpoint",O);const z=()=>{r||!A||!p.current||Object.keys(A).forEach(N=>{p.current.on(N,A[N])})},F=()=>{!A||!p.current||Object.keys(A).forEach(N=>{p.current.off(N,A[N])})};o.useEffect(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",O)}),o.useEffect(()=>{!S.current&&p.current&&(p.current.emitSlidesClasses(),S.current=!0)}),yt(()=>{if(e&&(e.current=I.current),!!I.current)return p.current.destroyed&&L(),wl({el:I.current,nextEl:x.current,prevEl:k.current,paginationEl:h.current,scrollbarEl:P.current,swiper:p.current},C),d&&!p.current.destroyed&&d(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),yt(()=>{z();const N=Sl(g,b.current,T,f.current,R=>R.key);return b.current=g,f.current=T,N.length&&p.current&&!p.current.destroyed&&bl({swiper:p.current,slides:T,passedParams:g,changedParams:N,nextEl:x.current,prevEl:k.current,scrollbarEl:P.current,paginationEl:h.current}),()=>{F()}}),yt(()=>{Tl(p.current)},[v]);function B(){return C.virtual?El(p.current,T,v):T.map((N,R)=>o.cloneElement(N,{swiper:p.current,swiperSlideIndex:R}))}return o.createElement(n,Pt({ref:I,className:Qi(`${u}${i?` ${i}`:""}`)},E),o.createElement(Cl.Provider,{value:p.current},D["container-start"],o.createElement(l,{className:gl(C.wrapperClass)},D["wrapper-start"],B(),D["wrapper-end"]),Xi(C)&&o.createElement(o.Fragment,null,o.createElement("div",{ref:k,className:"swiper-button-prev"}),o.createElement("div",{ref:x,className:"swiper-button-next"})),Ki(C)&&o.createElement("div",{ref:P,className:"swiper-scrollbar"}),Ji(C)&&o.createElement("div",{ref:h,className:"swiper-pagination"}),D["container-end"]))});ut.displayName="Swiper";const Ke=o.forwardRef(function(t,e){let{tag:i="div",children:n,className:l="",swiper:s,zoom:d,lazy:a,virtualIndex:r,swiperSlideIndex:u,...c}=t===void 0?{}:t;const v=o.useRef(null),[m,w]=o.useState("swiper-slide"),[y,S]=o.useState(!1);function I(x,k,h){k===v.current&&w(h)}yt(()=>{if(typeof u<"u"&&(v.current.swiperSlideIndex=u),e&&(e.current=v.current),!(!v.current||!s)){if(s.destroyed){m!=="swiper-slide"&&w("swiper-slide");return}return s.on("_slideClass",I),()=>{s&&s.off("_slideClass",I)}}}),yt(()=>{s&&v.current&&!s.destroyed&&w(s.getSlideClasses(v.current))},[s]);const p={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},b=()=>typeof n=="function"?n(p):n,f=()=>{S(!0)};return o.createElement(i,Pt({ref:v,className:Qi(`${m}${l?` ${l}`:""}`),"data-swiper-slide-index":r,onLoad:f},c),d&&o.createElement(si.Provider,{value:p},o.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof d=="number"?d:void 0},b(),a&&!y&&o.createElement("div",{className:"swiper-lazy-preloader"}))),!d&&o.createElement(si.Provider,{value:p},b(),a&&!y&&o.createElement("div",{className:"swiper-lazy-preloader"})))});Ke.displayName="SwiperSlide";const Il="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=",_l=({visible:t,onClose:e,children:i,modalStyle:n,padding:l,popup:s})=>{var d;const[a,r]=o.useState(!1),u=o.useRef(null);o.useEffect(()=>{const m=document.getElementById("sxp-render"),w=document.getElementById("pb-modal");w?u.current=w:(u.current=document.createElement("div"),u.current.setAttribute("id","pb-modal"),m?.appendChild(u.current))},[]);const c=o.useMemo(()=>s?.id&&s?.id!==""||t,[t,s]);if(o.useEffect(()=>{c?r(!0):setTimeout(()=>{r(!1)},s?.duration)},[c,s]),!u.current)return null;const v=xe.debounce(()=>{e?.()},300);return wi.createPortal(o.createElement(o.Fragment,null,a&&o.createElement("div",{className:"modal-bg",style:Object.assign({display:"flex",backgroundColor:c?"rgba(0, 0, 0, 0.7)":"rgba(0, 0, 0, 0)"},n),onClick:v},o.createElement("div",{className:`modal-container ${c?"modal-popIn":"modal-popOut"}`,style:{padding:l,animationDuration:((d=s?.duration)!==null&&d!==void 0?d:0)/1e3+"s"},onClick:m=>{m.stopPropagation(),m.preventDefault()}},o.createElement("div",{onClick:e,className:"modal-icon-wrapper"},o.createElement("img",{src:Il,alt:"close",className:"modal-icon"})),i))),u.current)};var Ot=o.memo(_l);const kl=(t="",e)=>{if(/[\u4e00-\u9fa5]+/.test(t))return t.slice(0,54);const n=t.split(" "),l=[];for(let d=0;d<n.length&&(l.push(n[d]),!(l.join(" ").length>=e));d++);return(l.length>1&&l.length<n.length?l.slice(0,l.length-1):l).join(" ")+" "},Dl=({text:t,maxStr:e=108,style:i,className:n,onClick:l,foldText:s,unfoldText:d,isPost:a,onChange:r})=>{const[u,c]=o.useState(!1),[v,m]=o.useState(!1),w=Number(i?.lineClamp||2),y=o.useRef(null),S=o.useRef(null),I=o.useCallback(()=>{c(!u)},[u,r]);return o.useMemo(()=>!u&&t.length>e?kl(t,e)+"...":t,[t,e,u]),o.useEffect(()=>{var p,b;((p=S?.current)===null||p===void 0?void 0:p.offsetHeight)>((b=y?.current)===null||b===void 0?void 0:b.offsetHeight)&&a?m(!0):m(!1),S.current.style.display="none"},[a]),o.createElement("div",{className:n,style:Object.assign(Object.assign({},i),{transform:"translate3d(0px, 0px, 0px)"}),hidden:!t||t===""},o.createElement("div",{ref:y,style:{overflow:"hidden",WebkitLineClamp:!a||u?"":w,textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:t?.replace(/\n/g,"</br>")}}),o.createElement("div",{ref:S,dangerouslySetInnerHTML:{__html:t?.replace(/\n/g,"</br>")}}),t&&a&&v&&o.createElement("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:l??I},u?d||"show less":s||"show more"))};var Mt=o.memo(Dl);const Al=o.forwardRef((t,e)=>{const{src:i,onLoad:n,style:l,className:s,loading:d}=t,[a,r]=o.useState(),{swiperRef:u}=ve();return o.useImperativeHandle(e,()=>({setSrc:c=>{r(c)}})),o.useEffect(()=>{var c,v;const m=(v=(c=u?.current)===null||c===void 0?void 0:c.swiper)===null||v===void 0?void 0:v.activeIndex;(m===0||m>0)&&r(i)},[i,u]),o.useRef(null),o.createElement(o.Fragment,null,a?.includes(".avif")?o.createElement("picture",null,o.createElement("source",{type:"image/avif",srcSet:a}),o.createElement("source",{type:"image/webp",srcSet:`${a}?imageMogr2/format/webp`}),o.createElement("source",{type:"image/jpeg",srcSet:`${a}?imageMogr2/format/jpg`}),o.createElement("img",{className:s,src:a,style:l,loading:d,onLoad:c=>{n?.(c.target)}})):o.createElement("img",{className:s,src:a,style:l,loading:d,onLoad:c=>{n?.(c.target)}}))});var Ne=o.memo(Al);const Pl=t=>{var e,i,n,l,s,d,a,r,u,{content:c,style:v,bgImg:m,onClick:w,schema:y,isDefault:S,bottom_image:I,tipText:p,isPost:b,viewTime:f,rec:x,swiper:k,commodityStyles:h,buttonStyle:P,index:C}=t,g=ke(t,["content","style","bgImg","onClick","schema","isDefault","bottom_image","tipText","isPost","viewTime","rec","swiper","commodityStyles","buttonStyle","index"]);const{sxpParameter:E}=ve(),{popupDetailData:A,bffEventReport:T,isPreview:D,bffFbReport:O}=ve(),{jumpToWeb:L,productView:z}=Be(),F=o.useRef(null),[B,N]=o.useState(!1),R=b?x:A,j=b?R?.product:(e=R?.video)===null||e===void 0?void 0:e.bindProduct,_=b?(i=R?.product)===null||i===void 0?void 0:i.bindCta:(l=(n=R?.video)===null||n===void 0?void 0:n.bindProduct)===null||l===void 0?void 0:l.bindCta,G=b?C:A?.index,V=()=>{j?.link&&(L(R,j,_,G),b||z(R,j,_,f||F.current,G),window.location.href=window.getJointUtmLink(j.link))};o.useEffect(()=>{b||O?.({eventName:"ProductView"})},[b,O]),o.useEffect(()=>{const W=()=>{F.current=new Date};return W(),window.addEventListener("pageshow",W),()=>{window.removeEventListener("pageshow",W)}},[]);const $=o.useMemo(()=>{var W,oe,K,Q,me;return j?.currency&&j?.price?`${(K=(oe=(W=j?.currency)===null||W===void 0?void 0:W.split("-")[1])===null||oe===void 0?void 0:oe.toUpperCase())!==null&&K!==void 0?K:""}${(me=(Q=j?.price)===null||Q===void 0?void 0:Q.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&me!==void 0?me:""}`:"$7,000"},[j?.price,j?.currency]),J=D?375:(s=v?.width)!==null&&s!==void 0?s:window.innerWidth,ee=({isPost:W})=>{var oe,K,Q;return o.createElement("div",null,o.createElement("div",{className:"pb-commondity-content-collection",style:pe(h?.collection),hidden:!!j&&(!j?.collection||j?.collection==="")},(oe=j?.collection)!==null&&oe!==void 0?oe:"Tiffany Lock"),o.createElement("div",{className:"pb-commondity-content-title",style:pe(h?.title),hidden:!!j&&!j?.title},(K=j?.title)!==null&&K!==void 0?K:"Pendant in Yellow Gold with Diamonds, Medium"),o.createElement("div",{className:"pb-commondity-content-price",style:pe(h?.price),hidden:!!j&&!j?.price},$),o.createElement("div",{hidden:!!j&&(!j?.info||j?.info==="")},o.createElement(Mt,{foldText:p?.foldText,unfoldText:p?.unfoldText,onClick:()=>N(!0),isPost:W,text:(Q=j?.info)!==null&&Q!==void 0?Q:`The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
2
2
|
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
3
3
|
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
4
4
|
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
5
|
-
18-karat gold, this necklace is embellished with hand-set diamonds.`,maxStr:79,className:"pb-commondity-content-info",style:m?.info})))},ie=()=>{var W;return l.createElement(l.Fragment,null,(b||O?.link)&&l.createElement("button",{onClick:V,className:"pb-commondity-btn",style:L},(W=D?.enTitle)!==null&&W!==void 0?W:"Purchase on Website"))},se=l.useCallback(W=>W?.lineClamp?Object.assign(Object.assign({},W),{overflow:"hidden",WebkitLineClamp:W?.lineClamp,textOverflow:"ellipsis",display:"-webkit-box",webkitBoxOrient:"vertical"}):W,[]);return l.createElement("div",{className:"pb-commondity"},l.createElement("div",Object.assign({className:te.css(Object.assign({},v))},T),O&&((r=O?.homePage)===null||r===void 0?void 0:r.length)>0&&l.createElement(tt,{height:ee,modules:[xt,Et],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",clickableClass:k?.dotsAlign==="left"?"commondityDetail-swiper-clickable-left":"commondityDetail-swiper-clickable-center"},loop:!0,autoplay:{delay:k?.delay*1e3}},(a=O?.homePage)===null||a===void 0?void 0:a.map(W=>l.createElement(Ue,{key:W},l.createElement("div",{style:{overflow:"hidden",width:ee,height:ee}},l.createElement(Me,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${k?.translateY?-k?.translateY+50:50}%`},src:W}))))),!(!((d=O?.homePage)===null||d===void 0)&&d.length)&&l.createElement("div",{className:te.css({position:"relative",height:0,width:"100%",paddingBottom:"100%",overflow:"hidden"})},l.createElement("img",{className:te.css({position:"absolute",left:0,top:0,objectFit:"cover",width:"100%"}),src:(u=E?.bottom_image)!==null&&u!==void 0?u:C,alt:""})),l.createElement("div",{className:"pb-commondity-content"},Q({isPost:w}))),ie(),l.createElement(_t,{visible:B,onClose:()=>j(!1)},l.createElement("div",{style:{paddingBottom:"80px"}},Q({isPost:!1})),ie()))};var _l=l.memo(Il);const kl=Pe(_l,{displayName:"\u5546\u54C1\u8BE6\u60C5",icon:"",category:"popup",type:"CommodityDetail",related:{settingRender:Un},defaulSetting:{props:{swiper:{dotsAlign:"center",delay:3},commodityStyles:{price:{color:"#000",fontSize:18,marginTop:24,marginBottom:10},title:{color:"#000",fontSize:23},collection:{fontSize:12,color:"#000",marginBottom:14},info:{color:"gray",fontSize:12}},buttonStyle:{backgroundColor:"#000",fontSize:12,height:45,fontWeight:"bold",textAlign:"center",color:"rgba(255, 255, 255, 0.9)"}},style:{}},w:100,h:40,sort:1});var Dl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],ti,ii,Al=[{title:"",child:[{type:"Media",label:"\u56FE\u6807",name:["props","icon"],mediaType:"Image"},{type:"TextArea",label:"\u5185\u5BB9",name:["props","content"]},{type:"Text",label:"\u6309\u94AE\u6587\u6848",name:["props","btnText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Select",name:["props","submitButtonStyle","fontFamily"],options:Ae?.fontOptions,initialValue:(ii=(ti=Ae?.fontOptions)===null||ti===void 0?void 0:ti[0])===null||ii===void 0?void 0:ii.value},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{type:"TextStyle",name:["props","submitButtonStyle"]},{type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitButtonStyle","backgroundColor"]}]}],Ki="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABHBJREFUeF7lmzuoFkcYhp/TihdIl0JBESubSCCCih4NXgJeUphCjyKmEEVtLRSjooWtShILRRJtgpCoeLzgLUZBQbTwAoooqLWoCWIXeZdd3bP++8/st7OX33+ac2Dn8r3Pvzv7zcy7A9RT5gDjgQnx3/T/iuA58Cz+m/7/StXhDVQ0gATOBhYCi4GxxnHeAKeAs8DfMSBjV52bhQTwBbApFj4YNMqPnV0GrgL7gJchxggFQMI3A5NDBOXRx+MYwn6Pul2rlAWwMv7VvykbiLH9TUAQjhnbYwUwA9gKLLIOHLjdGWAPcL1ovxYAG4G9wKiig1Vc/y2wBThQZJyiAA4Ba4sM0EDdw8CPvuMWAXAb+Mq344br3QGm+cTgC+B/n85aWMepz1kBOBknMy3U5wxJSdSSbrVcAPR+V9LRy0X5SW6+0A3AMuDPXlaeiv174K9OWvIAfA1cAMZ9JgBeA98Ct7J68gAMtyjJCfUbKFn6zgeA0tujoUZtWT9D2bS50x1wA2gqt6+al9YO09ODZAF8DrO+C+KIt0IagNbzIlTXktYVaKfr9+PNkSklchMtpXWHR/sJaQA7gJ8sUdXURuJ/AB7E4/0BLDeOvROQ3hEA/gFmGjusullWfDKeFcI1YFYawETgSdUqjP3niS8LYRLwNHkE1gM/GwOssplLfBkIG4BfEgBKE5dWqcTQt694da1td22YFikngGUJgH+B0UVaV1y3iHiFYpnA/wPGCICFXpX66xCfxD8oAKuA3wIpegToHW0tdYpXjKsFQLu7u60Rx+3exSCPG29HdVO3eI25TQB+BdaVAKCMSneRVpBJKfpMNiFesR4UgNOdlomeQF4AWj3quCpbfCE0JV7xDgvAXWCqp+B0tYfACkC7xXnFBaFJ8Yr5ngC8Mu78KHnS4+MqeRCaFq+4X5cB8MnmQoE7oQ3iPwCwPgJWEdZ2rjvNcj16BMpMghYxWsElS1pX0K45xNXedT2aBMu+BotCcAVlfZX69puuF70GQyRCoSFU/csnEKJEKFQqHApCXeIFIUqFQy6GykKoU7wARIuh6HVQwsmVffasEOoWLwfauASADkKU0oYqRSHULV465SsaSgAoqfk9lPq4H18ITYhXiJr7jiYAZGyUUzN0cUFoSrx0yrX6PH0ucEmTQmgCXdb5TYrX/uFcaa3rYCR7JzQpXro1vg5HRgCo+mhMEOT3/RKQYaGpkns0poD6+nA0+UX6+nhcEPreICEIfW2REQCZoc+30A9snTjlI57fyUzdzSYnU3RpP7414sDtNLl3NFG7jJK9YI52sepqnnYBUOe9ZJLOwnCapn0AqNO+NksnVHvJNO00SSeifO+ApH4vZIpdzdHZZ6QoALWXifqI8TTJNWGVua5drTV5pui8ji0A1JfM1Lta5CeWD3h7JzO0i6gVQNJv3342lwXbtx9OpkFoP0ET0LwKDZcyOF5s46ez2TtCxkt9OL0gBmJ1oMnJJcHnYo/wU9czXfR62TnAd7zWfj7/HrAAAKDnDZ8VAAAAAElFTkSuQmCC";const Pl=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:o,src:s}=t;switch(i){case 2:return n||null;case 3:return s||null;default:return o&&o.length>0?(e=o[0])===null||e===void 0?void 0:e.url:null}},Ol=t=>{var{content:e,btnText:i,style:n,icon:o,isPopup:s,isExternalLink:r,onClose:a,onClick:d,submitButtonStyle:u}=t,c=xe(t,["content","btnText","style","icon","isPopup","isExternalLink","onClose","onClick","submitButtonStyle"]);const{popupDetailData:v}=ue(),{jumpToWeb:g}=ze(),y=typeof o=="string"?o:Pl(o),h=()=>{var b,C,p;if(r){const w=v,f=(b=w?.video)===null||b===void 0?void 0:b.bindProduct,x=(p=(C=w?.video)===null||C===void 0?void 0:C.bindProduct)===null||p===void 0?void 0:p.bindCta,k=v?.index;g(w,f,x,k)}s||a?.(),d?.()};return l.createElement("div",Object.assign({className:`pb-prompt ${te.css(Object.assign({},n))}`},c),l.createElement("div",{className:"pb-prompt-icon"},l.createElement("img",{width:"100%",src:y??Ki})),l.createElement("div",{className:"pb-prompt-content"},e),l.createElement("button",{className:"pb-prompt-btn",style:u,onClick:h},i))};var Ml=l.memo(Ol);const Ll=Pe(Ml,{displayName:"\u63D0\u4EA4\u6210\u529F",icon:"",category:"popup",type:"Prompt",related:{settingRender:Al,bindableProps:[],interactionRender:Dl},defaulSetting:{props:{icon:Ki,content:"You have successfully completed the appointment!",btnText:"OK"},style:{}},w:100,h:40,sort:3});var ni,oi,jl=[{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Color",name:["color"]},{type:"Select",options:de,name:["fontFamily"],initialValue:(ni=de?.[0])===null||ni===void 0?void 0:ni.value},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Select",name:["props","buttonStyle","fontFamily"],options:de,initialValue:(oi=de?.[0])===null||oi===void 0?void 0:oi.value},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]}]}];const Nl=t=>{var e,i,n,o,s,r,a,d,u,c,v,g,{style:y,isDefault:h,rec:b,viewTime:C,isPost:p,bottom_image:w,tipText:f,swiper:x,commodityStyles:k,buttonStyle:m,index:L}=t,_=xe(t,["style","isDefault","rec","viewTime","isPost","bottom_image","tipText","swiper","commodityStyles","buttonStyle","index"]);l.useState(!0);const{sxpParameter:T}=ue(),{popupDetailData:E,bffEventReport:A,isPreview:S,swiperRef:I,bffFbReport:P}=ue(),{jumpToWeb:N,productView:U}=ze(),G=l.useRef(null);l.useRef(null),l.useRef(null),l.useState(!1),l.useState(!1),l.useState(!0);const[B,j]=l.useState(!1),z=l.useRef(null),O=p?b:E,D=p?O?.product:(e=O?.video)===null||e===void 0?void 0:e.bindProduct,$=p?(i=O?.product)===null||i===void 0?void 0:i.bindCta:(o=(n=O?.video)===null||n===void 0?void 0:n.bindProduct)===null||o===void 0?void 0:o.bindCta,V=p?L:E?.index,F=()=>{D?.link&&(N(O,D,$,V),p||U(O,D,$,C||z.current,V),window.location.href=window.getJointUtmLink(D.link))};l.useEffect(()=>{p||P?.({eventName:"ProductView"})},[p,P]),l.useEffect(()=>{const W=()=>{z.current=new Date};return W(),window.addEventListener("pageshow",W),()=>{window.removeEventListener("pageshow",W)}},[]);const ee=l.useMemo(()=>{var W,re,J,Z,he;return D?.currency&&D?.price?`${(J=(re=(W=D?.currency)===null||W===void 0?void 0:W.split("-")[1])===null||re===void 0?void 0:re.toUpperCase())!==null&&J!==void 0?J:""}${(he=(Z=D?.price)===null||Z===void 0?void 0:Z.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&he!==void 0?he:""}`:"\xA3102,300.00"},[D?.price,D?.currency]),Q=S?375:(s=y?.width)!==null&&s!==void 0?s:window.innerWidth,ie=({isPost:W})=>l.createElement("div",{hidden:!!D&&(!D?.info||D?.info==="")},l.createElement(kt,{isPost:W,onClick:()=>j(!0),className:"pb-commondityDiroNew-info",style:k?.info,foldText:f?.foldText,unfoldText:f?.unfoldText,text:D?.info||`Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
|
6
|
-
Made in Italy`})),se=l.useCallback(W=>W?.lineClamp?Object.assign(Object.assign({},W),{overflow:"hidden",WebkitLineClamp:W?.lineClamp,textOverflow:"ellipsis",display:"-webkit-box",webkitBoxOrient:"vertical"}):W,[]);return l.createElement("div",{className:"pb-commondityDiroNew"},l.createElement("div",Object.assign({ref:G,className:te.css(Object.assign({},y))},_),D&&((r=D?.homePage)===null||r===void 0?void 0:r.length)>0&&l.createElement(tt,{height:Q,modules:[xt,Et],pagination:{clickable:!0,bulletActiveClass:"commondityDiroNew-swipe-item-active-bullet",clickableClass:x?.dotsAlign==="left"?"commondityDiroNew-swiper-clickable-left":"commondityDiroNew-swiper-clickable-center"},loop:!0,autoplay:{delay:x?.delay*1e3}},(a=D?.homePage)===null||a===void 0?void 0:a.map(W=>l.createElement(Ue,{key:W},l.createElement("div",{style:{overflow:"hidden",width:Q,height:Q}},l.createElement(Me,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${x?.translateY?-x?.translateY+50:50}%`},src:W}))))),!(!((d=D?.homePage)===null||d===void 0)&&d.length)&&l.createElement("div",{className:te.css({position:"relative",height:0,width:"100%",paddingBottom:"100%",overflow:"hidden"})},l.createElement("img",{className:te.css({position:"absolute",left:0,top:0,objectFit:"cover",width:"100%"}),src:(u=T?.bottom_image)!==null&&u!==void 0?u:w,alt:""})),l.createElement("div",{className:"pb-commondityDiroNew-content"},l.createElement("div",{className:"pb-commondityDiroNew-content-top"},l.createElement("div",{className:"pb-commondityDiroNew-content-top-left"},l.createElement("div",{className:"pb-commondityDiroNew-content-top-left-title",style:se(k?.title)},(c=D?.title)!==null&&c!==void 0?c:"Large Dior Toujours BagLarge"),l.createElement("div",{className:"pb-commondityDiroNew-content-collection",hidden:!!D&&(!D?.collection||D?.collection===""),style:se(k?.collection)},D?.collection||"Black Macrocannage CalfskinLarge")),l.createElement("div",{className:"pb-commondityDiroNew-content-top-right"},l.createElement("div",{className:"pb-commondityDiroNew-content-top-right-price",hidden:!!D&&!D?.price,style:se(k?.price)},ee),l.createElement("div",{className:"pb-commondityDiroNew-content-top-right-price",hidden:!!D&&!D?.taxInfo,style:se(k?.taxInfo)},(v=D?.taxInfo)!==null&&v!==void 0?v:"\u7A0E\u8D39"))),(!D||D?.link)&&l.createElement("button",{onClick:F,className:"pb-commondityDiroNew-btn",style:m},(g=$?.enTitle)!==null&&g!==void 0?g:"Shop now"),ie({isPost:p}))),l.createElement(_t,{visible:B,onClose:()=>j(!1)},ie({isPost:!1})))};var Bl=l.memo(Nl);const Rl=Pe(Bl,{displayName:"\u5546\u54C1\u8BE6\u60C5",icon:"",category:"popup",type:"CommodityDetailDiroNew",related:{settingRender:jl},defaulSetting:{props:{swiper:{dotsAlign:"left",delay:3},commodityStyles:{price:{color:"#000",fontWeight:"bold",fontSize:13},title:{color:"#000",fontSize:13},collection:{color:"#757575",fontSize:13},info:{color:"#757575",fontSize:13},taxInfo:{color:"#000",fontWeight:"bold",fontSize:13,textAlign:"right"}},buttonStyle:{backgroundColor:"#000",fontSize:12,height:52,fontWeight:"bold",textAlign:"center",color:"#fff",borderRadius:25,marginTop:16,marginBottom:16}},style:{}},w:100,h:40,sort:1});var li,si,Ne=[{title:"\u4E3B\u9898\u6837\u5F0F",child:[{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["style","width"],addonAfter:"W"},{type:"Number",name:["style","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["style","borderRadius"],max:100},{type:"Number",name:["style","borderRadius"],addonAfter:"px",max:100}]},{type:"Color",label:"\u80CC\u666F\u8272",name:["style","backgroundColor"]},{label:"\u5185\u8FB9\u8DDD",type:"Number",name:["style","padding"],addonAfter:"px"},{label:"\u4E0EPost\u63CF\u8FF0\u8FB9\u8DDD",type:"Number",name:["style","marginBottom"],addonAfter:"px"}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","ctaTempStyles","img","width"],addonAfter:"W"},{type:"Number",name:["props","ctaTempStyles","img","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","ctaTempStyles","img","borderRadius"],max:100},{type:"Number",name:["props","ctaTempStyles","img","borderRadius"],addonAfter:"px",max:100}]},{type:"Number",label:"\u4E0E\u53F3\u4FA7\u8FB9\u8DDD",addonAfter:"px",name:["props","ctaTempStyles","img","marginRight"]},{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{title:"\u5546\u54C1\u6807\u9898\u6587\u672C",type:"commodityTitle",child:[{type:"Group",label:"\u5B57\u4F53",child:[{type:"Color",name:["props","ctaTempStyles","title","color"]},{type:"Select",options:de,name:["props","ctaTempStyles","title","fontFamily"],initialValue:(li=de?.[0])===null||li===void 0?void 0:li.value},{type:"Number",addonAfter:"px",name:["props","ctaTempStyles","title","fontSize"]}]},{label:"\u6837\u5F0F",type:"TextStyle",name:["props","ctaTempStyles","title"]},{label:"\u5BF9\u9F50",type:"TextAlign",name:["props","ctaTempStyles","title"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","ctaTempStyles","title"]}]},{title:"CTA\u6807\u9898",child:[{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","ctaTempStyles","ctaTitle","width"],addonAfter:"W"},{type:"Number",name:["props","ctaTempStyles","ctaTitle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","ctaTempStyles","ctaTitle","borderRadius"],max:100},{type:"Number",name:["props","ctaTempStyles","ctaTitle","borderRadius"],addonAfter:"px",max:100}]},{type:"Color",label:"\u80CC\u666F\u8272",name:["props","ctaTempStyles","ctaTitle","backgroundColor"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Color",name:["props","ctaTempStyles","ctaTitle","color"]},{type:"Select",options:de,name:["props","ctaTempStyles","ctaTitle","fontFamily"],initialValue:(si=de?.[0])===null||si===void 0?void 0:si.value},{type:"Number",addonAfter:"px",name:["props","ctaTempStyles","ctaTitle","fontSize"]}]},{label:"\u6837\u5F0F",type:"TextStyle",name:["props","ctaTempStyles","ctaTitle"]},{label:"\u5BF9\u9F50",type:"TextAlign",name:["props","ctaTempStyles","ctaTitle"]}]}],zl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];function Qi(t){const e=l.useRef(null),[i,n]=l.useState(!1);return l.useEffect(()=>{e.current=new IntersectionObserver(([o])=>{n(o.isIntersecting)})},[]),l.useEffect(()=>{var o;return t?.current&&((o=e?.current)===null||o===void 0||o.observe(t?.current)),()=>{var s;(s=e?.current)===null||s===void 0||s.disconnect()}},[t]),i}const Vl=t=>{var{rec:e,children:i,className:n,onClick:o,style:s,isExternalLink:r=!1,index:a}=t;xe(t,["rec","children","className","onClick","style","isExternalLink","index"]);const d=l.useRef(null),u=Qi(d),{popup:c}=$e(),{setPopupDetailData:v,ctaEvent:g}=ue(),{jumpToWeb:y}=ze();l.useEffect(()=>{var b,C;if(u&&d?.current){const p=(C=(b=e?.video)===null||b===void 0?void 0:b.bindProduct)!==null&&C!==void 0?C:e?.video;g?.({eventSubject:"ctaExposure",eventDescription:"The cta was shown to the user"},e,p,a)}},[u,d,e,g,a]);const h=be.throttle(()=>{var b,C,p,w,f,x,k,m;const L=(C=(b=e?.video)===null||b===void 0?void 0:b.bindProduct)!==null&&C!==void 0?C:e?.video;if(g?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},e,L,a),v?.(Object.assign(Object.assign({},e),{index:a})),r){if(!((w=(p=e?.video)===null||p===void 0?void 0:p.bindProduct)===null||w===void 0)&&w.link){const _=(f=e?.video)===null||f===void 0?void 0:f.bindCta,T=(x=e?.video)===null||x===void 0?void 0:x.bindProduct;y(e,T,_,a),window.location.href=window.getJointUtmLink((m=(k=e?.video)===null||k===void 0?void 0:k.bindProduct)===null||m===void 0?void 0:m.link)}}else o?.()},c?.duration);return l.createElement("div",{ref:d,className:n,style:s,onClick:h},i)};var mt=l.memo(Vl),Fl={"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};const Hl=t=>{var e,i,n,o,s,r,a,d,{content:u,style:c,bgImg:v,recData:g,bottom_image:y,ctaTempStyles:h,isExternalLink:b,translateY:C=0}=t,p=xe(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles","isExternalLink","translateY"]);const{sxpParameter:w}=ue(),f=(e=g?.video)===null||e===void 0?void 0:e.bindProduct,x=(s=(o=(i=f?.cover)!==null&&i!==void 0?i:(n=f?.homePage)===null||n===void 0?void 0:n[0])!==null&&o!==void 0?o:w?.bottom_image)!==null&&s!==void 0?s:y;return l.createElement(mt,Object.assign({isExternalLink:b,rec:g,className:te.css(Object.assign({},c)),style:{display:"flex"}},p),l.createElement("div",{className:te.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},h?.img))},l.createElement(Me,{className:te.css({width:"100%",objectFit:"cover",height:"100%",display:"block",objectPosition:`50% ${C?-C+50:50}%`}),src:x})),l.createElement("div",{className:te.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},l.createElement("div",{className:Fl["tow-line-ellipsis"],style:h?.title},(r=f?.title)!==null&&r!==void 0?r:"Product Name"),l.createElement("div",{className:te.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},h?.ctaTitle))},(d=(a=f?.bindCta)===null||a===void 0?void 0:a.enTitle)!==null&&d!==void 0?d:"Shop Now")))};var Ul=l.memo(Hl);const Gl=Pe(Ul,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u900F\u660E\u5E95",icon:"",category:"template",type:"Commodity",related:{interactionRender:zl,bindableProps:[],settingRender:Ne},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},title:{fontSize:12,color:"#fff",textAlign:"left"},ctaTitle:{fontSize:10,color:"#fff",textAlign:"center",width:130,height:20,backgroundColor:"rgba(0,0,0,.5)"}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"rgba(0,0,0,.3)",marginBottom:8}},w:100,h:40,sort:1});var $l=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];const Wl=t=>{var e,i,n,o,{content:s,style:r,bgImg:a,recData:d,bottom_image:u,ctaTempStyles:c,isExternalLink:v}=t,g=xe(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles","isExternalLink"]);const{sxpParameter:y}=ue(),h=(e=d?.video)===null||e===void 0?void 0:e.bindCta;return l.createElement(mt,Object.assign({isExternalLink:v,rec:d,className:te.css(Object.assign({alignItems:"center"},r)),style:{display:"flex"}},g),l.createElement("div",{className:te.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},c?.img))},l.createElement("img",{className:te.css({width:"100%",objectFit:"cover",height:"100%",display:"block"}),src:(n=(i=h?.icon)!==null&&i!==void 0?i:y?.bottom_image)!==null&&n!==void 0?n:u,alt:""})),l.createElement("div",{className:te.css(Object.assign({overflow:"hidden",textOverflow:"ellipsis"},c?.ctaTitle))},(o=h?.enTitle)!==null&&o!==void 0?o:"Product Name"))};var Yl=l.memo(Wl);const ql=Pe(Yl,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"template",type:"Appoint",related:{interactionRender:$l,settingRender:Ne?.filter(t=>t.type!=="commodityTitle"),bindableProps:[]},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:30,height:30,marginRight:8},ctaTitle:{fontSize:12,color:"#fff",textAlign:"left",width:130,height:20}}},style:{padding:7,width:236,height:44,borderRadius:3,backgroundColor:"rgba(0,0,0,.3)",marginBottom:8}},w:100,h:40,sort:6});var Xl={"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU"};const Jl=t=>{var e,i,n,o,s,{content:r,style:a,bgImg:d,recData:u,bottom_image:c,ctaTempStyles:v,index:g}=t,y=xe(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles","index"]);const{sxpParameter:h,bffEventReport:b}=ue(),{jumpToWeb:C}=ze(),p=(e=u?.video)===null||e===void 0?void 0:e.bindCta,w=(i=u?.video)===null||i===void 0?void 0:i.bindProduct,f=()=>{p?.link&&(C(u,w,p,g),window.location.href=window.getJointUtmLink(p.link))};return l.createElement(mt,Object.assign({index:g,rec:u,className:te.css(Object.assign({alignItems:"center"},a)),style:{display:"flex"}},y,{onClick:f}),l.createElement("div",{className:te.css(Object.assign({backgroundColor:"#f2f2f2",overflow:"hidden",flexShrink:0},v?.img))},l.createElement(Me,{className:te.css({width:"100%",objectFit:"cover",height:"100%",display:"block"}),src:(o=(n=p?.icon)!==null&&n!==void 0?n:h?.bottom_image)!==null&&o!==void 0?o:c})),l.createElement("div",{className:te.css({display:"flex",alignItems:"center",width:"100%",overflow:"hidden"})},l.createElement("div",{className:Xl["tow-line-ellipsis"],style:v?.ctaTitle},(s=p?.enTitle)!==null&&s!==void 0?s:"Product Name")))};var Kl=l.memo(Jl);const Ql=Pe(Kl,{displayName:"\u8DF3\u8F6C\u6307\u5F15",icon:"",category:"template",type:"Link",related:{settingRender:Ne?.filter(t=>t.type!=="commodityTitle"),bindableProps:[]},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},ctaTitle:{fontSize:12,color:"#fff",textAlign:"left",width:130,height:20}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"rgba(0,0,0,.3)",marginBottom:8}},w:100,h:40,sort:5});var Zl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],es={"tow-line-ellipsis":"index-module_tow-line-ellipsis__yyHVb"};const ts=t=>{var e,i,n,o,s,r,a,d,{content:u,style:c,bgImg:v,recData:g,bottom_image:y,ctaTempStyles:h,isExternalLink:b,translateY:C=0}=t,p=xe(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles","isExternalLink","translateY"]);const{sxpParameter:w}=ue(),f=(e=g?.video)===null||e===void 0?void 0:e.bindProduct,x=(s=(o=(i=f?.cover)!==null&&i!==void 0?i:(n=f?.homePage)===null||n===void 0?void 0:n[0])!==null&&o!==void 0?o:w?.bottom_image)!==null&&s!==void 0?s:y;return l.createElement(mt,Object.assign({isExternalLink:b,rec:g,className:te.css(Object.assign({},c)),style:{display:"flex"}},p),l.createElement("div",{className:te.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},h?.img))},l.createElement(Me,{className:te.css({width:"100%",objectFit:"cover",height:"100%",display:"block",objectPosition:`50% ${C?-C+50:50}%`}),src:x})),l.createElement("div",{className:te.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},l.createElement("div",{className:es["tow-line-ellipsis"],style:h?.title},(r=f?.title)!==null&&r!==void 0?r:"Product Name"),l.createElement("div",{className:te.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",borderRadius:"25px",whiteSpace:"nowrap"},h?.ctaTitle))},(d=(a=f?.bindCta)===null||a===void 0?void 0:a.enTitle)!==null&&d!==void 0?d:"Shop Now")))};var is=l.memo(ts);const ns=Pe(is,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u767D\u5E95\u5706\u89D2\u6309\u94AE",icon:"",category:"template",type:"CommodityDiro",related:{interactionRender:Zl,settingRender:Ne,bindableProps:[]},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},title:{fontSize:12,color:"#000",textAlign:"left"},ctaTitle:{fontSize:10,color:"#fff",textAlign:"center",width:80,height:20,backgroundColor:"rgba(0,0,0,1)"}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"#fff",marginBottom:8}},w:100,h:40,sort:2});var os=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],ls={"tow-line-ellipsis":"index-module_tow-line-ellipsis__I-yCC"};const ss=t=>{var e,i,n,o,s,r,a,d,{content:u,style:c,bgImg:v,recData:g,bottom_image:y,ctaTempStyles:h,isExternalLink:b,translateY:C=0}=t,p=xe(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles","isExternalLink","translateY"]);const{sxpParameter:w}=ue(),f=(e=g?.video)===null||e===void 0?void 0:e.bindProduct,x=(s=(o=(i=f?.cover)!==null&&i!==void 0?i:(n=f?.homePage)===null||n===void 0?void 0:n[0])!==null&&o!==void 0?o:w?.bottom_image)!==null&&s!==void 0?s:y;return l.createElement(mt,Object.assign({isExternalLink:b,rec:g,className:te.css(Object.assign({},c)),style:{display:"flex"}},p),l.createElement("div",{className:te.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},h?.img))},l.createElement(Me,{className:te.css({width:"100%",objectFit:"cover",height:"100%",display:"block",objectPosition:`50% ${C?-C+50:50}%`}),src:x})),l.createElement("div",{className:te.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",overflow:"hidden"})},l.createElement("div",{className:ls["tow-line-ellipsis"],style:h?.title},(r=f?.title)!==null&&r!==void 0?r:"Product Name"),l.createElement("div",{className:te.css(Object.assign({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},h?.ctaTitle))},(d=(a=f?.bindCta)===null||a===void 0?void 0:a.enTitle)!==null&&d!==void 0?d:"Shop now")))};var as=l.memo(ss);const rs=Pe(as,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u767D\u5E95\u4E0B\u5212\u7EBF\u6309\u94AE",icon:"",category:"template",type:"CommodityDiroNew",related:{interactionRender:os,bindableProps:[],settingRender:Ne},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:8,width:78,height:78,marginRight:16},title:{fontSize:13,color:"#000",textAlign:"left"},ctaTitle:{textDecoration:"underline",fontSize:14,fontWeight:"bold",color:"#000",textAlign:"left",width:150,height:20}}},style:{borderRadius:4,width:260,height:86,padding:4,backgroundColor:"rgba(255,255,255,0.75)",marginBottom:8}},w:100,h:40,sort:2});var ds=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];const cs=({children:t,isPadding:e=!0})=>l.createElement(tt,{direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[eo,Zn,Qn],style:{padding:e?"0 12px 0 20px":0}},t);var Dt=l.memo(cs);const us=({src:t,rec:e,item:i,index:n,style:o})=>{const s=l.useRef(null),r=Qi(s),{ctaEvent:a}=ue();return l.useEffect(()=>{r&&t&&s?.current&&a?.({eventSubject:"ctaExposure",eventDescription:"The cta was shown to the user"},e,i,n)},[r,t,s,e,a,i,n]),l.createElement("div",{ref:s,hidden:!t,className:te.css({width:"100%",height:"100%"})},l.createElement(Me,{className:te.css(Object.assign({width:"100%",objectFit:"cover",height:"100%",display:"block"},o)),src:t}))};var ai=l.memo(us),ps={"two-line-ellipsis":"index-module_two-line-ellipsis__SFQwJ"};const vs=t=>{var e,i,{content:n,style:o,bgImg:s,recData:r,onClick:a,bottom_image:d,ctaTempStyles:u,isExternalLink:c,index:v,translateY:g=0}=t,y=xe(t,["content","style","bgImg","recData","onClick","bottom_image","ctaTempStyles","isExternalLink","index","translateY"]);const{ctaEvent:h,setPopupDetailData:b,sxpParameter:C}=ue(),{popup:p}=$e(),{jumpToWeb:w}=ze(),[f,x]=l.useState((i=(e=r?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),k=be.throttle(m=>{h?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},r,m,v),b?.(Object.assign(Object.assign({},r),{video:Object.assign(Object.assign({},r?.video),{bindProduct:m}),index:v})),c?m?.link&&(w(r,m,m.bindCta,v),window.location.href=window.getJointUtmLink(m.link)):a?.()},p?.duration);return l.createElement(Dt,{isPadding:!!r},f?.map(m=>{var L,_,T,E,A,S,I;return l.createElement(Ue,Object.assign({hidden:r&&!m?.bindCta,key:m?.itemId,className:te.css(Object.assign(Object.assign({},o),{display:"flex",flexShrink:0,marginLeft:0,marginRight:"8px"}))},y,{onClick:()=>k(m)}),l.createElement("div",{className:te.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},u?.img))},l.createElement(ai,{src:(E=(T=(L=m?.cover)!==null&&L!==void 0?L:(_=m?.homePage)===null||_===void 0?void 0:_[0])!==null&&T!==void 0?T:C?.bottom_image)!==null&&E!==void 0?E:d,rec:r,item:m,index:v,style:{objectPosition:`50% ${g?-g+50:50}%`}})),l.createElement("div",{className:te.css({color:"#000",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},l.createElement("div",{className:ps["two-line-ellipsis"],style:u?.title},(A=m?.title)!==null&&A!==void 0?A:"Product Name"),l.createElement("div",{className:te.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",borderRadius:"25px",whiteSpace:"nowrap"},u?.ctaTitle))},(I=(S=m?.bindCta)===null||S===void 0?void 0:S.enTitle)!==null&&I!==void 0?I:"Shop Now")))}))};var fs=l.memo(vs);const ms=Pe(fs,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u767D\u5E95\u5706\u89D2\u6309\u94AE",icon:"",category:"template",type:"MultiCommodityDiro",related:{interactionRender:ds,bindableProps:[],settingRender:Ne},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},title:{fontSize:12,color:"#000",textAlign:"left"},ctaTitle:{fontSize:10,color:"#fff",textAlign:"center",width:80,height:20,backgroundColor:"rgba(0,0,0,1)"}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"#fff",marginBottom:8}},w:100,h:40,sort:4});var hs=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],gs={"two-line-ellipsis":"index-module_two-line-ellipsis__mdzn0"};const bs=t=>{var e,i,{content:n,style:o,bgImg:s,recData:r,onClick:a,bottom_image:d,ctaTempStyles:u,isExternalLink:c,index:v,translateY:g=0}=t,y=xe(t,["content","style","bgImg","recData","onClick","bottom_image","ctaTempStyles","isExternalLink","index","translateY"]);const{sxpParameter:h}=ue(),{ctaEvent:b,setPopupDetailData:C}=ue(),{popup:p}=$e(),[w,f]=l.useState((i=(e=r?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),{jumpToWeb:x}=ze(),k=be.throttle(m=>{b?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},r,m,v),C?.(Object.assign(Object.assign({},r),{video:Object.assign(Object.assign({},r?.video),{bindProduct:m}),index:v})),c?m?.link&&(x(r,m,m.bindCta,v),window.location.href=window.getJointUtmLink(m.link)):a?.()},p?.duration);return l.createElement(Dt,{isPadding:!!r},w?.map(m=>{var L,_,T,E,A,S,I;return l.createElement(Ue,Object.assign({hidden:r&&!m?.bindCta,key:m.itemId,className:te.css(Object.assign(Object.assign({},o),{display:"flex",flexShrink:0,marginLeft:0,marginRight:"8px"}))},y,{onClick:()=>k(m)}),l.createElement("div",{className:te.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},u?.img))},l.createElement(ai,{src:(E=(T=(L=m?.cover)!==null&&L!==void 0?L:(_=m?.homePage)===null||_===void 0?void 0:_[0])!==null&&T!==void 0?T:h?.bottom_image)!==null&&E!==void 0?E:d,rec:r,item:m,index:v,style:{objectPosition:`50% ${g?-g+50:50}%`}})),l.createElement("div",{className:te.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},l.createElement("div",{className:gs["two-line-ellipsis"],style:u?.title},(A=m?.title)!==null&&A!==void 0?A:"Product Name"),l.createElement("div",{className:te.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},u?.ctaTitle))},(I=(S=m?.bindCta)===null||S===void 0?void 0:S.enTitle)!==null&&I!==void 0?I:"Shop Now")))}))};var ys=l.memo(bs);const ws=Pe(ys,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u900F\u660E\u5E95",icon:"",category:"template",type:"MultiCommodity",related:{interactionRender:hs,settingRender:Ne,bindableProps:[]},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},title:{fontSize:12,color:"#fff",textAlign:"left"},ctaTitle:{fontSize:10,color:"#fff",textAlign:"center",width:130,height:20,backgroundColor:"rgba(0,0,0,.5)"}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"rgba(0,0,0,.3)",marginBottom:8}},w:100,h:40,sort:3});var Ss=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Ts={"tow-line-ellipsis":"index-module_tow-line-ellipsis__fselR"};const xs=t=>{var e,i,{content:n,style:o,bgImg:s,recData:r,onClick:a,bottom_image:d,ctaTempStyles:u,isExternalLink:c,index:v,translateY:g=0}=t,y=xe(t,["content","style","bgImg","recData","onClick","bottom_image","ctaTempStyles","isExternalLink","index","translateY"]);const{ctaEvent:h,setPopupDetailData:b,sxpParameter:C}=ue(),{popup:p}=$e(),{jumpToWeb:w}=ze(),[f,x]=l.useState((i=(e=r?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),k=be.throttle(m=>{h?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},r,m,v),b?.(Object.assign(Object.assign({},r),{video:Object.assign(Object.assign({},r?.video),{bindProduct:m}),index:v})),c?m?.link&&(w(r,m,m.bindCta,v),window.location.href=window.getJointUtmLink(m.link)):a?.()},p?.duration);return l.createElement(Dt,{isPadding:!!r},f?.map(m=>{var L,_,T,E,A,S,I;return l.createElement(Ue,Object.assign({hidden:r&&!m?.bindCta,key:m?.itemId,className:te.css(Object.assign(Object.assign({},o),{display:"flex",flexShrink:0,marginLeft:0,marginRight:"8px"}))},y,{onClick:()=>k(m)}),l.createElement("div",{className:te.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},u?.img))},l.createElement(ai,{src:(E=(T=(L=m?.cover)!==null&&L!==void 0?L:(_=m?.homePage)===null||_===void 0?void 0:_[0])!==null&&T!==void 0?T:C?.bottom_image)!==null&&E!==void 0?E:d,rec:r,item:m,index:v,style:{objectPosition:`50% ${g?-g+50:50}%`}})),l.createElement("div",{className:te.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",overflow:"hidden",lineHeight:"20px"})},l.createElement("div",{className:Ts["tow-line-ellipsis"],style:u?.title},(A=m?.title)!==null&&A!==void 0?A:"Product Name"),l.createElement("div",{className:te.css(Object.assign({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},u?.ctaTitle))},(I=(S=m?.bindCta)===null||S===void 0?void 0:S.enTitle)!==null&&I!==void 0?I:"Shop now")))}))};var Es=l.memo(xs);const Cs=Pe(Es,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u767D\u5E95\u4E0B\u5212\u7EBF\u6309\u94AE",icon:"",category:"template",type:"MultiCommodityDiroNew",related:{interactionRender:Ss,bindableProps:[],settingRender:Ne},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:8,width:78,height:78,marginRight:16},title:{fontSize:12,color:"#000",textAlign:"left"},ctaTitle:{textDecoration:"underline",fontSize:12,fontWeight:"bold",color:"#000",textAlign:"left",width:150,height:20}}},style:{borderRadius:4,width:260,height:86,padding:4,backgroundColor:"rgba(255,255,255,0.75)",marginBottom:8}},w:100,h:40,sort:4});var ri,di,Is=[{title:"Banner",child:[{type:"Switch",label:"Banner\u56FE\u5F00\u5173",name:["props","showBanner"]}]},{title:"\u5361\u7247\u6837\u5F0F",child:[{type:"Number",label:"\u4E0A\u4E0B\u8FB9\u8DDD",name:["props","space"],addonAfter:"px"},{type:"Switch",label:"\u56FA\u5B9A\u5BBD\u9AD8",name:["props","isWaterfallFlow"]}]},{title:"\u6587\u672C\u8BBE\u7F6E",child:[{name:["props","textStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"hashtag\u6807\u9898",value:"hashTagTitle"},{label:"hashtag\u63CF\u8FF0",value:"hashTagDesc"},{label:"hashtag\u63CF\u8FF0\u8D85\u94FE",value:"hashTagLink"},{label:"\u6807\u9898",value:"title"},{label:"\u4EF7\u683C",value:"price"}],name:["props","textStyles","field"],initialValue:"title"},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Color",name:["color"]},{type:"Select",options:de,name:["fontFamily"],initialValue:(ri=de?.[0])===null||ri===void 0?void 0:ri.value},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"}]}]},{title:"\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextPadding",name:["props","buttonBgStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Select",name:["props","buttonStyle","fontFamily"],options:de,initialValue:(di=de?.[0])===null||di===void 0?void 0:di.value},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]}]},{title:"\u6309\u94AE\u80CC\u666F\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonBgStyle","backgroundColor"],initialValue:"#fff"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonBgStyle","height"],addonAfter:"H"}]}]}];const _s=({icon:t,styles:e,textStyle:i,onClose:n})=>{var o;const{waterFallData:s,setOpenHashtag:r}=ue();return l.createElement("div",{className:"clc-sxp-nav",style:e},l.createElement("img",{className:"clc-sxp-nav-left",src:t,alt:"",onClick:n}),l.createElement("div",{className:"clc-sxp-nav-title",style:i},`#${(o=s?.hashTag)!==null&&o!==void 0?o:"\u6807\u9898"}`))};var Zi=l.memo(_s),ks=null,Ds="3d989325-e7d6-4a74-8a97-98febdf5b567",As=null,Ps=null,Os={info:"The dior toujours bag is distinguished by a casual and practical design. Fully embroidered with black textured tweed, it is accented by a blend of threads displaying the cannage motif.",link:"www.baidu.com",linkTitle:null,linkType:"WEB"},Ms=[{position:"0",isCollected:null,video:{itemId:"VIDEOY2BMu1710323630175",title:"A symbol of excellence, the Dior Toujours bag is reinterpreted in an unprecedented version. For the Dior spring-summer 2024 ready-to-wear collection, this exceptional accessory, dreamed up by Maria Grazia Chiuri, is dressed in irresistible crinkled leather featuring the iconic macrocannage motif. A new emblem of the virtuoso, perpetually reinvented savoir-faire of the Dior Ateliers.",tags:["Dior Toujours Bag","Casual","Leather Strap","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOY2BMu1710323630175:default:3::branch:Handbags:0",bindCta:null,bindProduct:{itemId:"M2821SNIOM900",title:"Medium Dior Toujours Bag Black Macrocannage Crinkled Leather",tags:["Medium","Black","Women","Handbags","Bucket Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M2821SNIOM900:default:3::branch:Handbags:0",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:0",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsy6AN0OWw3rj8Luw3RTSP9n2kDLq1710497237677.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fszTc3uEUrtppdN9QVVU2XBnaaaBY1710497237986.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKbBMTRa0tTTX661wu7DzLw9OP0r1710497237980.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsOYHlYCwgzalxzmIJcsZmIsJ2L3g1710497237145.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKJqNVm1ZBlrgZ8XLC0YAaO6ws2F1710497237650.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsm2VoVancBQ20nDHceESUPNLyrUy1710497238312.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs2B5YYmv8OztP3d9rlM2a9KmYswl1710497237339.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"The dior toujours bag is distinguished by a casual and practical design. Crafted in black crinkled calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize the essentials. Its leather strap closure keeps items secure while the d of the cd lock closure twists to adjust the sides and enhance the bag's silhouette.",price:4400,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fswbY3wT0hCmrYkrqDzFKnHb3NMux1710323481052.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fs3Ifqv7fk2Tn9nPtwOTO2YjxAuRO1710323470472.mp4",imgUrls:null,hashTags:["Dior Toujours Bag","Casual","Leather Strap","Handbags"]},product:null,cta:null},{position:"1",isCollected:null,video:{itemId:"VIDEO6JCOb1710323364018",title:"Maria grazia chiuri's hallmark dior book tote offers an original take on elegance. Unveiled at the cruise 2024 fashion show, the refined style showcases the iconic blue dior oblique embroidery and calfskin. Designed to keep all the daily essentials organized, the interior is equipped with a zipped pocket and patch pockets.",tags:["Handbags","Manufacturing Craftsmanship","Dior Book Tote"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEO6JCOb1710323364018:default:3::branch:Handbags:1",bindCta:null,bindProduct:{itemId:"M1296ZRIWM828",title:"Medium Dior Book Tote",tags:["Maria Grazia Chiuri","Hand","Shoulder","Handbags","Blue","Women"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1296ZRIWM828:default:3::branch:Handbags:1",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:1",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fs69g46K9wPCwi5VRAP2QAgRHM0Pc1709696901624.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsAIliGV0ZJP8MNa8DECYtwsK4ker1709696900761.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsMJ4JfZ0Vhzq6H71NdIPg6YozbIz1709696897845.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsWXI06zGOmACXn9wD3EegRLkB7dg1709696911033.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",price:3350,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsAHlkdbqYj5F84o2faRzU1E3AvG11710323339209.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fs7KIGk2IB0MsoDL1ANWB1Mb2hqu41710323314146.mp4",imgUrls:null,hashTags:["Handbags","Dior Book Tote"]},product:null,cta:null},{position:"2",isCollected:null,video:null,product:{itemId:"M2820OTKVM911",title:"Large Dior Toujours Bag Black Cannage Tweed",tags:["Black","Women","Handbags","Bucket Bag","Dior Toujours Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M2820OTKVM911:default:3::branch:Handbags:2",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:2",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fsJTjyFchOFEJSTRYxXvL2XPU1dP61710238469418.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fstdFA1dFT55QjtQPU2qHNENo5peF1710836061716.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fs9xf8AlIApbHezVL3BsxjUGIrN231710836061181.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fs9iZ20MjLAPkXmFKvD8HzhLaBJ671710238470272.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fsSSodev3wicDfE1DYNWPQVeRjErt1710238464035.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fs3YAOuN6Pd9NFvH1Rdooj6eLI18S1710238465296.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fsBwIEp6OzI49isvHgiKD0cPSFtrD1710238459007.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M2820OTKV_M911-large-dior-toujours-bag",linkTitle:null,linkType:"WEB",info:"The dior toujours bag is distinguished by a casual and practical design. Fully embroidered with black textured tweed, it is accented by a blend of threads displaying the cannage motif. It showcases a spacious interior compartment with a matching pouch to organize the essentials, while a leather strap closure keeps items secure and the d of the cd lock closure twists to adjust the sides and enhance the bag's silhouette.",price:4200,currency:"USD-$"},cta:null},{position:"3",isCollected:null,video:{itemId:"VIDEOOL1qU1709616182569",title:"Maria grazia chiuri brings a fresh update to the iconic saddle bag. Crafted in black grained calfskin, the legendary design features a saddle flap with a d stirrup clasp on a magnetic strap, as well as an antique gold-finish metal cd signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the saddle bag may be carried by hand, worn over the shoulder or crossbody.. Saddle bag with strap Black grained calfskin",tags:["Maria Grazia Chiuri","Saddle Bags","Removable Shoulder Strap","Shoulder","Crossbody","Cross-body & Shoulder Bags","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOOL1qU1709616182569:default:3::branch:Handbags:3",bindCta:null,bindProduct:{itemId:"M0455CBAAM900",title:"Saddle Bag with Strap",tags:["Saddle Bags","Handbags","Maria Grazia Chiuri"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0455CBAAM900:default:3::branch:Handbags:3",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:3",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsiwfgnCrVBGcGPh6gaFsvbYBIpxX1709285334896.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsXpilTgUS4u4oFWr0hUew8DQITi11709285353202.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsWxJm6YIeRYmDtDoB5WtYMjRX8bm1709285366208.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsj69PxKh1SAZ6p0902FbBT0vg2at1709285373714.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fs78nKueByU2cNulReOw8gJ1ZsieF1709285412981.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsmAEriTIohZAUMUE6gUCWvXwbbRE1709285429332.png"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0455CBAA_M900-saddle-bag-with-strap-black-grained-calfskin?objectID=M0455CBAA_M900&query=M0455CBAAM900&queryID=c171c63e69d6d109953e2de631718496",linkTitle:null,linkType:"WEB",info:"Maria Grazia Chiuri brings a fresh update to the iconic Saddle bag. Crafted in black grained calfskin, the legendary design features a Saddle flap with a D stirrup clasp on a magnetic strap, as well as an antique gold-finish metal CD signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the Saddle bag may be carried by hand, worn over the shoulder or crossbody.",price:4400,currency:"USD-$"},bindProducts:[],cover:null,url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsvbBN3IRfwctVIhdqgq3doWmhbb21710399187965.jpg"],hashTags:["Maria Grazia Chiuri","Saddle Bags","Handbags"]},product:null,cta:null},{position:"4",isCollected:null,video:null,product:{itemId:"S5909CTZQM928",title:"Saddle Shoulder Pouch Blue Dior Oblique Jacquard ",tags:["Saddle Bags","Handbags","Small-Leather-Goods","Small","Mini Bags"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:S5909CTZQM928:default:3::branch:Handbags:4",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:4",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fs34CpwKJOyjEDgoHypoLYakF8oR31710316280669.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsLOSOEf9pmz7wKnFaifWNw3TZ7Gy1710316287874.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsWHmVcrzHKKj6EfhfnQkxYIOt20a1710316295683.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fslyBNMyQwjpjY4EKzyrqzTMlOGRQ1710316313161.png"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/S5909CTZQ",linkTitle:null,linkType:"WEB",info:null,price:4900,currency:"USD-$"},cta:null},{position:"5",isCollected:null,video:{itemId:"VIDEOrZguC1710324513737",title:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",tags:["Handbags","Dior Book Tote"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOrZguC1710324513737:default:3::branch:Handbags:5",bindCta:null,bindProduct:{itemId:"M1296ZRIWM828",title:"Medium Dior Book Tote",tags:["Maria Grazia Chiuri","Hand","Shoulder","Handbags","Blue","Women"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1296ZRIWM828:default:3::branch:Handbags:5",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:5",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fs69g46K9wPCwi5VRAP2QAgRHM0Pc1709696901624.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsAIliGV0ZJP8MNa8DECYtwsK4ker1709696900761.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsMJ4JfZ0Vhzq6H71NdIPg6YozbIz1709696897845.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsWXI06zGOmACXn9wD3EegRLkB7dg1709696911033.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",price:3350,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fstXNWStczbY8HbIKEqMwfCkv5CI51710324494939.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsOqu34FxaJTdascLcj6DHoYIIAs01710324439851.mp4",imgUrls:null,hashTags:["Handbags","Dior Book Tote"]},product:null,cta:null},{position:"6",isCollected:null,video:null,product:{itemId:"M1296ZRIWM828",title:"Medium Dior Book Tote",tags:["Maria Grazia Chiuri","Hand","Shoulder","Handbags","Blue","Women"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1296ZRIWM828:default:3::branch:Handbags:6",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:6",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fs69g46K9wPCwi5VRAP2QAgRHM0Pc1709696901624.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsAIliGV0ZJP8MNa8DECYtwsK4ker1709696900761.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsMJ4JfZ0Vhzq6H71NdIPg6YozbIz1709696897845.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsWXI06zGOmACXn9wD3EegRLkB7dg1709696911033.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",price:3350,currency:"USD-$"},cta:null},{position:"7",isCollected:null,video:{itemId:"VIDEOEtr621710300614047",title:"Unveiled at the spring-summer 2023 fashion show, the dior toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the d of the cd lock closure twists to adjust the sides and enhance the bag's silhouette. T",tags:["Handbags","Leather Strap","Spring-Summer 2024 Fashion Show","Backstage","Dior Toujours Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOEtr621710300614047:default:3::branch:Handbags:7",bindCta:null,bindProduct:null,bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fshkOldZwfsSqTgvxHJzNBwS66ySc1710300910103.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsryDXTtPWXjYFWoSUEBUi48RHZCh1710398617300.jpg"],hashTags:["Backstage","Handbags","Spring-Summer 2024 Fashion Show","Dior Toujours Bag"]},product:null,cta:null},{position:"8",isCollected:null,video:{itemId:"VIDEOO8Zjt1709616802987",title:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",tags:["Blue","Medium","Shoulder","Hand","Handbags","Dior Book Tote"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOO8Zjt1709616802987:default:3::branch:Handbags:8",bindCta:null,bindProduct:{itemId:"M1296ZRIWM828",title:"Medium Dior Book Tote",tags:["Maria Grazia Chiuri","Hand","Shoulder","Handbags","Blue","Women"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1296ZRIWM828:default:3::branch:Handbags:8",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:8",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fs69g46K9wPCwi5VRAP2QAgRHM0Pc1709696901624.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsAIliGV0ZJP8MNa8DECYtwsK4ker1709696900761.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsMJ4JfZ0Vhzq6H71NdIPg6YozbIz1709696897845.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsWXI06zGOmACXn9wD3EegRLkB7dg1709696911033.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",price:3350,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fsmS72zfInwmblYTnuYzRuZKAOlhr1709616742898.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsU2gDw28XFd1nOAqlUjb1r1h6mpT1710400349981.jpg"],hashTags:["Dior Book Tote","Handbags"]},product:null,cta:null},{position:"9",isCollected:null,video:null,product:{itemId:"M2821SNIOM900",title:"Medium Dior Toujours Bag Black Macrocannage Crinkled Leather",tags:["Medium","Black","Women","Handbags","Bucket Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M2821SNIOM900:default:3::branch:Handbags:9",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:9",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsy6AN0OWw3rj8Luw3RTSP9n2kDLq1710497237677.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fszTc3uEUrtppdN9QVVU2XBnaaaBY1710497237986.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKbBMTRa0tTTX661wu7DzLw9OP0r1710497237980.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsOYHlYCwgzalxzmIJcsZmIsJ2L3g1710497237145.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKJqNVm1ZBlrgZ8XLC0YAaO6ws2F1710497237650.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsm2VoVancBQ20nDHceESUPNLyrUy1710497238312.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs2B5YYmv8OztP3d9rlM2a9KmYswl1710497237339.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"The dior toujours bag is distinguished by a casual and practical design. Crafted in black crinkled calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize the essentials. Its leather strap closure keeps items secure while the d of the cd lock closure twists to adjust the sides and enhance the bag's silhouette.",price:4400,currency:"USD-$"},cta:null},{position:"10",isCollected:null,video:{itemId:"VIDEOesZlV1710323980494",title:"The lady dior bag embodies dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the house's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic cannage topstitching, while the ultra-matte metal d.i.o.r. Charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium lady dior bag can be carried by hand or worn crossbody.",tags:["Lady Dior","Removable Shoulder Strap","Medium","Handbags","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOesZlV1710323980494:default:3::branch:Handbags:10",bindCta:null,bindProduct:{itemId:"M0565SDBRM900",title:"Medium Lady Dior Bag",tags:["Women","Black","Handbags","Hand","Lady Dior","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565SDBRM900:default:3::branch:Handbags:10",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:10",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsnyiCm9oirbXLqmqY7231O8O2Yhb1710498970982.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fskwIRRKCtuw9cb9btuubt2D5bXfB1710498970676.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsqXFTCyhxspeYCD3uo4UiuN5vQ7w1710498970671.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8rDRSKJmWUNI42MjrMWVlI0D9Fz1710498970729.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsca9Cjqo3WMJVU0OL0OjQo8xOoMx1710498972076.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsjl1bxi56X0QrKwfvl8YocBVJ2N81710498971352.jpg"],collection:null,link:"https://www.dior.com/en_us/fashion/products/M0565SDBR_M900-medium-lady-dior-bag-black-patent-to-matte-gradient-cannage-lambskin?objectID=M0565SDBR_M900&query=M0565SDBRM900&queryID=14cc52b35774a9a42e78fd9ba199860e",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the House's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic Cannage topstitching, while the ultra-matte metal D.I.O.R. charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or worn crossbody.",price:7100,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsiwMQ88zO5Xdnl939krMyBMbz7Js1710323763013.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsxyS8nr7nn0LMe7EqOt3ETXqLu7d1710323753073.mp4",imgUrls:null,hashTags:["Lady Dior","Handbags"]},product:null,cta:null},{position:"11",isCollected:null,video:{itemId:"VIDEOdvsXq1710324342942",title:"New for summer 2024, the lady d-sire my abcdior bag draws inspiration from the signature elegance of the lady dior design. Reimagined with a casual style for an urban look, the lightweight black grained bull leather feels soft to the touch yet offers excellent durability. The medium bag is embellished with pale gold-finish metal d.i.o.r. Charms that highlight the silhouette.",tags:["Summer 2024","Lady Dior","Casual","Lightweight","Medium","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOdvsXq1710324342942:default:3::branch:Handbags:11",bindCta:null,bindProduct:{itemId:"M1151OTRLM900",title:"Medium Lady D-Sire My ABCDior Bag",tags:["Handbags","Summer 2024","Lady Dior","Black","Medium","Women","Lady D-Sire"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1151OTRLM900:default:3::branch:Handbags:11",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:11",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsBvqPYhaE9Ct1JzBd4gm8g9YOiAZ1710499102900.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs6sf9nB7WpJuLNIZT3c8O8Fmf3Gu1710499102936.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsSxYBxyVx2yRrUgEaYmarWhlUbk41710499102531.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsyhykK1B7W9613MAfipfIuE1foim1710499102345.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs6FXJdaXib8lP0NPloe1XQGpoiKc1710499103268.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsCRx7T4ejNvgKNensH6LT4dPt6251710499103615.jpg"],collection:null,link:"https://www.dior.com/en_us/fashion/products/M1151OTRL_M900-medium-lady-d-sire-my-abcdior-bag-black-bull-leather?objectID=M1151OTRL_M900&query=M1151OTRLM900&queryID=e82938220687c425c75277a7c526b932",linkTitle:null,linkType:"WEB",info:"New for Summer 2024, the Lady D-Sire My ABCDior bag draws inspiration from the signature elegance of the Lady Dior design. Reimagined with a casual style for an urban look, the lightweight black grained bull leather feels soft to the touch yet offers excellent durability. The medium bag is embellished with pale gold-finish metal D.I.O.R. charms that highlight the silhouette. Showcasing a shoulder strap that can be personalized by adding symbolic badges, the unique bag can be carried by hand or w",price:6100,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsOsdUSXr57U5Twhhkv17th3yHqBJ1710324292456.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsZyr3slVtlsParX6D0DqsM0QEx8d1710324283147.mp4",imgUrls:null,hashTags:["Summer 2024","Lady Dior","Handbags"]},product:null,cta:null},{position:"12",isCollected:null,video:{itemId:"VIDEOy76Fr1710324746846",title:"Maria grazia chiuri brings a fresh update to the iconic saddle bag. Crafted in black grained calfskin, the legendary design features a saddle flap with a d stirrup clasp on a magnetic strap, as well as an antique gold-finish metal cd signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the saddle bag may be carried by hand, worn over the shoulder or crossbody.. Saddle bag with strap Black grained calfskin",tags:["Maria Grazia Chiuri","Saddle Bags","Removable Shoulder Strap","Hand","Shoulder","Crossbody","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOy76Fr1710324746846:default:3::branch:Handbags:12",bindCta:null,bindProduct:{itemId:"M0455CBAAM900",title:"Saddle Bag with Strap",tags:["Saddle Bags","Handbags","Maria Grazia Chiuri"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0455CBAAM900:default:3::branch:Handbags:12",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:12",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsiwfgnCrVBGcGPh6gaFsvbYBIpxX1709285334896.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsXpilTgUS4u4oFWr0hUew8DQITi11709285353202.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsWxJm6YIeRYmDtDoB5WtYMjRX8bm1709285366208.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsj69PxKh1SAZ6p0902FbBT0vg2at1709285373714.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fs78nKueByU2cNulReOw8gJ1ZsieF1709285412981.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsmAEriTIohZAUMUE6gUCWvXwbbRE1709285429332.png"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0455CBAA_M900-saddle-bag-with-strap-black-grained-calfskin?objectID=M0455CBAA_M900&query=M0455CBAAM900&queryID=c171c63e69d6d109953e2de631718496",linkTitle:null,linkType:"WEB",info:"Maria Grazia Chiuri brings a fresh update to the iconic Saddle bag. Crafted in black grained calfskin, the legendary design features a Saddle flap with a D stirrup clasp on a magnetic strap, as well as an antique gold-finish metal CD signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the Saddle bag may be carried by hand, worn over the shoulder or crossbody.",price:4400,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsqwogfFahvNml7vmATxwfKLcNlh91710324602536.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsVRd4z4V8UScNc7Wc96xv4xDVByb1710324589932.mp4",imgUrls:null,hashTags:["Maria Grazia Chiuri","Saddle Bags","Handbags"]},product:null,cta:null},{position:"13",isCollected:null,video:{itemId:"VIDEOvqhF71709609258469",title:"The lady dior bag embodies dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the house's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic cannage topstitching, while the ultra-matte metal d.i.o.r. Charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium lady dior bag can be carried by hand or worn crossbody.",tags:["Thin","Removable Shoulder Strap","Medium","Lady Dior","Crossbody","Handbags","Cross-body & Shoulder Bags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOvqhF71709609258469:default:3::branch:Handbags:13",bindCta:null,bindProduct:{itemId:"M0565SDBRM900",title:"Medium Lady Dior Bag",tags:["Women","Black","Handbags","Hand","Lady Dior","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565SDBRM900:default:3::branch:Handbags:13",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:13",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsnyiCm9oirbXLqmqY7231O8O2Yhb1710498970982.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fskwIRRKCtuw9cb9btuubt2D5bXfB1710498970676.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsqXFTCyhxspeYCD3uo4UiuN5vQ7w1710498970671.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8rDRSKJmWUNI42MjrMWVlI0D9Fz1710498970729.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsca9Cjqo3WMJVU0OL0OjQo8xOoMx1710498972076.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsjl1bxi56X0QrKwfvl8YocBVJ2N81710498971352.jpg"],collection:null,link:"https://www.dior.com/en_us/fashion/products/M0565SDBR_M900-medium-lady-dior-bag-black-patent-to-matte-gradient-cannage-lambskin?objectID=M0565SDBR_M900&query=M0565SDBRM900&queryID=14cc52b35774a9a42e78fd9ba199860e",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the House's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic Cannage topstitching, while the ultra-matte metal D.I.O.R. charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or worn crossbody.",price:7100,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fsHmNyOcNdgB9Y8aIFYWCHlEZVl4x1709608981919.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fslhMX6mwCM4i5XFY6dpcMZdPocYv1710398865153.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsJQCe9rZmsEjuIUpdck9Hs2gpNU81710398856427.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsnHUJufSHptF88bNsyUGmSSKYH4A1710398855734.jpg"],hashTags:["Lady Dior","Handbags"]},product:null,cta:null},{position:"14",isCollected:null,video:null,product:{itemId:"M0455CBAAM900",title:"Saddle Bag with Strap",tags:["Saddle Bags","Handbags","Maria Grazia Chiuri"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0455CBAAM900:default:3::branch:Handbags:14",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:14",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsiwfgnCrVBGcGPh6gaFsvbYBIpxX1709285334896.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsXpilTgUS4u4oFWr0hUew8DQITi11709285353202.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsWxJm6YIeRYmDtDoB5WtYMjRX8bm1709285366208.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsj69PxKh1SAZ6p0902FbBT0vg2at1709285373714.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fs78nKueByU2cNulReOw8gJ1ZsieF1709285412981.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsmAEriTIohZAUMUE6gUCWvXwbbRE1709285429332.png"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0455CBAA_M900-saddle-bag-with-strap-black-grained-calfskin?objectID=M0455CBAA_M900&query=M0455CBAAM900&queryID=c171c63e69d6d109953e2de631718496",linkTitle:null,linkType:"WEB",info:"Maria Grazia Chiuri brings a fresh update to the iconic Saddle bag. Crafted in black grained calfskin, the legendary design features a Saddle flap with a D stirrup clasp on a magnetic strap, as well as an antique gold-finish metal CD signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the Saddle bag may be carried by hand, worn over the shoulder or crossbody.",price:4400,currency:"USD-$"},cta:null},{position:"15",isCollected:null,video:{itemId:"VIDEO693hq1709628690318",title:"New for the summer 2024 season, the dior caro top handle camera bag is a sophisticated and practical design. Crafted in black calfskin, the small model is elevated by the originality of the macrocannage stitching's quilted effect. The bag features a zip closure and an antique gold-tone metal cd signature.",tags:["Ready-To-Wear","Handbags","Signature Hardware Design","Monogram/Logo Print","Calfskin Leather","Summer 2024","Black"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEO693hq1709628690318:default:3::branch:Handbags:15",bindCta:null,bindProduct:{itemId:"M3352UBHMM900",title:"Small Dior Caro Top Handle Camera Bag Black Macrocannage Calfskin ",tags:["Summer 2024","Black","Women","Handbags","Dior Caro"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M3352UBHMM900:default:3::branch:Handbags:15",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:15",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsx3wufMP9P6ovvCrXL58eVVA61gI1710499528917.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs82a414vXXhbgMXsw3Zm8TWyDMvI1710499528543.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsJaZoFhur3jfMEciQdk5GMV8O2un1710499528346.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fstO8CRKfBzpJUmAMyCDHDo23ji9N1710499528346.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsagaUiox7KECRhbPn6MScg3s4Nwd1710499528602.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsBsyFADiYBLWHaAIQfNRsgweVOWj1710499529947.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsqJEwfvOLpXQ6nQt76o92XdLwzs11710499529939.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M3352UBHM_M900",linkTitle:null,linkType:"WEB",info:"New for the Summer 2024 season, the Dior Caro Top Handle Camera bag is a sophisticated and practical design. Crafted in black calfskin, the small model is elevated by the originality of the Macrocannage stitching's quilted effect. The bag features a zip closure and an antique gold-tone metal CD signature. ",price:3350,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fsZhMDVzP6kuh9Qt86c11whAMglMU1709628656988.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsWrEKA6oRWUmOY14D1POTJjgiks51710401973577.jpg"],hashTags:["Ready-To-Wear"]},product:null,cta:null},{position:"16",isCollected:null,video:{itemId:"VIDEO2rUuG1709617832960",title:"The dior toujours bag is distinguished by a casual and practical design. Crafted in black crinkled calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize the essentials. Its leather strap closure keeps items secure while the d of the cd lock closure twists to adjust the sides and enhance the bag's silhouette.",tags:["Dior Toujours Bag","Casual","Leather Strap","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEO2rUuG1709617832960:default:3::branch:Handbags:16",bindCta:null,bindProduct:{itemId:"M2821SNIOM900",title:"Medium Dior Toujours Bag Black Macrocannage Crinkled Leather",tags:["Medium","Black","Women","Handbags","Bucket Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M2821SNIOM900:default:3::branch:Handbags:16",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:16",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsy6AN0OWw3rj8Luw3RTSP9n2kDLq1710497237677.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fszTc3uEUrtppdN9QVVU2XBnaaaBY1710497237986.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKbBMTRa0tTTX661wu7DzLw9OP0r1710497237980.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsOYHlYCwgzalxzmIJcsZmIsJ2L3g1710497237145.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKJqNVm1ZBlrgZ8XLC0YAaO6ws2F1710497237650.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsm2VoVancBQ20nDHceESUPNLyrUy1710497238312.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs2B5YYmv8OztP3d9rlM2a9KmYswl1710497237339.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"The dior toujours bag is distinguished by a casual and practical design. Crafted in black crinkled calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize the essentials. Its leather strap closure keeps items secure while the d of the cd lock closure twists to adjust the sides and enhance the bag's silhouette.",price:4400,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fs0BUtn8TYp4l8gWsg5WD9Ht8AP7R1709617796077.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsmecPfhI3OtZwJmKAXLv8scBSSdK1710399333565.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsfsWBLxbC36B7Pm7Ae1uL98EmoaH1710399333017.jpg"],hashTags:["Handbags","Dior Toujours Bag"]},product:null,cta:null},{position:"17",isCollected:null,video:{itemId:"VIDEOGZGZI1709629679782",title:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless white and navy blue calfskin style offers a new take on the iconic House motif with this season's signature Toile de Jouy Soleil, layering suns and crescent moons into a floral design representing the four seasons. A",tags:["Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOGZGZI1709629679782:default:3::branch:Handbags:17",bindCta:null,bindProduct:{itemId:"M0565OZEDM928",title:"Medium Lady Dior Bag",tags:["Lady Dior","Medium","Handbags","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565OZEDM928:default:3::branch:Handbags:17",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:17",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsbVwOx4grEmqCNmvOnKpIS0vTPPc1710499656033.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsJrpY9R8uGenvzM7NnzI4lPMCF8g1710836215790.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsYQG9gipUNt6UbzFPXTwLTNgj5BF1710836214937.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsqPEXjWl7l3wPAxJIZbnnhZPXDCw1710836216838.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsNHlPmAsNYPsGDJ5w0G213wJkwFf1710499654946.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8dAObnEoAYe1V6pwJOGTs4vCBJO1710499655963.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsJpaBPC8OxQ4aYwxsMcqZpGtPWnq1710499655730.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0565OZED_M928",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless white and navy blue calfskin style offers a new take on the iconic House motif with this season's signature Toile de Jouy Soleil, layering suns and crescent moons into a floral design representing the four seasons. Accented by pale gold-finish metal D.I.O.R. charms illuminating the silhouette and featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or wo",price:6500,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fsG1IT2gcB5iabcTL89Xs9bRHISMb1709629659698.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsJB1txgzSsQLBBJSTzqGI40BvLkr1710399454552.jpg"],hashTags:["Handbags"]},product:null,cta:null},{position:"18",isCollected:null,video:{itemId:"VIDEOC2IMa1710324169054",title:"The lady dior bag embodies dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the house's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic cannage topstitching, while the ultra-matte metal d.i.o.r. Charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium lady dior bag can be carried by hand or worn crossbody.",tags:["Lady Dior","Removable Shoulder Strap","Medium","Handbags","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOC2IMa1710324169054:default:3::branch:Handbags:18",bindCta:null,bindProduct:{itemId:"M0565SDBRM900",title:"Medium Lady Dior Bag",tags:["Women","Black","Handbags","Hand","Lady Dior","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565SDBRM900:default:3::branch:Handbags:18",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:18",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsnyiCm9oirbXLqmqY7231O8O2Yhb1710498970982.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fskwIRRKCtuw9cb9btuubt2D5bXfB1710498970676.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsqXFTCyhxspeYCD3uo4UiuN5vQ7w1710498970671.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8rDRSKJmWUNI42MjrMWVlI0D9Fz1710498970729.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsca9Cjqo3WMJVU0OL0OjQo8xOoMx1710498972076.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsjl1bxi56X0QrKwfvl8YocBVJ2N81710498971352.jpg"],collection:null,link:"https://www.dior.com/en_us/fashion/products/M0565SDBR_M900-medium-lady-dior-bag-black-patent-to-matte-gradient-cannage-lambskin?objectID=M0565SDBR_M900&query=M0565SDBRM900&queryID=14cc52b35774a9a42e78fd9ba199860e",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the House's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic Cannage topstitching, while the ultra-matte metal D.I.O.R. charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or worn crossbody.",price:7100,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsuF6sqlC9LCBLTgxHwMRinXwB6bF1710324135846.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsFwNsGElWR2SXQ2tWwHkaiqMZN5H1710324095954.mp4",imgUrls:null,hashTags:["Lady Dior","Handbags"]},product:null,cta:null},{position:"19",isCollected:null,video:null,product:{itemId:"M0565OZEDM928",title:"Medium Lady Dior Bag",tags:["Lady Dior","Medium","Handbags","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565OZEDM928:default:3::branch:Handbags:19",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:19",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsbVwOx4grEmqCNmvOnKpIS0vTPPc1710499656033.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsJrpY9R8uGenvzM7NnzI4lPMCF8g1710836215790.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsYQG9gipUNt6UbzFPXTwLTNgj5BF1710836214937.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsqPEXjWl7l3wPAxJIZbnnhZPXDCw1710836216838.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsNHlPmAsNYPsGDJ5w0G213wJkwFf1710499654946.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8dAObnEoAYe1V6pwJOGTs4vCBJO1710499655963.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsJpaBPC8OxQ4aYwxsMcqZpGtPWnq1710499655730.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0565OZED_M928",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless white and navy blue calfskin style offers a new take on the iconic House motif with this season's signature Toile de Jouy Soleil, layering suns and crescent moons into a floral design representing the four seasons. Accented by pale gold-finish metal D.I.O.R. charms illuminating the silhouette and featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or wo",price:6500,currency:"USD-$"},cta:null}],Ls="Handbags",en={productUserId:ks,requestId:Ds,channel:As,rtc:Ps,tag:Os,recList:Ms,hashTag:Ls};const js=t=>{const{rec:e,style:i={},sizeChange:n=()=>{},unitWidth:o,index:s,showBorder:r,list:a,reportTagsView:d,textStyles:u,space:c}=t,{swiperRef:v,setRtcList:g,setOpenHashtag:y,sxpParameter:h}=ue(),[b,C]=l.useState(!1),[p,w]=l.useState(!1),[f,x]=l.useState({height:1,width:1}),k=l.useRef(null),m=l.useRef(null),L=l.useRef(null),_=l.useRef(null),[T,E]=l.useState(""),A=l.useMemo(()=>{var B,j,z,O,D,$,V,F,ee,Q;return!((B=e?.video)===null||B===void 0)&&B.cover?(j=e?.video)===null||j===void 0?void 0:j.cover:!((O=(z=e?.video)===null||z===void 0?void 0:z.imgUrls)===null||O===void 0)&&O.length?($=(D=e?.video)===null||D===void 0?void 0:D.imgUrls)===null||$===void 0?void 0:$[0]:!((F=(V=e?.product)===null||V===void 0?void 0:V.homePage)===null||F===void 0)&&F.length?(Q=(ee=e?.product)===null||ee===void 0?void 0:ee.homePage)===null||Q===void 0?void 0:Q[0]:h?.bottom_image||""},[e,h?.bottom_image]),S=l.useMemo(()=>{var B,j;return((B=e?.product)===null||B===void 0?void 0:B.title)||((j=e?.video)===null||j===void 0?void 0:j.title)||null},[e]),I=l.useMemo(()=>{var B;return i.transform?Number((B=i.transform)===null||B===void 0?void 0:B.substring(i.transform.indexOf(",",0)+1,i.transform.length-3)):void 0},[i]),P=l.useMemo(()=>I===void 0?!1:I<=r,[I,r]),N=l.useMemo(()=>{var B,j,z,O,D,$,V,F,ee;return!((B=e?.product)===null||B===void 0)&&B.currency&&(!((j=e?.product)===null||j===void 0)&&j.price)?`${($=(D=(O=(z=e?.product)===null||z===void 0?void 0:z.currency)===null||O===void 0?void 0:O.split("-")[1])===null||D===void 0?void 0:D.toUpperCase())!==null&&$!==void 0?$:""}${(ee=(F=(V=e?.product)===null||V===void 0?void 0:V.price)===null||F===void 0?void 0:F.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&ee!==void 0?ee:""}`:null},[e]);l.useEffect(()=>{if(k.current===null||A==="")return;const B=new Image;b&&T?B.src=T:B.src=A,B.onload=()=>{x({height:B.height,width:B.width}),w(!0)},k.current.setSrc(B.src)},[A,b,T,P]),l.useEffect(()=>{const B=f.height*(o/f.width);p&&n(B+76+c,s)},[f,s,o,p,c]);const U=(B,j,z)=>{const O=B/j;return z/O};l.useEffect(()=>{const B=L?.current;B===null||A===""||!b||(B.src=A,B.currentTime=1,B.crossOrigin="anonymous",B.onloadeddata=()=>{const j=_?.current;if(!j)return;const z=j.getContext("2d"),O=window?.innerWidth/2,D=U(B.videoWidth,B.videoHeight,O);j.height=D,j.width=O,z?.drawImage(B,0,0,j.width,j.height),E(j.toDataURL()),B.remove(),j.remove()})},[A,b]);const G=()=>{d(),g?.(a),setTimeout(()=>{var B;(B=v?.current)===null||B===void 0||B.swiper.slideTo(s,0,!1),y?.(!1)},0)};return l.createElement("div",{ref:m,style:Object.assign({},i),className:"waterFallList-content-listItem",key:s,onClick:G},l.createElement("div",{className:"waterFallList-content-listItem-picture"},b&&l.createElement("div",{style:{display:"none"}},l.createElement("video",{ref:L,src:A,crossOrigin:"anonymous",className:"waterFallList-content-listItem-picture-img"}),l.createElement("canvas",{ref:_})),l.createElement(Me,{loading:"lazy",className:"waterFallList-content-listItem-picture-img",ref:k})),l.createElement("div",{className:"waterFallList-content-listItem-info"},l.createElement("div",{className:`waterFallList-content-listItem-info-title ${N?"waterFallList-content-listItem-info-nowrap":""}`,style:Object.assign({},u?.title)},S&&S),l.createElement("div",{className:"waterFallList-content-listItem-info-price",hidden:!N,style:u.price},N)))};function Ns(t){var e,i,n,o,s,r,a,d,u,c,v,g,y,h,b,C,p,{reportTagsView:w}=t,f=xe(t,["reportTagsView"]);const{waterFallData:x,getRecommendVideos:k,hashTagSize:m,loadingImage:L,isOpenHashTag:_}=ue(),T=l.useRef(null),[E,A]=l.useState(0),[S,I]=l.useState(),P=l.useRef(null),[N,U]=l.useState([]),G=l.useRef(),B=[170,230,300],[j,z]=l.useState(!1),[O,D]=l.useState([]),$=l.useRef(),V=l.useCallback((R,H)=>Math.floor(Math.random()*(H-R+1))+R,[]),F=l.useRef([]),[ee,Q]=l.useState({width:0}),ie=l.useMemo(()=>{const R=ee.width||0;return R>=1200?6:R>=768&&R<=1199?4:2},[ee]),se=l.useMemo(()=>ee.width/ie-2,[ie,ee]),W=l.useCallback(()=>{var R;const H=(R=G.current)!==null&&R!==void 0?R:[],Y=[];for(let X=0;X<O?.length;X++){const ve=Math.floor(X/ie),me=X%ie+1;let pe=0,ye=9999999999;if(ve===0)Y[X]=X;else{for(let we=0;we<Y.length;we++)F.current[Y[we]].top+F.current[Y[we]].height<ye&&(pe=we,ye=F.current[Y[we]].top+F.current[Y[we]].height);Y[pe]=X}F.current[X]===void 0&&(F.current[X]={}),ve===0?(me===1?F.current[X].left=0:F.current[X].left=F.current[X-1].left+se+4,F.current[X].top=0):(F.current[X].left=F.current[pe].left,F.current[X].top=ye),F.current[X].height=F.current[X].height||B[V(0,2)],H[X]={transform:`translate(${F.current[X].left}px,${F.current[X].top}px)`,width:`${se}px`,height:F.current[X].height}}return U([...H]),[...H]},[se,ie,B,V,O]),re=l.useCallback((R,H)=>{F.current[H]===void 0&&(F.current[H]={}),F.current[H].height=R,G.current=W()},[W]);l.useEffect(()=>{G.current=W()},[se,ie,O]),l.useEffect(()=>{var R,H;if(z(!0),x&&k?.({hashTag:x?.hashTag,"itemFilter.itemId":x?.itemId,"itemFilter.itemType":x?.itemType,defaultSize:m,maxSize:m}).then(Y=>{var X,ve;I(Y),D((ve=(X=Y?.recList)===null||X===void 0?void 0:X.filter(me=>me?.video!==null||me?.product!==null))!==null&&ve!==void 0?ve:[]),z(!1)}),_){const Y=en;I(Y),D((H=(R=Y?.recList)===null||R===void 0?void 0:R.filter(X=>X?.video!==null||X?.product!==null))!==null&&H!==void 0?H:[]),z(!1)}},[x,k,m,_]);const J=l.useCallback(()=>{P.current!==null&&Q({width:P.current.getBoundingClientRect().width})},[]);l.useEffect(()=>{if(P.current===null)return;const R=new ResizeObserver(H=>{J()});return R.observe(P.current),()=>{R.disconnect()}},[J]),l.useCallback(()=>{z(!0),x&&k?.({hashTag:x?.hashTag,"itemFilter.itemId":x?.itemId,"itemFilter.itemType":x?.itemType}).then(R=>{var H,Y;D(O?.concat((Y=(H=R?.recList)===null||H===void 0?void 0:H.filter(X=>!X?.video))!==null&&Y!==void 0?Y:[])),z(!1)})},[x,k,O]);const Z=l.useCallback(()=>{A(T.current.scrollTop)},[]);l.useEffect(()=>{var R;return(R=T?.current)===null||R===void 0||R.addEventListener("scroll",Z),()=>{var H;(H=T?.current)===null||H===void 0||H.removeEventListener("scroll",Z)}},[Z,T]);const he=()=>{var R,H;!((R=S?.tag)===null||R===void 0)&&R.link&&(w(),window.location.href=(H=S?.tag)===null||H===void 0?void 0:H.link)};return l.createElement(l.Fragment,null,j?l.createElement("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},l.createElement("img",{width:64,height:64,src:L,alt:"loading...",style:{objectFit:"contain"}})):l.createElement("div",{className:"waterFallList",ref:P},l.createElement("div",{className:"waterFallList-scroll",ref:T},l.createElement("div",{className:"waterFallList-info",style:(e=f?.textStyles)===null||e===void 0?void 0:e.hashTagDesc},(i=S?.tag)===null||i===void 0?void 0:i.info),l.createElement("div",{hidden:!(!((n=S?.tag)===null||n===void 0)&&n.link),className:"waterFallList-collection",style:Object.assign({},(o=f?.textStyles)===null||o===void 0?void 0:o.hashTagLink),onClick:he},((s=S?.tag)===null||s===void 0?void 0:s.linkTitle)||"Shop the collection"),l.createElement("div",{className:"waterFallList-content"},O?.map((R,H)=>{var Y;return l.createElement(js,Object.assign({key:H,index:H,rec:R,list:O,showBorder:E+((Y=T?.current)===null||Y===void 0?void 0:Y.clientHeight),style:N[H],sizeChange:re,unitWidth:se,reportTagsView:w},f))}),l.createElement("div",{hidden:!(!((r=S?.tag)===null||r===void 0)&&r.link),style:{position:"absolute",width:"100%",transform:`translate(0px,${(v=((d=F?.current[((a=F?.current)===null||a===void 0?void 0:a.length)-1])===null||d===void 0?void 0:d.top)+((c=F?.current[((u=F?.current)===null||u===void 0?void 0:u.length)-1])===null||c===void 0?void 0:c.height))!==null&&v!==void 0?v:0}px)`,height:!((g=S?.tag)===null||g===void 0)&&g.link?((y=$?.current)===null||y===void 0?void 0:y.offsetHeight)||((h=f?.buttonBgStyle)===null||h===void 0?void 0:h.height)||"100px":0}}))),l.createElement("div",{className:"waterFallList-bottom",hidden:!(!((b=S?.tag)===null||b===void 0)&&b.link),style:f?.buttonBgStyle}),l.createElement("div",{ref:$,hidden:!(!((C=S?.tag)===null||C===void 0)&&C.link),className:"waterFallList-btn-wrap",style:Object.assign(Object.assign({},f?.buttonBgStyle),{height:"auto",backgroundColor:"transparent"})},l.createElement("button",{className:"waterFallList-btn",style:f?.buttonStyle,onClick:he},((p=S?.tag)===null||p===void 0?void 0:p.linkTitle)||"Shop the collection"))))}var Bs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAaZJREFUeF7t2jFKBEEQRuG3mSJeQTARURDMTL2EqXfwAnoKD6FHMDEzNVIw2tzQC2gFggyDrExX1V92T7wz9PumFnqbXdH5teq8nwEwJqBzgfEVKDYAW8Ae8NZq3ZUm4Aa4AnaBR+C8BUIVAIu/ngSfAs9LESoAWLgB/LzWwP7SeLtfHWAu3tZ9Adz/dwD3eOUJCIlXBQiLVwQIjVcDCI9XAkiJVwFIi1cASI3PBpjb3jbd5GyyUcraCUrEZ02ATHwGgFR8NIBcfCSAZHwUgGx8BIB0vDeAfLwnQIl4L4Ay8R4ApeJbA2wD78DOZA/e7ABzk739Xz/T8rfAIfA6WYCd3BqA7NUSwCKfgLNKCK0BjoC7rzP74yoIrQGsuxSCB0ApBC+AMgieACUQvAHkESIApBGiAGQRIgEkEaIB5BAyAKQQsgBkEDIBJBCyAdIRFABSEVQA0hCUAFIQ1ADCERQBQhFUAcIQlAFCENQBfkOwg9eXpeftFQDmEOzv8ifARy8A3wiXwAHwANwujbf7q0xAi9bZZwwAN9oiDx4TUORFuS2z+wn4BAiAaEHnKChjAAAAAElFTkSuQmCC";const Rs=t=>{const{rec:e,index:i,list:n,reportTagsView:o,textStyles:s,space:r}=t,{swiperRef:a,setRtcList:d,setOpenHashtag:u,bffEventReport:c,sxpParameter:v}=ue(),[g,y]=l.useState(!1),h=l.useRef(null),b=l.useRef(null),C=l.useRef(null),p=l.useRef(null),[w,f]=l.useState(""),x=l.useMemo(()=>{var T,E,A,S,I,P,N,U,G,B;return!((T=e?.video)===null||T===void 0)&&T.cover?(E=e?.video)===null||E===void 0?void 0:E.cover:!((S=(A=e?.video)===null||A===void 0?void 0:A.imgUrls)===null||S===void 0)&&S.length?(P=(I=e?.video)===null||I===void 0?void 0:I.imgUrls)===null||P===void 0?void 0:P[0]:!((U=(N=e?.product)===null||N===void 0?void 0:N.homePage)===null||U===void 0)&&U.length?(B=(G=e?.product)===null||G===void 0?void 0:G.homePage)===null||B===void 0?void 0:B[0]:v?.bottom_image||""},[e,v?.bottom_image]),k=l.useMemo(()=>{var T,E;return((T=e?.product)===null||T===void 0?void 0:T.title)||((E=e?.video)===null||E===void 0?void 0:E.title)||null},[e]),m=l.useMemo(()=>{var T,E,A,S,I,P,N,U,G;return!((T=e?.product)===null||T===void 0)&&T.currency&&(!((E=e?.product)===null||E===void 0)&&E.price)?`${(P=(I=(S=(A=e?.product)===null||A===void 0?void 0:A.currency)===null||S===void 0?void 0:S.split("-")[1])===null||I===void 0?void 0:I.toUpperCase())!==null&&P!==void 0?P:""}${(G=(U=(N=e?.product)===null||N===void 0?void 0:N.price)===null||U===void 0?void 0:U.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&G!==void 0?G:""}`:null},[e]);l.useEffect(()=>{const T=new IntersectionObserver(E=>{E.forEach(A=>{if(A.isIntersecting){if(b.current===null||x==="")return;g&&w?h.current.setSrc(w):h.current.setSrc(x),T.unobserve(b.current)}})});return T.observe(b.current),()=>{T.disconnect()}},[x,g,w]);const L=(T,E,A)=>{const S=T/E;return A/S};l.useEffect(()=>{const T=C?.current;T===null||x===""||!g||(T.src=x,T.currentTime=1,T.crossOrigin="anonymous",T.onloadeddata=()=>{const E=p?.current;if(!E)return;const A=E.getContext("2d"),S=window?.innerWidth/2,I=L(T.videoWidth,T.videoHeight,S);E.height=I,E.width=S,A?.drawImage(T,0,0,E.width,E.height),f(E.toDataURL()),T.remove(),E.remove()})},[x,g]);const _=()=>{o(),d?.(n),setTimeout(()=>{var T;(T=a?.current)===null||T===void 0||T.swiper.slideTo(i,0,!1),u?.(!1)},0)};return l.createElement("div",{ref:b,className:"list-content-listItem",key:i,onClick:_,style:{marginBottom:r}},l.createElement("div",{className:"list-content-listItem-picture"},g&&l.createElement("div",{style:{display:"none"}},l.createElement("video",{ref:C,crossOrigin:"anonymous",className:"list-content-listItem-picture-img"}),l.createElement("canvas",{ref:p})),l.createElement(Me,{loading:"lazy",className:"list-content-listItem-picture-img",ref:h})),l.createElement("div",{className:"list-content-listItem-info"},l.createElement("div",{className:`list-content-listItem-info-title ${m?"list-content-listItem-info-nowrap":""}`,style:s?.title},k&&k),l.createElement("div",{className:"list-content-listItem-info-price",style:s?.price,hidden:!m},m)))};function zs(t){var e,i,n,o,s,r,a,d,u,c,v,g,{reportTagsView:y}=t,h=xe(t,["reportTagsView"]);const{waterFallData:b,getRecommendVideos:C,hashTagSize:p,loadingImage:w,isOpenHashTag:f}=ue(),[x,k]=l.useState(),[m,L]=l.useState(),[_,T]=l.useState(!1),E=l.useRef(null),[A,S]=l.useState(!1);l.useCallback(()=>{A||(S(!0),b&&C?.({hashTag:b?.hashTag,"itemFilter.itemId":b?.itemId,"itemFilter.itemType":b?.itemType}).then(P=>{var N;k(x?.concat((N=P?.recList)!==null&&N!==void 0?N:[])),S(!1)}))},[b,C,x,A]),l.useEffect(()=>{var P,N;if(T(!0),b&&C?.({hashTag:b?.hashTag,"itemFilter.itemId":b?.itemId,"itemFilter.itemType":b?.itemType,defaultSize:p,maxSize:p}).then(U=>{var G,B;L(U),k((B=(G=U?.recList)===null||G===void 0?void 0:G.filter(j=>j?.video!==null||j?.product!==null))!==null&&B!==void 0?B:[]),T(!1)}),f){const U=en;L(U),k((N=(P=U?.recList)===null||P===void 0?void 0:P.filter(G=>G?.video!==null||G?.product!==null))!==null&&N!==void 0?N:[]),T(!1)}},[b,C,p,f]);const I=()=>{var P,N;!((P=m?.tag)===null||P===void 0)&&P.link&&(y(),window.location.href=(N=m?.tag)===null||N===void 0?void 0:N.link)};return l.createElement(l.Fragment,null,_?l.createElement("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},l.createElement("img",{width:64,height:64,src:w,alt:"loading...",style:{objectFit:"contain"}})):l.createElement("div",{className:"list"},l.createElement("div",{className:"list-scroll",ref:E},l.createElement("div",{className:"list-info",style:(e=h?.textStyles)===null||e===void 0?void 0:e.hashTagDesc},(i=m?.tag)===null||i===void 0?void 0:i.info),l.createElement("div",{hidden:!(!((n=m?.tag)===null||n===void 0)&&n.link),className:"list-collection",onClick:I,style:Object.assign(Object.assign({},(o=h?.textStyles)===null||o===void 0?void 0:o.hashTagLink),{marginBottom:h?.space})},((s=m?.tag)===null||s===void 0?void 0:s.linkTitle)||"Shop the collection"),l.createElement("div",{className:"list-content"},x?.map((P,N)=>l.createElement(Rs,Object.assign({key:N,index:N,rec:P,list:x,reportTagsView:y},h)))),l.createElement("div",{hidden:!A,style:{textAlign:"center"}},"loading..."),l.createElement("div",{hidden:!(!((r=m?.tag)===null||r===void 0)&&r.link),style:{height:!((a=m?.tag)===null||a===void 0)&&a.link?((d=h?.buttonBgStyle)===null||d===void 0?void 0:d.height)||((u=h?.buttonStyle)===null||u===void 0?void 0:u.height)||"100px":0}})),l.createElement("div",{className:"list-bottom",hidden:!(!((c=m?.tag)===null||c===void 0)&&c.link),style:h?.buttonBgStyle}),l.createElement("div",{hidden:!(!((v=m?.tag)===null||v===void 0)&&v.link),className:"list-btn-wrap",style:Object.assign(Object.assign({},h?.buttonBgStyle),{height:"auto",backgroundColor:"transparent"})},l.createElement("button",{className:"list-btn",style:h?.buttonStyle,onClick:I},((g=m?.tag)===null||g===void 0?void 0:g.linkTitle)||"Shop the collection"))))}const Vs=t=>{var e;const{waterFallData:i,setOpenHashtag:n,openHashtag:o,swiperRef:s,setWaterFallData:r,cacheRtcList:a,setRtcList:d,cacheActiveIndex:u,rtcList:c,setCacheRtcList:v,setIsFromHashtag:g,isFromHashtag:y,bffEventReport:h}=ue();l.useRef(null);const b=l.useRef(null),[C,p]=l.useState();l.useEffect(()=>{const m=document.getElementById("sxp-render"),L=document.getElementById("water-fall");L?b.current=L:(b.current=document.createElement("div"),b.current.setAttribute("id","water-fall"),m?.appendChild(b.current))},[]);const w=()=>{const m=be.isEqual(c,a);!m&&a&&a?.length&&d?.(a),k(),r?.(void 0),g?.(!1),setTimeout(()=>{var L,_;m||(_=(L=s?.current)===null||L===void 0?void 0:L.swiper)===null||_===void 0||_.slideTo(u,0,!1),n?.(!1)},0)},[f,x]=l.useState();l.useEffect(()=>{i&&x(i)},[i]);const k=l.useCallback(()=>{var m,L,_,T,E,A;const S=f?.rec;if(!S)return;let I="";y?I="hashTagPage":!((m=S?.video)===null||m===void 0)&&m.url?I="videoPage":!((_=(L=S?.video)===null||L===void 0?void 0:L.imgUrls)===null||_===void 0)&&_.length&&(I="imagePage"),h?.({eventInfo:{contentId:(T=S?.video)===null||T===void 0?void 0:T.itemId,position:u+"",contentTags:JSON.stringify((E=S?.video)===null||E===void 0?void 0:E.tags),traceInfo:(A=S?.video)===null||A===void 0?void 0:A.traceInfo,hashTags:JSON.stringify([f?.hashTag]),fromKName:I,fromKPage:location?.href,timeOnSite:Math.floor((new Date-C)/1e3)+"",eventSubject:"clickTagsViewContents",eventDescription:"User click tags view contents"}})},[f,h,C,y,u]);return l.useEffect(()=>{o&&p(new Date)},[o]),l.useEffect(()=>{const m=()=>{p(new Date)};return window.addEventListener("pageshow",m),()=>{window.removeEventListener("pageshow",m)}},[]),b.current?hi.createPortal(l.createElement("div",{className:"waterfall",style:{display:o?"block":"none"}},l.createElement(Zi,{icon:Bs,styles:{top:"32px"},textStyle:(e=t?.textStyles)===null||e===void 0?void 0:e.hashTagTitle,onClose:w}),t?.isWaterfallFlow?l.createElement(Ns,Object.assign({reportTagsView:k},t)):l.createElement(zs,Object.assign({reportTagsView:k},t))),b.current):null};var tn=l.memo(Vs);const Fs=t=>l.createElement(tn,Object.assign({},t));var Hs=l.memo(Fs);const Us=Pe(Hs,{displayName:"",icon:"",category:"base",type:"HashTag",related:{settingRender:Is,bindableProps:[]},defaulSetting:{props:{lineClamp:1,space:40,textStyles:{hashTagTitle:{fontSize:16,color:"#000"},hashTagDesc:{fontSize:12,textAlign:"center",color:"#000"},hashTagLink:{textAlign:"center",color:"#757575",fontSize:12,textDecoration:"underline"},title:{fontSize:12,color:"#000"},price:{fontSize:12,fontWeight:"bold",color:"#000"}},buttonStyle:{backgroundColor:"#000",fontSize:12,height:52,fontWeight:"bold",textAlign:"center",color:"#fff",borderRadius:25},buttonBgStyle:{backgroundColor:"#fff",height:52,paddingTop:20,paddingLeft:20,paddingRight:20,paddingBottom:20}}},w:100,h:40,sort:2});var ci=Object.freeze({__proto__:null,Appoint:ql,AppointForm:Hn,Commodity:Gl,CommodityDetail:kl,CommodityDetailDiroNew:Rl,CommodityDiro:ns,CommodityDiroNew:rs,HashTag:Us,Link:Ql,MultiCommodity:ws,MultiCommodityDiro:ms,MultiCommodityDiroNew:Cs,Prompt:Ll});const Gs="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",$s="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",Ws=t=>{var{active:e,activeIcon:i,unActicveIcon:n,recData:o,position:s}=t,r=xe(t,["active","activeIcon","unActicveIcon","recData","position"]);const{mutateLike:a,mutateUnlike:d,bffEventReport:u}=ue(),[c,v]=l.useState(e),g=Le($s),y=Le(Gs),h=be.debounce(()=>_e(void 0,void 0,void 0,function*(){var b,C,p,w,f,x,k,m,L,_,T,E,A,S,I,P,N,U,G,B;if(c){v(!1);const j=(p=yield d?.({videoItemId:(C=(b=o?.video)===null||b===void 0?void 0:b.itemId)!==null&&C!==void 0?C:""}))!==null&&p!==void 0?p:!1;u?.({eventInfo:{eventSubject:"favoriteContentCanceled",eventDescription:"This content was unfavorite by the user",contentId:(f=(w=o?.video)===null||w===void 0?void 0:w.itemId)!==null&&f!==void 0?f:"",contentName:(k=(x=o?.video)===null||x===void 0?void 0:x.title)!==null&&k!==void 0?k:"",contentTags:JSON.stringify((L=(m=o?.video)===null||m===void 0?void 0:m.tags)!==null&&L!==void 0?L:[]),position:s+"",contentFormat:!((_=o?.video)===null||_===void 0)&&_.url?"video":"image",traceInfo:(T=o?.video)===null||T===void 0?void 0:T.traceInfo}}),j||v(!0)}else{v(!0);const j=(E=yield a?.({content:JSON.stringify(o)}))!==null&&E!==void 0?E:!1;u?.({eventInfo:{eventSubject:"favoriteContent",eventDescription:"This content was favorite by the user",contentId:(S=(A=o?.video)===null||A===void 0?void 0:A.itemId)!==null&&S!==void 0?S:"",contentName:(P=(I=o?.video)===null||I===void 0?void 0:I.title)!==null&&P!==void 0?P:"",contentTags:JSON.stringify((U=(N=o?.video)===null||N===void 0?void 0:N.tags)!==null&&U!==void 0?U:[]),position:s+"",contentFormat:!((G=o?.video)===null||G===void 0)&&G.url?"video":"image",traceInfo:(B=o?.video)===null||B===void 0?void 0:B.traceInfo}}),j||v(!1)}}),200);return l.createElement("button",Object.assign({},r,{onClick:h}),l.createElement("img",{style:{width:"100%",height:"100%",objectFit:"contain"},src:c?i||g:n||y,alt:"icon"}))};var nn=l.memo(Ws);const Ys=({rec:t,index:e,height:i,data:n,muted:o,activeIndex:s,videoPostConfig:r,videoRef:a})=>{const[d,u]=l.useState(!1),{bffEventReport:c,sxpParameter:v,waterFallData:g,openHashtag:y,bffFbReport:h}=ue(),b=l.useRef(0),[C,p]=l.useState(!1),[w,f]=l.useState(!0),{isActive:x}=Ji(),k=l.useRef(null),[m,L]=l.useState(""),_=`pb-cache-video-${e}`,T=l.useRef(null),E=l.useMemo(()=>r?.mode==="2",[r]),A=l.useMemo(()=>{var V;return r?.mode==="2"?`translateY(-${50+((V=r?.offsetTop)!==null&&V!==void 0?V:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[r]),S=l.useMemo(()=>{var V;return((V=t?.video)===null||V===void 0?void 0:V.cover)||m},[m,t]),I=l.useMemo(()=>E?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[E]),P=l.useMemo(()=>r?.bgWay==="1",[r]),N=l.useMemo(()=>P&&r?.bgColor?{backgroundColor:r?.bgColor}:{},[r,P]);l.useEffect(()=>{a&&a?.muted(o)},[o,a]);const U=l.useCallback(()=>{a&&a?.play()},[a]),G=Le("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),B=l.useCallback(()=>{var V,F,ee,Q,ie,se,W,re,J;if(!a)return;p(!0),u(!1);const Z=n[e];if(Z&&a?.duration()){b.current=a?.currentTime()||0;const he=((V=a?.duration())!==null&&V!==void 0?V:0).toFixed(2),R=((F=a?.currentTime())!==null&&F!==void 0?F:0).toFixed(2),H=w?"0":"1";c?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(Q=(ee=Z?.video)===null||ee===void 0?void 0:ee.itemId)!==null&&Q!==void 0?Q:"",contentName:(se=(ie=Z?.video)===null||ie===void 0?void 0:ie.title)!==null&&se!==void 0?se:"",playType:H,startTime:R,videoDuration:he,contentTags:JSON.stringify((re=(W=Z?.video)===null||W===void 0?void 0:W.tags)!==null&&re!==void 0?re:[]),position:e+"",contentFormat:"video",traceInfo:(J=Z?.video)===null||J===void 0?void 0:J.traceInfo}}),f(!1)}},[c,n,e,w,a]),j=l.useCallback(()=>{var V;if(!a||m||!E)return;const F=document.getElementById("player-container-id_html5_api");if(!F||(F.style.objectFit="contain",!((V=t?.video)===null||V===void 0)&&V.cover||!k||!k.current||P))return;const ee=()=>{const Q=F,ie=k?.current,se=ie.getContext("2d"),W=window?.innerWidth,re=window?.innerHeight;ie.height=re,ie.width=W,se?.drawImage(Q,0,0,ie.width,ie.height),L(ie.toDataURL())};ee(),setTimeout(()=>{ee()},500)},[a,P,t,m,E]),z=l.useCallback(()=>{a&&j()},[a,j]);l.useCallback(()=>{p(!0)},[]);const O=l.useCallback(V=>()=>{if(!a||!C)return;const F=a?.paused();switch(V){case"start":if(!F)return;a?.play(),u(!1);break;case"pause":if(F)return;a?.pause(),u(!0);break;default:F?a?.play():a?.pause(),u(!F);break}},[C,a]),D=l.useCallback(()=>{var V,F,ee,Q,ie,se,W,re,J;if(!a||s!==e)return;const Z=n[e],he=((V=a?.duration())!==null&&V!==void 0?V:0).toFixed(2),R=((F=a?.currentTime())!==null&&F!==void 0?F:0).toFixed(2);if(a?.duration()){const H=(a?.currentTime()-b.current).toFixed(2);c?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(Q=(ee=Z?.video)===null||ee===void 0?void 0:ee.itemId)!==null&&Q!==void 0?Q:"",contentName:(se=(ie=Z?.video)===null||ie===void 0?void 0:ie.title)!==null&&se!==void 0?se:"",endTime:R,videoDuration:he,playDuration:H,contentTags:JSON.stringify((re=(W=Z?.video)===null||W===void 0?void 0:W.tags)!==null&&re!==void 0?re:[]),position:e+"",contentFormat:"video",traceInfo:(J=Z?.video)===null||J===void 0?void 0:J.traceInfo}})}},[n,e,c,a,s]);l.useEffect(()=>{if(!x||!a)return;const V=t?.video.url;if(!V)return;a?.src(V),u(!1);const F=document.querySelector(`#${_}`),ee=document.querySelector("#player-container-id"),Q=document.querySelector("#player-container-id-copy");if(!(!ee&&!Q))return F?.appendChild(ee||Q),a?.on("loadedmetadata",z),a?.on("loadeddata",j),a?.on("playing",B),a?.on("pause",D),a?.on("ended",U),()=>{Q?.appendChild(ee),a?.off("loadedmetadata",z),a?.off("loadeddata",j),a?.off("playing",B),a?.off("pause",D),a?.off("ended",U)}},[x,_,t,a]),l.useEffect(()=>{!a||!C||(x?(h?.({eventName:"ViewContent"}),a?.play()):a?.pause())},[x,C,a]),l.useEffect(()=>{if(!x||!a)return;!a?.paused()&&y?a?.pause():y||a?.play()},[y,x,a]),l.useEffect(()=>{if(!x)return;const V=()=>{O("start")(),h?.({eventName:"ViewContent"})},F=O("pause");return We.on(Re.PAGE_DID_SHOW,V),We.on(Re.PAGE_DID_HIDE,F),()=>{We.off(Re.PAGE_DID_SHOW,V),We.off(Re.PAGE_DID_HIDE,F)}},[O,x]);const $=l.useMemo(()=>!v?.placeholder_image||C?null:l.createElement("img",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:v?.placeholder_image}),[C,v?.placeholder_image]);return l.useEffect(()=>{if(!a)return;const V=()=>{var F;s===e&&(!((F=t?.video)===null||F===void 0)&&F.url)&&a&&!d&&O("pause")()};return window.addEventListener("beforeunload",V),()=>{window.removeEventListener("beforeunload",V)}},[s,e,t,a,O,d]),t?.video?l.createElement(l.Fragment,null,E?l.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:O(),style:Object.assign({position:"relative",width:"100%",height:i,overflow:"hidden"},N)},!P&&l.createElement(Me,{src:S,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},I)}),l.createElement("canvas",{ref:k,style:{display:"none"}}),l.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:"50%",transform:A,left:0,right:0}},l.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},l.createElement("div",{className:"n-full-screen",ref:T,id:_,style:{width:"100%",height:"100%"}}),l.createElement("img",{hidden:!d,className:"clc-pb-video-pause",src:G}))),$):l.createElement("div",{className:"video-container",key:t?.video.itemId,style:{position:"relative",width:"100%",height:i,overflow:"hidden"},onClick:O()},l.createElement("div",{className:"n-full-screen",ref:T,id:_,style:{width:"100%",height:"100%"}}),$,l.createElement("img",{hidden:!d,className:"clc-pb-video-pause",src:G}))):null};var qs=l.memo(Ys);const Xs=({defaultValue:t,activeIcon:e,unactiveIcon:i,onChange:n,style:o})=>{const[s,r]=l.useState(t),a=d=>{d.stopPropagation();const u=!s;r(u),n?.(u)};return l.createElement("button",{style:o,className:"pb-toggle-button",onClick:a},l.createElement("img",{className:"pb-toggle-button-icon",src:s?e:i}))};var on=l.memo(Xs);const Js=({imageUrl:t,style:e})=>{const[i,n]=l.useState(!0);$e(),l.useEffect(()=>{setTimeout(()=>{n(!1)},2e3)},[]);const o=Le("/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png"),s=l.useMemo(()=>i?"pb-fadeIn":"pb-fadeOut",[i]);return l.createElement("div",{hidden:!i,className:`pb-finger-wrap ${s}`,style:e},l.createElement("img",{src:t||o}))},ln=t=>{const{src:e,height:i,imgUrlsPostConfig:n,onShowFirstImage:o}=t,s=l.useMemo(()=>n?.mode==="2",[n]),r=l.useMemo(()=>{var c;return n?.mode==="2"?`translateY(-${50+((c=n?.offsetTop)!==null&&c!==void 0?c:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[n]),a=l.useMemo(()=>s?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[s]),d=l.useMemo(()=>n?.bgWay==="1",[n]),u=l.useMemo(()=>d&&n?.bgColor?{backgroundColor:n?.bgColor}:{},[n,d]);return l.createElement("div",{style:Object.assign({overflow:"hidden",height:i,width:"100%",position:"relative"},u)},(!s||!d)&&l.createElement(Me,{src:e,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},a),onLoad:o}),s&&l.createElement(Me,{src:e,style:{width:"100%",height:"100%",objectFit:"contain",position:"absolute",top:"50%",transform:r,left:0,right:0}}))},Ks=({imgUrls:t,width:e,height:i,rec:n,index:o,onReportViewImageEnd:s,onViewImageStartEvent:r,imgUrlsPostConfig:a})=>{var d;const u=l.useRef(),{isActive:c}=Ji(),{sxpParameter:v,openHashtag:g}=ue(),[y,h]=l.useState(!1);l.useEffect(()=>{y&&c?(u?.current&&u.current.swiper.autoplay.start(),g?s(n):r(o)):u?.current&&u.current.swiper.autoplay.stop()},[n,c,s,g,o,r,y]);const b=l.useCallback(()=>{y||h(!0)},[y]);return l.createElement(tt,{ref:u,defaultValue:0,direction:"horizontal",modules:[xt,Et],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet"},height:i,loop:!0,autoplay:{delay:((d=a?.delay)!==null&&d!==void 0?d:3)*1e3}},t?.map((C,p)=>l.createElement(Ue,{key:p},l.createElement(ln,{src:!y&&p>0?"":C,height:i,imgUrlsPostConfig:a,onShowFirstImage:b}))))};var Qs=l.memo(Ks);const Zs=({tags:t,itemId:e,itemType:i,index:n,rec:o,hashTagStyle:s})=>{const[r,a]=l.useState(!1),{setWaterFallData:d,setOpenHashtag:u,setCacheActiveIndex:c,waterFallData:v,setIsFromHashtag:g}=ue(),y=h=>{v?g?.(!0):c?.(n),d?.(i?{hashTag:h,itemId:e,itemType:i,rec:o}:{hashTag:h,rec:o}),u?.(!0)};return l.useMemo(()=>t.length<=6?null:l.createElement("span",{style:{textDecoration:"underline",cursor:"pointer",color:"#fff"},onClick:()=>a(!r)},r?"show less":"show more"),[r,t]),l.createElement("div",{className:"clc-sxp-bottom-hashtag"},l.createElement(Dt,null,t?.map((h,b)=>l.createElement(Ue,{key:b,hidden:r?!1:b>=6,className:"clc-sxp-bottom-hashtag-item",style:s,onClick:()=>y(h)},`#${h}`))))};var sn=l.memo(Zs),ea="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAbtJREFUeF7t2DFKxFAQxvHv6xTxCoKNiAuCna2X2NY7eAE9hYdwj2BjZ2ulYLW9pQcYDWyxBIK7ZN7MNyapk/D+v8zC20dM/OLE+zEDzBMwcYH5J1BpAMzsAMAJyU+vdZeZADN7AHAH4BjAC8kbD4QSAJv4+17wFcm3sQjyAGbWhXdff/takzwdG989Lw0wEN+te0ly9a8BIuJlJyAqXhIgMl4OIDpeCiAjXgYgK14CIDM+HSA7PhVgYHvrusnZZaOUshNUiU+ZAKX4cAC1+FAAxfgwANX4EADl+OYA6vFNASrENwOoEt8EoFK8O0C1eFcAMzsE8AXgqLcHdzvA3GVvv+89bv8FzOwcwEdvASuSy30XFXm/G0C3aDN7BXBdCcEb4ALAE4BFFQRXgM0UlEJwB6iG0ASgEkIzgCoITQEqIDQHUEcIAVBGCANQRQgFUEQIB1BDSAFQQkgDUEFIBVBASAfIRpAAyESQAchCkALIQJADiEaQBIhEkAWIQpAG+ANh8Xvk/j72CF0eYABhDeCS5PckALYQbgGcAXgm+Tg2vnu+xAR4hA69YwZoqVvh3fMEVPhKLdc4+Qn4AXwYBFBN2dYpAAAAAElFTkSuQmCC";function At(t){return l.memo(function(e){const{$store:i}=kn(),n=s=>{let r=s;const a=s.match(/{{.*?}}/g);return a?.length&&a.forEach(d=>{d.replace(/{{\s*([\w.]+)\s*}}/g,(u,c)=>{if(c){const v=be.get(i,c);return r=r.replace(d,v),v}})}),r},o=l.useMemo(()=>{var s,r,a;const{bindDatas:d}=e,u=xe(e,["bindDatas"]);if((s=d?.forEach)===null||s===void 0||s.call(d,c=>{if(c?.propKey&&c?.dataPath){const{propKey:v,dataPath:g}=c;g.replace(/{{\s*([\w.]+)\s*}}/g,(y,h)=>{var b,C;if(h){const p=(C=(b=be.get(i,h))!==null&&b!==void 0?b:e[v])!==null&&C!==void 0?C:"";return u[v]=p,p}})}}),u){u.eventMap={};const c=be.cloneDeep(u.event)||{};for(const v in c)if(Object.prototype.hasOwnProperty.call(c,v))try{c[v].value=n(c[v].value),u.eventMap[v]=new Function(c[v].value)}catch{}}return!((a=(r=u?.event)===null||r===void 0?void 0:r.onClick)===null||a===void 0)&&a.linkType&&(u.style.cursor="pointer"),u},[i,e]);return l.createElement(t,Object.assign({},o,o.eventMap))})}const ta=({rec:t,index:e,tempMap:i,resolver:n})=>{const{schema:o}=$e(),s=l.useMemo(()=>{var r,a,d,u,c,v,g,y,h,b,C,p,w,f,x,k,m,L,_,T,E,A,S,I,P,N,U,G,B,j,z;if(!t?.video)return null;let O=null;!((a=(r=t?.video)===null||r===void 0?void 0:r.bindProducts)===null||a===void 0)&&a.length?O="\u591A\u5546\u54C1CTA":!((d=t?.video)===null||d===void 0)&&d.bindProduct?O="\u5546\u54C1CTA":O=(c=(u=t?.video)===null||u===void 0?void 0:u.bindCta)===null||c===void 0?void 0:c.itemId;const D=i?.[O];if(((v=D?.item)===null||v===void 0?void 0:v.type)==="CommodityDiro"&&!(!((g=t?.video)===null||g===void 0)&&g.bindProduct)||((y=D?.item)===null||y===void 0?void 0:y.type)==="Commodity"&&!(!((h=t?.video)===null||h===void 0)&&h.bindProduct)||((b=D?.item)===null||b===void 0?void 0:b.type)==="CommodityDiroNew"&&!(!((C=t?.video)===null||C===void 0)&&C.bindProduct)||((p=D?.item)===null||p===void 0?void 0:p.type)==="MultiCommodity"&&!(!((f=(w=t?.video)===null||w===void 0?void 0:w.bindProducts)===null||f===void 0)&&f.length)||((x=D?.item)===null||x===void 0?void 0:x.type)==="MultiCommodityDiro"&&!(!((m=(k=t?.video)===null||k===void 0?void 0:k.bindProducts)===null||m===void 0)&&m.length)||((L=D?.item)===null||L===void 0?void 0:L.type)==="MultiCommodityDiroNew"&&!(!((T=(_=t?.video)===null||_===void 0?void 0:_.bindProducts)===null||T===void 0)&&T.length))return null;if(D&&n){const $=n[(E=D?.item)===null||E===void 0?void 0:E.type],V=At($),F=(A=$?.extend)===null||A===void 0?void 0:A.defaulSetting,ee=((P=(I=(S=D?.item)===null||S===void 0?void 0:S.event)===null||I===void 0?void 0:I.onClick)===null||P===void 0?void 0:P.linkType)==="externalLink";return l.createElement(V,Object.assign({style:Object.assign(Object.assign(Object.assign({},F?.style),(N=D?.item)===null||N===void 0?void 0:N.style),{zIndex:50,marginLeft:"20px",boxSizing:"border-box",transform:"translate3d(0px, 0px, 0px)"}),textStyle:Object.assign(Object.assign({},F?.textStyle),(U=D?.item)===null||U===void 0?void 0:U.textStyle),bindDatas:(B=(G=D?.item)===null||G===void 0?void 0:G.bindDatas)!==null&&B!==void 0?B:[]},F?.props,(j=D?.item)===null||j===void 0?void 0:j.props,{event:((z=D?.item)===null||z===void 0?void 0:z.event)||{},schema:o,id:D?.id,key:D?.id,recData:t,isExternalLink:ee,index:e}))}else return null},[t,n,i,o]);return l.createElement(l.Fragment,null,s)};var an=l.memo(ta);const rn=({nudge:t})=>{var e,i,n,o,s,r,a;return l.createElement(l.Fragment,null,t?.isOpen&&l.createElement("div",{className:"clc-sxp-bottom-nudge",style:{marginBottom:(e=t?.marginBottom)!==null&&e!==void 0?e:5,width:(n=(i=t?.size)===null||i===void 0?void 0:i.width)!==null&&n!==void 0?n:212,height:(s=(o=t?.size)===null||o===void 0?void 0:o.height)!==null&&s!==void 0?s:38,backgroundColor:t?.backgroundColor,borderRadius:(r=t?.borderRadius)!==null&&r!==void 0?r:4}},t?.icon?l.createElement("img",{src:t.icon,style:{height:"100%",objectFit:"cover",flexShrink:0}}):null,l.createElement("p",{style:Object.assign(Object.assign({},t?.textStyle),{textWrap:"nowrap",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",flex:1,marginBottom:0})},(a=t?.content)!==null&&a!==void 0?a:"")))},ui="FOR U",ia=({tagList:t=[],setActiveIndex:e})=>{const[i,n]=l.useState(ui),{getRecommendVideos:o,setRtcList:s,setCacheRtcList:r,setCacheActiveIndex:a,setLoading:d,swiperRef:u,waterFallData:c}=ue(),v=l.useMemo(()=>[ui,...t],[t]),g=y=>()=>{if(y===i)return;let h;y!==ui&&(h=y),d?.(!0),o?.({themeTag:h}).then(b=>{var C,p,w,f;We.emit(Re.CHANGE_THEME_TAG,h),s?.((C=b?.recList)!==null&&C!==void 0?C:[]),r?.((p=b?.recList)!==null&&p!==void 0?p:[]),e?.(0),a?.(0),(f=(w=u?.current)===null||w===void 0?void 0:w.swiper)===null||f===void 0||f.slideTo(0)}).finally(()=>{d?.(!1)}),n(y)};return c||t.length<=0?null:l.createElement("div",{className:"clc-sxp-tagbar"},l.createElement("ul",{className:"clc-sxp-tagbar-list",style:{margin:"auto",gap:24}},v.map(y=>l.createElement("li",{className:`clc-sxp-tagbar-list-item ${y===i?"clc-sxp-tagbar-list-item-active":""}`,key:y,onClick:g(y)},y))))};var dn=l.memo(ia);const cn=({globalConfig:t,descStyle:e,containerHeight:i=window.innerHeight,containerWidth:n=window.innerWidth,tempMap:o,resolver:s,data:r=[],ctaType:a,tipText:d,nudge:u,_schema:c,hashTagStyle:v,tagList:g=[],licenseUrl:y})=>{var h,b,C,p,w,f,x,k,m,L;const{schema:_}=$e(),[T,E]=l.useState(0),A=l.useRef(0),[S,I]=l.useState(!1),[P,N]=l.useState(!0),U=l.useRef(),G=l.useRef(),[B,j]=l.useState(!1),[z,O]=l.useState(!1),{loadVideos:D,bffEventReport:$,loading:V,setPopupDetailData:F,ctaEvent:ee,swiperRef:Q,waterFallData:ie,setOpenHashtag:se,appDomain:W,openHashtag:re,loadingImage:J,isFromHashtag:Z,popupDetailData:he,bffFbReport:R}=ue(),[H,Y]=l.useState(null),X=l.useRef(),{productView:ve}=ze(),me=l.useMemo(()=>r.length>0&&!V&&On(),[r,V]),pe=l.useCallback(()=>{var M,ne;if(r.length<=0)return;ye();const q=location.search.slice(1),oe=mi.parse(q.replace(/\+/g,"%2B"));for(const ce in oe)oe[ce]=oe[ce].replace(/%2B/g,"+");const le=ce=>{var K;return(K=oe[ce])!==null&&K!==void 0?K:""};$?.({eventInfo:{eventSubject:"h5LinkEnterFeed",eventDescription:"User enter h5 link",utmSource:le("utm_source"),utmMedium:le("utm_medium"),utmCampaign:le("utm_campaign"),utmId:le("utm_id"),utmContent:le("utm_content"),enterTime:`${Date.now()}`,requestId:null,enterUrl:(ne=(M=window?.location)===null||M===void 0?void 0:M.href)!==null&&ne!==void 0?ne:"",clSource:le("cl_sourc")}}),R?.({eventName:"PageView"}),I(!0)},[$,r.length,R]),ye=()=>{U.current=new Date,G.current=new Date,An()},we=l.useRef();l.useEffect(()=>{var M,ne,q,oe;if(!we.current&&!H&&X?.current&&r?.length>0){we.current=!0;const le=TCPlayer("player-container-id",{licenseUrl:y,controls:!1,loop:!1,autoplay:!0,muted:!0,preload:"auto",posterImage:!1,bigPlayButton:!0,sources:!((ne=(M=r?.[0])===null||M===void 0?void 0:M.video)===null||ne===void 0)&&ne.url?[{src:(oe=(q=r?.[0])===null||q===void 0?void 0:q.video)===null||oe===void 0?void 0:oe.url}]:[]});le?.ready(()=>{Y(le)})}},[H,y,r]),l.useEffect(()=>{S||pe()},[pe,S]),l.useEffect(()=>{var M;const ne=r?.findIndex(q=>{var oe,le,ce,K,ae,ge,Ce,Ie,fe;return a==="\u591A\u5546\u54C1CTA"?((oe=q?.video)===null||oe===void 0?void 0:oe.bindProducts)&&((ce=(le=q?.video)===null||le===void 0?void 0:le.bindProducts)===null||ce===void 0?void 0:ce.length)>0:a==="\u5546\u54C1CTA"?(K=q?.video)===null||K===void 0?void 0:K.bindProduct:((ge=(ae=q?.video)===null||ae===void 0?void 0:ae.bindCta)===null||ge===void 0?void 0:ge.itemId)===a&&(((Ce=q?.video)===null||Ce===void 0?void 0:Ce.url)||((fe=(Ie=q?.video)===null||Ie===void 0?void 0:Ie.imgUrls)===null||fe===void 0?void 0:fe.length))})||0;(M=Q?.current)===null||M===void 0||M.swiper.slideTo(ne)},[a,Q]),l.useEffect(()=>{const M=r?.[T],ne=()=>{var q,oe,le,ce,K,ae,ge,Ce,Ie,fe,Se,Ke,Qe,Ze,qe,pt;if(document.visibilityState==="hidden"){We.emit(Re.PAGE_DID_HIDE,M),lt(M),Pt(M);let Te="";he&&(!((oe=(q=M?.video)===null||q===void 0?void 0:q.bindProducts)===null||oe===void 0)&&oe.length||!((le=M?.video)===null||le===void 0)&&le.bindProduct)?Te="pdpPage":he&&((ge=o?.[(ae=(K=(ce=M?.video)===null||ce===void 0?void 0:ce.bindCta)===null||K===void 0?void 0:K.itemId)!==null&&ae!==void 0?ae:""].item)===null||ge===void 0?void 0:ge.type)==="Appoint"?Te="formPage":Z?Te="hashTagPage":!((Ce=M?.video)===null||Ce===void 0)&&Ce.url?Te="videoPage":!((Ie=M?.video)===null||Ie===void 0)&&Ie.imgUrls&&(!((Se=(fe=M?.video)===null||fe===void 0?void 0:fe.imgUrls)===null||Se===void 0)&&Se.length)?Te="imagePage":M?.product&&(Te="productPage"),$?.({eventInfo:{sessionDuration:Math.floor((new Date-U.current)/1e3)+"",eventSubject:"sessionCompleted",eventDescription:"Session completed",contentId:(Ke=M?.video)===null||Ke===void 0?void 0:Ke.itemId,productId:(Qe=M?.product)===null||Qe===void 0?void 0:Qe.itemId,position:T+"",fromKName:Te,fromKPage:location?.href,ctatId:(pt=(qe=(Ze=M?.video)===null||Ze===void 0?void 0:Ze.bindCta)===null||qe===void 0?void 0:qe.itemId)!==null&&pt!==void 0?pt:""}})}else document.visibilityState==="visible"&&(pe(),fi(T),We.emit(Re.PAGE_DID_SHOW,M))};return document.addEventListener("visibilitychange",ne),()=>{document.removeEventListener("visibilitychange",ne)}},[T,$,U,r,pe,he,Z,o]);const Ge=l.useMemo(()=>{let M=0;return g.length>0&&(M+=45,ie&&(M-=45)),M},[g,ie]),Be=l.useMemo(()=>{let M=0;return t?.logoUrl&&t?.isShowLogo&&(M+=45),i-M-Ge},[t,i,Ge]),ct=l.useMemo(()=>t?.logoUrl&&t?.isShowLogo?l.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:t?.color}},l.createElement("img",{src:t?.logoUrl,alt:"logo"})):null,[t]),it=l.useCallback((M,ne)=>{var q,oe,le,ce;return!((q=M?.video)===null||q===void 0)&&q.url?l.createElement(qs,{rec:M,index:ne,muted:P,data:r,height:Be,activeIndex:T,videoPostConfig:t?.videoPost,videoRef:H}):!((oe=M?.video)===null||oe===void 0)&&oe.imgUrls?l.createElement(Qs,{key:M?.video.itemId,imgUrls:M?.video.imgUrls,width:n,height:Be,rec:M,index:ne,onReportViewImageEnd:lt,onViewImageStartEvent:fi,imgUrlsPostConfig:t?.imgUrlsPost}):M.product&&Array.isArray(t?.productPost)&&((le=t?.productPost)===null||le===void 0?void 0:le.length)>0?(ce=t?.productPost)===null||ce===void 0?void 0:ce.map((K,ae)=>{var ge,Ce,Ie,fe,Se,Ke,Qe,Ze;const qe=s[(ge=K?.item)===null||ge===void 0?void 0:ge.type],pt=At(qe),Te=(Ce=qe?.extend)===null||Ce===void 0?void 0:Ce.defaulSetting;return l.createElement(pt,Object.assign({key:`${ne}${ae}`,textStyle:Object.assign(Object.assign({},Te?.textStyle),(Ie=K?.item)===null||Ie===void 0?void 0:Ie.textStyle),bindDatas:(Se=(fe=K?.item)===null||fe===void 0?void 0:fe.bindDatas)!==null&&Se!==void 0?Se:[]},Te?.props,(Ke=K?.item)===null||Ke===void 0?void 0:Ke.props,{event:((Qe=K?.item)===null||Qe===void 0?void 0:Qe.event)||{},schema:_,id:K?.id,viewTime:G.current,rec:M,isPost:!0,tipText:d,style:Object.assign(Object.assign(Object.assign({},Te?.style),(Ze=K?.item)===null||Ze===void 0?void 0:Ze.style),{height:"100%",overflow:"auto"}),index:ne}))}):null},[n,r,Be,P,T,t?.productPost,G,d,s,_,H]),nt=l.useCallback(M=>{O(M)},[]),ut=l.useMemo(()=>z?{background:"linear-gradient( 180deg, rgba(129,129,129,0) 0%, rgba(121,121,121,0.5) 5%, #616161 100%)",paddingTop:20,paddingBottom:20}:{padding:"20px 0"},[z]),ot=l.useCallback((M,ne)=>{var q,oe,le,ce,K,ae,ge;return M?.video?l.createElement(l.Fragment,null,((q=M?.video)===null||q===void 0?void 0:q.title)&&!z&&l.createElement("div",{className:"clc-sxp-bottom-shadow"}),l.createElement("div",{className:"clc-sxp-bottom"},l.createElement(rn,{nudge:u}),t?.isShowCTA===void 0||t?.isShowCTA?l.createElement("div",{className:"clc-sxp-bottom-card"},l.createElement(an,{rec:M,index:ne,tempMap:o,resolver:s})):null,l.createElement("div",null,l.createElement(kt,{className:"clc-sxp-bottom-text",isPost:!0,foldText:d?.foldText,unfoldText:d?.unfoldText,text:(le=(oe=M?.video)===null||oe===void 0?void 0:oe.title)!==null&&le!==void 0?le:"",style:Object.assign(Object.assign({},e),{textShadow:t?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none"}),onChange:nt}),l.createElement(sn,{index:T,tags:(K=(ce=M?.video)===null||ce===void 0?void 0:ce.hashTags)!==null&&K!==void 0?K:[],itemId:(ae=M?.video)===null||ae===void 0?void 0:ae.itemId,itemType:!((ge=M?.video)===null||ge===void 0)&&ge.itemId?"VIDEO":null,rec:M,hashTagStyle:v})))):null},[e,T,o,s,d,u,v,t,nt,z,ut]),De=l.useCallback((M,ne)=>{var q,oe,le,ce;if(!t?.isShowLike)return;let K=(q=t?.likeIconY)!==null&&q!==void 0?q:400;return ie&&K<40&&(K+=40),M?.video?l.createElement(nn,{key:M.position,activeIcon:t?.likeIcon,unActicveIcon:t?.unlikeIcon,active:M.isCollected,recData:M,className:"clc-sxp-like-button",style:{[(oe=t.likeIconXPosit)!==null&&oe!==void 0?oe:"right"]:(le=t.likeIconX)!==null&&le!==void 0?le:0,[(ce=t.likeIconYPosit)!==null&&ce!==void 0?ce:"bottom"]:K},position:ne}):null},[t,ie]),lt=M=>{var ne,q,oe,le,ce,K;if(!(!((ne=M?.video)===null||ne===void 0)&&ne.url)&&(!((q=M?.video)===null||q===void 0)&&q.imgUrls)){const ae=Date.now(),ge=(ae-A.current)/1e3;$?.({eventInfo:{eventSubject:"viewImageCarouselEnd",eventDescription:"User end view the image carousel",contentId:(le=(oe=M?.video)===null||oe===void 0?void 0:oe.itemId)!==null&&le!==void 0?le:"",contentName:(ce=M?.video.title)!==null&&ce!==void 0?ce:"",imageEndTime:`${ae}`,playDuration:`${ge}`,contentTags:JSON.stringify((K=M?.video.tags)!==null&&K!==void 0?K:[]),position:T+"",contentFormat:"image",traceInfo:M?.video.traceInfo}})}},st=M=>{var ne,q,oe,le,ce,K,ae,ge,Ce,Ie;G.current=new Date;const fe=r[M.previousIndex];if(!fe)return;M.previousIndex-M.activeIndex<0?($?.({eventInfo:{eventSubject:"scrollDown",eventDescription:"User scroll down",contentId:(q=(ne=fe?.video)===null||ne===void 0?void 0:ne.itemId)!==null&&q!==void 0?q:"",productId:(le=(oe=fe?.product)===null||oe===void 0?void 0:oe.itemId)!==null&&le!==void 0?le:"",requestId:null}}),lt(fe)):($?.({eventInfo:{eventSubject:"scrollUp",eventDescription:"User scroll up",contentId:(K=(ce=fe?.video)===null||ce===void 0?void 0:ce.itemId)!==null&&K!==void 0?K:"",productId:(ge=(ae=fe.product)===null||ae===void 0?void 0:ae.itemId)!==null&&ge!==void 0?ge:"",requestId:null}}),lt(fe)),Pt(fe);const Se=r[M.activeIndex];!(!((Ce=Se?.video)===null||Ce===void 0)&&Ce.url)&&!(!((Ie=Se?.video)===null||Ie===void 0)&&Ie.imgUrls)&&Se?.product&&R?.({eventName:"ProductView"})},Pt=M=>{var ne,q,oe;!(!((ne=M?.video)===null||ne===void 0)&&ne.url)&&!(!((q=M?.video)===null||q===void 0)&&q.imgUrls)&&M?.product&&ve(M,M.product,(oe=M?.product)===null||oe===void 0?void 0:oe.bindCta,G.current,T)};l.useEffect(()=>{const M=r[T];re&&Pt(M)},[re,r,T]);const fi=M=>{var ne,q,oe,le,ce,K;const ae=r[M];if(!(!((ne=ae?.video)===null||ne===void 0)&&ne.url)&&(!((q=ae?.video)===null||q===void 0)&&q.imgUrls)){const ge=Date.now();A.current=ge,$?.({eventInfo:{eventSubject:"viewImageCarouselStart",eventDescription:"User start view the image carousel",contentId:(le=(oe=ae?.video)===null||oe===void 0?void 0:oe.itemId)!==null&&le!==void 0?le:"",contentName:(ce=ae?.video.title)!==null&&ce!==void 0?ce:"",imageStartTime:`${ge}`,contentTags:JSON.stringify((K=ae?.video.tags)!==null&&K!==void 0?K:[]),position:M+"",contentFormat:"image",traceInfo:ae?.video.traceInfo}}),R?.({eventName:"ViewContent"})}},ht=l.useMemo(()=>{const M=r?.map((ne,q)=>T===q||q-1===T||q+1===T?ne:null);return ie?M:M.concat([{loading:!0}])},[r,T,ie]),pn=l.useMemo(()=>V?l.createElement("div",{style:{height:Be,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},l.createElement("img",{width:64,height:64,src:J,alt:"loading...",style:{objectFit:"contain"}})):ht?.map((M,ne)=>l.createElement(Ue,{key:ne,virtualIndex:ne},M&&l.createElement(l.Fragment,null,M?.loading?l.createElement("div",{style:{height:Be,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},l.createElement("img",{width:64,height:64,src:J,alt:"loading...",style:{objectFit:"contain"}})):l.createElement(l.Fragment,null,it(M,ne),ot(M,ne),De(M,ne))))),[n,r,Be,V,ot,it,ht,J]),vn=Le("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png"),fn=Le("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png");return l.createElement("div",{id:"sxp-render",className:"clc-sxp-container"},ie&&l.createElement(Zi,{icon:ea,styles:{background:"rgba(0,0,0,.3)",color:"#fff"},onClose:()=>{se?.(!0)}}),ct,l.createElement(dn,{tagList:g,setActiveIndex:E}),me?l.createElement(Js,{imageUrl:t?.swipeTipIcon,style:{top:`${50+((h=t?.swipeTipOffset)!==null&&h!==void 0?h:0)}%`}}):null,l.createElement(tt,{style:{marginTop:Ge},ref:Q,onSlideChange:()=>{Q.current.swiper.allowTouchMove=!1,setTimeout(()=>{Q.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:M=>{E(M.activeIndex),!re&&(st(M),!ie&&M?.activeIndex+2>=r?.length&&(B||(j(!0),D?.(Math.ceil(T/10)+1).then(()=>{j(!1)}))))},direction:"vertical",height:Be},l.createElement(on,{style:{position:"fixed",visibility:!((C=(b=r?.[T])===null||b===void 0?void 0:b.video)===null||C===void 0)&&C.url?"visible":"hidden",zIndex:999,[(p=t?.muteIconXPosit)!==null&&p!==void 0?p:"right"]:(w=t?.muteIconX)!==null&&w!==void 0?w:0,[(f=t?.muteIconYPosit)!==null&&f!==void 0?f:"bottom"]:(x=t?.muteIconY)!==null&&x!==void 0?x:23},defaultValue:P,activeIcon:t?.unMuteIcon?t?.unMuteIcon:vn,unactiveIcon:t?.muteIcon?t?.muteIcon:fn,onChange:N}),pn),l.createElement(tn,Object.assign({},(L=(m=(k=t?.hashTag)===null||k===void 0?void 0:k[0])===null||m===void 0?void 0:m.item)===null||L===void 0?void 0:L.props)),l.createElement("div",{style:{position:"absolute",zIndex:-100}},l.createElement("video",{ref:X,id:"player-container-id",playsInline:!0,crossOrigin:"anonymous",style:{backgroundColor:"transparent",width:"100%",height:"100%",objectFit:"cover",pointerEvents:"none"}}),l.createElement("div",{id:"player-container-id-copy"})))},na=({imgUrls:t,width:e,height:i,imgUrlsPostConfig:n,rec:o,index:s})=>l.createElement(tt,{defaultValue:0,direction:"horizontal",modules:[xt,Et],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(r=>l.createElement(Ue,{key:r},l.createElement(ln,{src:r,height:i,imgUrlsPostConfig:n}))));var oa=l.memo(na);const la=({rec:t,index:e,height:i,data:n,muted:o,activeIndex:s,videoPostConfig:r,width:a})=>{const[d,u]=l.useState(!1),c=l.useRef(null),{bffEventReport:v,sxpParameter:g,waterFallData:y,openHashtag:h}=ue(),b=l.useRef(0),[C,p]=l.useState(!1),[w,f]=l.useState(!0),x=l.useRef(null),[k,m]=l.useState("");l.useEffect(()=>{c.current&&(c.current.muted=o)},[o]);const L=l.useCallback(()=>{var j;(j=c.current)===null||j===void 0||j.play()},[]),_=Le("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),T=l.useCallback(()=>{var j,z,O,D,$,V,F,ee,Q,ie,se,W,re;u(!1);const J=n[e];if(J&&(!((j=c?.current)===null||j===void 0)&&j.duration)){b.current=((z=c?.current)===null||z===void 0?void 0:z.currentTime)||0;const Z=((D=(O=c.current)===null||O===void 0?void 0:O.duration)!==null&&D!==void 0?D:0).toFixed(2),he=((V=($=c.current)===null||$===void 0?void 0:$.currentTime)!==null&&V!==void 0?V:0).toFixed(2),R=w?"0":"1";v?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(ee=(F=J?.video)===null||F===void 0?void 0:F.itemId)!==null&&ee!==void 0?ee:"",contentName:(ie=(Q=J?.video)===null||Q===void 0?void 0:Q.title)!==null&&ie!==void 0?ie:"",playType:R,startTime:he,videoDuration:Z,contentTags:JSON.stringify((W=(se=J?.video)===null||se===void 0?void 0:se.tags)!==null&&W!==void 0?W:[]),position:e+"",contentFormat:"video",traceInfo:(re=J?.video)===null||re===void 0?void 0:re.traceInfo}}),f(!1)}},[v,n,e,w]),E=l.useCallback(()=>{p(!0)},[]),A=l.useCallback(j=>()=>{var z,O,D,$,V;if(!C)return;const F=(z=c.current)===null||z===void 0?void 0:z.paused;switch(j){case"start":if(!F)return;(O=c.current)===null||O===void 0||O.play(),u(!1);break;case"pause":if(F)return;(D=c.current)===null||D===void 0||D.pause(),u(!0);break;default:F?($=c.current)===null||$===void 0||$.play():(V=c.current)===null||V===void 0||V.pause(),u(!F);break}},[C]),S=l.useCallback(()=>{var j,z,O,D,$,V,F,ee,Q,ie,se,W,re;const J=n[e],Z=((z=(j=c.current)===null||j===void 0?void 0:j.duration)!==null&&z!==void 0?z:0).toFixed(2),he=((D=(O=c.current)===null||O===void 0?void 0:O.currentTime)!==null&&D!==void 0?D:0).toFixed(2);if(!(($=c?.current)===null||$===void 0)&&$.duration){const R=(((V=c?.current)===null||V===void 0?void 0:V.currentTime)-b.current).toFixed(2);v?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(ee=(F=J?.video)===null||F===void 0?void 0:F.itemId)!==null&&ee!==void 0?ee:"",contentName:(ie=(Q=J?.video)===null||Q===void 0?void 0:Q.title)!==null&&ie!==void 0?ie:"",endTime:he,videoDuration:Z,playDuration:R,contentTags:JSON.stringify((W=(se=J?.video)===null||se===void 0?void 0:se.tags)!==null&&W!==void 0?W:[]),position:e+"",contentFormat:"video",traceInfo:(re=J?.video)===null||re===void 0?void 0:re.traceInfo}})}},[n,e,v]),I=l.useMemo(()=>r?.mode==="2",[r]),P=l.useMemo(()=>{var j;return r?.mode==="2"?`translateY(-${50+((j=r?.offsetTop)!==null&&j!==void 0?j:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[r]),N=l.useMemo(()=>{var j;return((j=t?.video)===null||j===void 0?void 0:j.cover)||k},[k,t]),U=l.useCallback(()=>{if(!x||!c||!c.current||!x.current)return;const j=c?.current,z=x?.current,O=z.getContext("2d"),D=window?.innerWidth,$=window?.innerHeight;z.height=$,z.width=D,O?.drawImage(j,0,0,z.width,z.height),m(z.toDataURL())},[]);l.useEffect(()=>{var j,z,O,D;if(c.current){if(u(!1),!c.current.src){const $=t?.video.url;if($.includes(".m3u8"))if(typeof window<"u"&&window?.Hls.isSupported()){const V=new window.Hls;V.loadSource($),V.attachMedia(c.current)}else c.current.canPlayType("application/vnd.apple.mpegurl"),c.current.src=$;else c.current.src=$;c.current.setAttribute("x5-playsinline","true"),c.current.setAttribute("webkit-playsinline","true")}return(j=c.current)===null||j===void 0||j.addEventListener("loadedmetadata",E),(z=c.current)===null||z===void 0||z.addEventListener("canplay",E),(O=c.current)===null||O===void 0||O.addEventListener("playing",T),(D=c.current)===null||D===void 0||D.addEventListener("loadeddata",U),()=>{var $,V,F,ee;($=c.current)===null||$===void 0||$.removeEventListener("loadedmetadata",E),(V=c.current)===null||V===void 0||V.removeEventListener("canplay",E),(F=c.current)===null||F===void 0||F.removeEventListener("playing",T),(ee=c.current)===null||ee===void 0||ee.removeEventListener("loadeddata",U)}}},[E,T,t?.video,U]);const G=l.useMemo(()=>!g?.placeholder_image||C?null:l.createElement("img",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:g?.placeholder_image}),[C,g?.placeholder_image]);l.useEffect(()=>{const j=()=>{var z,O;s===e&&(!((z=t?.video)===null||z===void 0)&&z.url)&&(!((O=c?.current)===null||O===void 0)&&O.src)&&!d&&A("pause")()};return window.addEventListener("beforeunload",j),()=>{window.removeEventListener("beforeunload",j)}},[s,e,t,c,A,d]);const B=l.useMemo(()=>I?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[I]);return t?.video?l.createElement(l.Fragment,null,I?l.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:A(),style:{position:"relative",width:a,height:i,overflow:"hidden"}},l.createElement(Me,{src:N,style:Object.assign({height:i,width:a,objectFit:"cover"},B)}),l.createElement("canvas",{ref:x,style:{display:"none"}}),l.createElement("div",{style:{position:"absolute",width:a,height:i,top:"50%",transform:P,left:0,right:0}},l.createElement("div",{style:{position:"relative",width:a,height:"100%"}},l.createElement("video",{id:`pb-video-${e}`,className:"clc-pb-video",ref:c,autoPlay:!0,crossOrigin:"anonymous",muted:!0,controls:!1,playsInline:!0,preload:"auto",onPause:S,onEnded:L,style:{width:"100%",height:i,objectFit:"contain"}}),l.createElement("img",{hidden:!d,className:"clc-pb-video-pause",src:_}))),G):l.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:A(),style:{position:"relative",width:a,height:i,overflow:"hidden"}},l.createElement("video",{id:`pb-video-${e}`,className:"clc-pb-video",style:{width:"100%"},ref:c,crossOrigin:"anonymous",muted:!0,autoPlay:!0,controls:!1,playsInline:!0,preload:"auto",onPause:S,onEnded:L}),G,l.createElement("img",{hidden:!d,className:"clc-pb-video-pause",src:_}))):null};var sa=l.memo(la);const pi={};Object.values(ci).forEach(t=>{pi[t.extend.type]=t});const aa="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",ra="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",da=({data:t=[],globalConfig:e,tipText:i,nudge:n,tempMap:o,descStyle:s,hashTagStyle:r,containerHeight:a=664,containerWidth:d=375,appDomain:u,tagList:c=[]})=>{const v=l.useMemo(()=>{let m=0;return e?.logoUrl&&e?.isShowLogo&&(m+=45),c.length>0&&(m+=45),a-m},[e,a,c]),g=(m,L)=>{var _,T,E,A;if(!((_=m?.video)===null||_===void 0)&&_.url)return l.createElement(sa,{rec:m,index:L,muted:!0,width:d,data:t??[],height:v,activeIndex:L,videoPostConfig:e?.videoPost});if(!((T=m?.video)===null||T===void 0)&&T.imgUrls)return l.createElement(oa,{key:m?.video.itemId,imgUrls:m?.video.imgUrls,width:d,height:v,rec:m,index:L,imgUrlsPostConfig:e?.imgUrlsPost});if(m.product&&m.product&&Array.isArray(e?.productPost)&&((E=e?.productPost)===null||E===void 0?void 0:E.length)>0)return(A=e?.productPost)===null||A===void 0?void 0:A.map((S,I)=>{var P,N,U,G,B,j,z,O;const D=pi[(P=S?.item)===null||P===void 0?void 0:P.type],$=At(D),V=(N=D?.extend)===null||N===void 0?void 0:N.defaulSetting;return l.createElement($,Object.assign({key:`${L}${I}`,textStyle:Object.assign(Object.assign({},V?.textStyle),(U=S?.item)===null||U===void 0?void 0:U.textStyle),bindDatas:(B=(G=S?.item)===null||G===void 0?void 0:G.bindDatas)!==null&&B!==void 0?B:[]},V?.props,(j=S?.item)===null||j===void 0?void 0:j.props,{event:((z=S?.item)===null||z===void 0?void 0:z.event)||{},id:S?.id,rec:m,isPost:!0,tipText:i,style:Object.assign(Object.assign(Object.assign({},V?.style),(O=S?.item)===null||O===void 0?void 0:O.style),{width:d,height:v,overflow:"auto"}),index:L}))})},y=l.useMemo(()=>e?.logoUrl&&e?.isShowLogo?l.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:e?.color}},l.createElement("img",{src:e?.logoUrl,alt:"logo"})):null,[e]),h=(m,L)=>e?.isShowCTA===void 0||e?.isShowCTA?l.createElement("div",{className:"clc-sxp-bottom-card"},l.createElement(an,{rec:m,index:L,tempMap:o,resolver:pi})):null,b=(m,L)=>{var _,T,E,A,S,I,P;return m?.video?l.createElement(l.Fragment,null,((_=m?.video)===null||_===void 0?void 0:_.title)&&l.createElement("div",{className:"clc-sxp-bottom-shadow"}),l.createElement("div",{className:"clc-sxp-bottom"},l.createElement(rn,{nudge:n}),h(m,L),l.createElement("div",null,l.createElement(kt,{className:"clc-sxp-bottom-text",isPost:!0,foldText:i?.foldText,unfoldText:i?.unfoldText,text:(E=(T=m?.video)===null||T===void 0?void 0:T.title)!==null&&E!==void 0?E:"",style:Object.assign(Object.assign({},s),{textShadow:e?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none"})})),l.createElement(sn,{index:L,tags:(S=(A=m?.video)===null||A===void 0?void 0:A.hashTags)!==null&&S!==void 0?S:[],itemId:(I=m?.video)===null||I===void 0?void 0:I.itemId,itemType:!((P=m?.video)===null||P===void 0)&&P.itemId?"VIDEO":null,rec:m,hashTagStyle:r}))):null},C=Le(ra,u),p=Le(aa,u),w=(m,L)=>{var _,T,E,A;if(!e?.isShowLike)return;let S=(_=e?.likeIconY)!==null&&_!==void 0?_:400;return S<40&&(S+=40),m?.video?l.createElement(nn,{key:m.position,activeIcon:(T=e?.likeIcon)!==null&&T!==void 0?T:C,unActicveIcon:(E=e?.unlikeIcon)!==null&&E!==void 0?E:p,position:L,active:m.isCollected,recData:m,className:"clc-sxp-like-button",style:{top:S,right:(A=e?.likeIconX)!==null&&A!==void 0?A:0}}):null},f=Le("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",u),x=Le("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",u),k=(m,L)=>{var _,T,E,A;return l.createElement("div",{style:{position:"relative",border:"1px solid #e1e1e1"}},y,l.createElement(dn,{tagList:c}),l.createElement(on,{style:{position:"absolute",right:(_=e?.muteIconX)!==null&&_!==void 0?_:0,visibility:!((E=(T=t?.[L])===null||T===void 0?void 0:T.video)===null||E===void 0)&&E.url?"visible":"hidden",bottom:(A=e?.muteIconY)!==null&&A!==void 0?A:23,zIndex:999},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:f,unactiveIcon:e?.muteIcon?e?.muteIcon:x}),g(m,L),b(m,L),w(m,L))};return l.createElement("div",{className:te.css({width:"100%",height:a,display:"flex",boxSizing:"border-box",gap:16,pointerEvents:"none",userSelect:"none",transform:"scale(0.7) translateX(-22%) translateY(-140px)"})},t?.map((m,L)=>k(m,L)))};var ca=l.memo(da);const ua=()=>{const{schema:t,resolver:e,popup:i}=$e(),{setPopupDetailData:n,popupDetailData:o,bffEventReport:s}=ue(),{productView:r}=ze(),[a,d]=l.useState(),u=l.useRef(null);l.useEffect(()=>{const g=()=>{u.current=new Date};return g(),window.addEventListener("pageshow",g),()=>{window.removeEventListener("pageshow",g)}},[]),l.useEffect(()=>{i&&i?.id&&i?.id!==""&&(u.current=new Date,d(i))},[i]);const c=()=>{var g,y,h,b;if(!i||i?.id===""||!a||new Date-u.current<((g=i?.duration)!==null&&g!==void 0?g:0))return;d(Object.assign(Object.assign({},i),{id:""}));const C=o,p=(y=C?.video)===null||y===void 0?void 0:y.bindProduct,w=(b=(h=C?.video)===null||h===void 0?void 0:h.bindProduct)===null||b===void 0?void 0:b.bindCta;p&&w&&r(C,p,w,u.current,o?.index),setTimeout(()=>{window?.sxpPopup(""),n?.(null)},i?.duration)},v=l.useMemo(()=>{var g,y,h;return(h=(y=(g=t?.sxpPageConf)===null||g===void 0?void 0:g.globalConfig)===null||y===void 0?void 0:y.popupList)===null||h===void 0?void 0:h.map((b,C)=>{var p,w,f,x,k,m,L,_,T,E,A,S,I,P,N;if(b?.id===i?.id){const U=e[(p=b?.item)===null||p===void 0?void 0:p.type],G=At(U),B=((x=(f=(w=b?.item)===null||w===void 0?void 0:w.event)===null||f===void 0?void 0:f.onClick)===null||x===void 0?void 0:x.linkType)==="externalLink",j=((L=(m=(k=b?.item)===null||k===void 0?void 0:k.event)===null||m===void 0?void 0:m.onClick)===null||L===void 0?void 0:L.linkType)==="popup",z=(_=U?.extend)===null||_===void 0?void 0:_.defaulSetting;return l.createElement(G,Object.assign({key:C,style:Object.assign(Object.assign(Object.assign({},z?.style),(T=b?.item)===null||T===void 0?void 0:T.style),{width:(E=window.innerWidth)!==null&&E!==void 0?E:"100vw",height:"80vh",overflow:"auto"}),textStyle:Object.assign(Object.assign({},z?.textStyle),(A=b?.item)===null||A===void 0?void 0:A.textStyle),bindDatas:(I=(S=b?.item)===null||S===void 0?void 0:S.bindDatas)!==null&&I!==void 0?I:[]},z?.props,(P=b?.item)===null||P===void 0?void 0:P.props,{event:((N=b?.item)===null||N===void 0?void 0:N.event)||{},schema:t,id:b?.id,isExternalLink:B,isPopup:j,onClose:c}))}else return l.createElement(l.Fragment,null)})},[t,i,e,c]);return l.createElement(_t,{popup:a,onClose:c,padding:0,modalStyle:{position:"fixed"}},v)},vi={};Object.values(ci).forEach(t=>{vi[t.extend.type]=t});const pa=({data:t,maxSize:e=10,defaultSize:i=10,hashTagSize:n=20,loadingImage:o,appDomain:s,licenseUrl:r,enabledMetaConversionApi:a})=>{var d,u,c,v,g,y,h,b,C;const p=l.useMemo(()=>{var w;return location?.search?(w=location?.search)===null||w===void 0?void 0:w.replace("?",""):""},[]);return l.createElement(Ai,{resolver:vi,enableDataSource:!1,schema:t?.data,utmVal:p},l.createElement(Ii,{utmVal:p,dataSources:t?.data_sources,sxpParameter:t?.sxp_parameter,maxSize:(u=(d=t?.sxp_parameter)===null||d===void 0?void 0:d.personalized_recommend)!==null&&u!==void 0?u:e,defaultSize:(v=(c=t?.sxp_parameter)===null||c===void 0?void 0:c.default_recommend)!==null&&v!==void 0?v:i,hashTagSize:(y=(g=t?.sxp_parameter)===null||g===void 0?void 0:g.hash_tag_size)!==null&&y!==void 0?y:n,loadingImage:o,appDomain:s,enabledMetaConversionApi:a,isShowTag:(C=(b=(h=t?.data)===null||h===void 0?void 0:h.sxpPageConf)===null||b===void 0?void 0:b.globalConfig)===null||C===void 0?void 0:C.isShowTag,render:({rtcList:w,tagList:f})=>{var x;return l.createElement(l.Fragment,null,l.createElement(cn,Object.assign({},(x=t?.data)===null||x===void 0?void 0:x.sxpPageConf,{tagList:f,data:w,resolver:vi,licenseUrl:r})),l.createElement(ua,null))}}))};var va=l.memo(pa);const un=l.createContext({}),fa=({children:t,data:e})=>{var i,n,o,s,r,a;const[d,u]=l.useState(!1);return l.createElement(un.Provider,{value:{sxpPrameter:{bottomImage:(i=e?.sxp_parameter)===null||i===void 0?void 0:i.bottom_image,defaultRecommend:(n=e?.sxp_parameter)===null||n===void 0?void 0:n.default_recommend,personalizedRecommend:(o=e?.sxp_parameter)===null||o===void 0?void 0:o.personalized_recommend,placeholderImage:(s=e?.sxp_parameter)===null||s===void 0?void 0:s.placeholder_image,hashTagSize:(r=e?.sxp_parameter)===null||r===void 0?void 0:r.hash_tag_size,loadingImage:(a=e?.sxp_parameter)===null||a===void 0?void 0:a.loading_image},appDomain:e?.appDomain,openHashtag:d,setOpenHashtag:u}},t)};function ma(){return l.useContext(un)}exports.DiyPortalPreview=ca,exports.EditorDataProvider=fa,exports.Modal=_t,exports.SxpDataSourceProvider=Ii,exports.SxpPageCore=va,exports.SxpPageRender=cn,exports.core=Nn,exports.default=_n,exports.defaultSetting=Ae,exports.materials=ci,exports.useEditorDataProvider=ma;
|
5
|
+
18-karat gold, this necklace is embellished with hand-set diamonds.`,maxStr:79,className:"pb-commondity-content-info",style:h?.info})))},Y=()=>{var W;return o.createElement(o.Fragment,null,(S||j?.link)&&o.createElement("button",{onClick:V,className:"pb-commondity-btn",style:P},(W=_?.enTitle)!==null&&W!==void 0?W:"Purchase on Website"))},pe=o.useCallback(W=>W?.lineClamp?Object.assign(Object.assign({},W),{overflow:"hidden",WebkitLineClamp:W?.lineClamp,textOverflow:"ellipsis",display:"-webkit-box",webkitBoxOrient:"vertical"}):W,[]);return o.createElement("div",{className:"pb-commondity"},o.createElement("div",Object.assign({className:ie.css(Object.assign({},v))},g),j&&((d=j?.homePage)===null||d===void 0?void 0:d.length)>0&&o.createElement(ut,{height:J,modules:[kt,Dt],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet",clickableClass:k?.dotsAlign==="left"?"commondityDetail-swiper-clickable-left":"commondityDetail-swiper-clickable-center"},loop:!0,autoplay:{delay:k?.delay*1e3}},(a=j?.homePage)===null||a===void 0?void 0:a.map(W=>o.createElement(Ke,{key:W},o.createElement("div",{style:{overflow:"hidden",width:J,height:J}},o.createElement(Ne,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${k?.translateY?-k?.translateY+50:50}%`},src:W}))))),!(!((r=j?.homePage)===null||r===void 0)&&r.length)&&o.createElement("div",{className:ie.css({position:"relative",height:0,width:"100%",paddingBottom:"100%",overflow:"hidden"})},o.createElement("img",{className:ie.css({position:"absolute",left:0,top:0,objectFit:"cover",width:"100%"}),src:(u=E?.bottom_image)!==null&&u!==void 0?u:I,alt:""})),o.createElement("div",{className:"pb-commondity-content"},ee({isPost:b}))),Y(),o.createElement(Ot,{visible:B,onClose:()=>N(!1)},o.createElement("div",{style:{paddingBottom:"80px"}},ee({isPost:!1})),Y()))};var Ol=o.memo(Pl);const Ml=Re(Ol,{displayName:"\u5546\u54C1\u8BE6\u60C5",icon:"",category:"popup",type:"CommodityDetail",related:{settingRender:qn},defaulSetting:{props:{swiper:{dotsAlign:"center",delay:3},commodityStyles:{price:{color:"#000",fontSize:18,marginTop:24,marginBottom:10},title:{color:"#000",fontSize:23},collection:{fontSize:12,color:"#000",marginBottom:14},info:{color:"gray",fontSize:12}},buttonStyle:{backgroundColor:"#000",fontSize:12,height:45,fontWeight:"bold",textAlign:"center",color:"rgba(255, 255, 255, 0.9)"}},style:{}},w:100,h:40,sort:1});var Ll=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],ai,ri,jl=[{title:"",child:[{type:"Media",label:"\u56FE\u6807",name:["props","icon"],mediaType:"Image"},{type:"TextArea",label:"\u5185\u5BB9",name:["props","content"]},{type:"Text",label:"\u6309\u94AE\u6587\u6848",name:["props","btnText"]},{type:"Group",label:"\u63D0\u4EA4\u6309\u94AE\u5B57\u4F53",child:[{type:"Color",name:["props","submitButtonStyle","color"],initialValue:"#fff"},{type:"Select",name:["props","submitButtonStyle","fontFamily"],options:ze?.fontOptions,initialValue:(ri=(ai=ze?.fontOptions)===null||ai===void 0?void 0:ai[0])===null||ri===void 0?void 0:ri.value},{type:"Number",name:["props","submitButtonStyle","fontSize"],addonAfter:"px",initialValue:12}]},{type:"TextStyle",name:["props","submitButtonStyle"]},{type:"TextAlign",name:["props","submitButtonStyle"]},{label:"\u63D0\u4EA4\u6309\u94AE\u989C\u8272",type:"Color",name:["props","submitButtonStyle","backgroundColor"]}]}],nn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABHBJREFUeF7lmzuoFkcYhp/TihdIl0JBESubSCCCih4NXgJeUphCjyKmEEVtLRSjooWtShILRRJtgpCoeLzgLUZBQbTwAoooqLWoCWIXeZdd3bP++8/st7OX33+ac2Dn8r3Pvzv7zcy7A9RT5gDjgQnx3/T/iuA58Cz+m/7/StXhDVQ0gATOBhYCi4GxxnHeAKeAs8DfMSBjV52bhQTwBbApFj4YNMqPnV0GrgL7gJchxggFQMI3A5NDBOXRx+MYwn6Pul2rlAWwMv7VvykbiLH9TUAQjhnbYwUwA9gKLLIOHLjdGWAPcL1ovxYAG4G9wKiig1Vc/y2wBThQZJyiAA4Ba4sM0EDdw8CPvuMWAXAb+Mq344br3QGm+cTgC+B/n85aWMepz1kBOBknMy3U5wxJSdSSbrVcAPR+V9LRy0X5SW6+0A3AMuDPXlaeiv174K9OWvIAfA1cAMZ9JgBeA98Ct7J68gAMtyjJCfUbKFn6zgeA0tujoUZtWT9D2bS50x1wA2gqt6+al9YO09ODZAF8DrO+C+KIt0IagNbzIlTXktYVaKfr9+PNkSklchMtpXWHR/sJaQA7gJ8sUdXURuJ/AB7E4/0BLDeOvROQ3hEA/gFmGjusullWfDKeFcI1YFYawETgSdUqjP3niS8LYRLwNHkE1gM/GwOssplLfBkIG4BfEgBKE5dWqcTQt694da1td22YFikngGUJgH+B0UVaV1y3iHiFYpnA/wPGCICFXpX66xCfxD8oAKuA3wIpegToHW0tdYpXjKsFQLu7u60Rx+3exSCPG29HdVO3eI25TQB+BdaVAKCMSneRVpBJKfpMNiFesR4UgNOdlomeQF4AWj3quCpbfCE0JV7xDgvAXWCqp+B0tYfACkC7xXnFBaFJ8Yr5ngC8Mu78KHnS4+MqeRCaFq+4X5cB8MnmQoE7oQ3iPwCwPgJWEdZ2rjvNcj16BMpMghYxWsElS1pX0K45xNXedT2aBMu+BotCcAVlfZX69puuF70GQyRCoSFU/csnEKJEKFQqHApCXeIFIUqFQy6GykKoU7wARIuh6HVQwsmVffasEOoWLwfauASADkKU0oYqRSHULV465SsaSgAoqfk9lPq4H18ITYhXiJr7jiYAZGyUUzN0cUFoSrx0yrX6PH0ucEmTQmgCXdb5TYrX/uFcaa3rYCR7JzQpXro1vg5HRgCo+mhMEOT3/RKQYaGpkns0poD6+nA0+UX6+nhcEPreICEIfW2REQCZoc+30A9snTjlI57fyUzdzSYnU3RpP7414sDtNLl3NFG7jJK9YI52sepqnnYBUOe9ZJLOwnCapn0AqNO+NksnVHvJNO00SSeifO+ApH4vZIpdzdHZZ6QoALWXifqI8TTJNWGVua5drTV5pui8ji0A1JfM1Lta5CeWD3h7JzO0i6gVQNJv3342lwXbtx9OpkFoP0ET0LwKDZcyOF5s46ez2TtCxkt9OL0gBmJ1oMnJJcHnYo/wU9czXfR62TnAd7zWfj7/HrAAAKDnDZ8VAAAAAElFTkSuQmCC";const Nl=t=>{var e;if(!t||typeof t!="object")return null;const{mode:i,link:n,file:l,src:s}=t;switch(i){case 2:return n||null;case 3:return s||null;default:return l&&l.length>0?(e=l[0])===null||e===void 0?void 0:e.url:null}},Bl=t=>{var{content:e,btnText:i,style:n,icon:l,isPopup:s,isExternalLink:d,onClose:a,onClick:r,submitButtonStyle:u}=t,c=ke(t,["content","btnText","style","icon","isPopup","isExternalLink","onClose","onClick","submitButtonStyle"]);const{popupDetailData:v}=ve(),{jumpToWeb:m}=Be(),w=typeof l=="string"?l:Nl(l),y=()=>{var S,I,p;if(d){const b=v,f=(S=b?.video)===null||S===void 0?void 0:S.bindProduct,x=(p=(I=b?.video)===null||I===void 0?void 0:I.bindProduct)===null||p===void 0?void 0:p.bindCta,k=v?.index;m(b,f,x,k)}s||a?.(),r?.()};return o.createElement("div",Object.assign({className:`pb-prompt ${ie.css(Object.assign({},n))}`},c),o.createElement("div",{className:"pb-prompt-icon"},o.createElement("img",{width:"100%",src:w??nn})),o.createElement("div",{className:"pb-prompt-content"},e),o.createElement("button",{className:"pb-prompt-btn",style:u,onClick:y},i))};var Rl=o.memo(Bl);const zl=Re(Rl,{displayName:"\u63D0\u4EA4\u6210\u529F",icon:"",category:"popup",type:"Prompt",related:{settingRender:jl,bindableProps:[],interactionRender:Ll},defaulSetting:{props:{icon:nn,content:"You have successfully completed the appointment!",btnText:"OK"},style:{}},w:100,h:40,sort:3});var di,ci,Fl=[{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Radius",label:"\u8F6E\u64AD\u6307\u793A\u5668",options:[{label:"\u5C45\u5DE6",value:"left"},{label:"\u5C45\u4E2D",value:"center"}],name:["props","swiper","dotsAlign"]},{type:"Number",name:["props","swiper","delay"],addonAfter:"s"},{type:"Group",child:[{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","swiper","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]}]},{title:"\u5546\u54C1\u6587\u672C",child:[{name:["props","commodityStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"\u5546\u54C1\u540D\u79F0",value:"title"},{label:"\u7CFB\u5217\u540D\u79F0",value:"collection"},{label:"\u4EF7\u683C",value:"price"},{label:"\u7A0E\u8D39\u8BF4\u660E",value:"taxInfo"},{label:"\u5546\u54C1\u63CF\u8FF0",value:"info"}],name:["props","commodityStyles","field"],initialValue:"title"},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Color",name:["color"]},{type:"Select",options:ue,name:["fontFamily"],initialValue:(di=ue?.[0])===null||di===void 0?void 0:di.value},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"},{label:"\u9ED8\u8BA4\u884C\u6570",type:"Number",name:["lineClamp"]}]}]},{title:"\u8D2D\u4E70\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextMargin",name:["props","buttonStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Select",name:["props","buttonStyle","fontFamily"],options:ue,initialValue:(ci=ue?.[0])===null||ci===void 0?void 0:ci.value},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]}]}];const Vl=t=>{var e,i,n,l,s,d,a,r,u,c,v,m,{style:w,isDefault:y,rec:S,viewTime:I,isPost:p,bottom_image:b,tipText:f,swiper:x,commodityStyles:k,buttonStyle:h,index:P}=t,C=ke(t,["style","isDefault","rec","viewTime","isPost","bottom_image","tipText","swiper","commodityStyles","buttonStyle","index"]);o.useState(!0);const{sxpParameter:g}=ve(),{popupDetailData:E,bffEventReport:A,isPreview:T,swiperRef:D,bffFbReport:O}=ve(),{jumpToWeb:L,productView:z}=Be(),F=o.useRef(null);o.useRef(null),o.useRef(null),o.useState(!1),o.useState(!1),o.useState(!0);const[B,N]=o.useState(!1),R=o.useRef(null),j=p?S:E,_=p?j?.product:(e=j?.video)===null||e===void 0?void 0:e.bindProduct,G=p?(i=j?.product)===null||i===void 0?void 0:i.bindCta:(l=(n=j?.video)===null||n===void 0?void 0:n.bindProduct)===null||l===void 0?void 0:l.bindCta,V=p?P:E?.index,$=()=>{_?.link&&(L(j,_,G,V),p||z(j,_,G,I||R.current,V),window.location.href=window.getJointUtmLink(_.link))};o.useEffect(()=>{p||O?.({eventName:"ProductView"})},[p,O]),o.useEffect(()=>{const W=()=>{R.current=new Date};return W(),window.addEventListener("pageshow",W),()=>{window.removeEventListener("pageshow",W)}},[]);const J=o.useMemo(()=>{var W,oe,K,Q,me;return _?.currency&&_?.price?`${(K=(oe=(W=_?.currency)===null||W===void 0?void 0:W.split("-")[1])===null||oe===void 0?void 0:oe.toUpperCase())!==null&&K!==void 0?K:""}${(me=(Q=_?.price)===null||Q===void 0?void 0:Q.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&me!==void 0?me:""}`:"\xA3102,300.00"},[_?.price,_?.currency]),ee=T?375:(s=w?.width)!==null&&s!==void 0?s:window.innerWidth,Y=({isPost:W})=>o.createElement("div",{hidden:!!_&&(!_?.info||_?.info==="")},o.createElement(Mt,{isPost:W,onClick:()=>N(!0),className:"pb-commondityDiroNew-info",style:k?.info,foldText:f?.foldText,unfoldText:f?.unfoldText,text:_?.info||`Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
|
6
|
+
Made in Italy`})),pe=o.useCallback(W=>W?.lineClamp?Object.assign(Object.assign({},W),{overflow:"hidden",WebkitLineClamp:W?.lineClamp,textOverflow:"ellipsis",display:"-webkit-box",webkitBoxOrient:"vertical"}):W,[]);return o.createElement("div",{className:"pb-commondityDiroNew"},o.createElement("div",Object.assign({ref:F,className:ie.css(Object.assign({},w))},C),_&&((d=_?.homePage)===null||d===void 0?void 0:d.length)>0&&o.createElement(ut,{height:ee,modules:[kt,Dt],pagination:{clickable:!0,bulletActiveClass:"commondityDiroNew-swipe-item-active-bullet",clickableClass:x?.dotsAlign==="left"?"commondityDiroNew-swiper-clickable-left":"commondityDiroNew-swiper-clickable-center"},loop:!0,autoplay:{delay:x?.delay*1e3}},(a=_?.homePage)===null||a===void 0?void 0:a.map(W=>o.createElement(Ke,{key:W},o.createElement("div",{style:{overflow:"hidden",width:ee,height:ee}},o.createElement(Ne,{style:{height:"100%",width:"100%",objectFit:"cover",display:"block",objectPosition:`50% ${x?.translateY?-x?.translateY+50:50}%`},src:W}))))),!(!((r=_?.homePage)===null||r===void 0)&&r.length)&&o.createElement("div",{className:ie.css({position:"relative",height:0,width:"100%",paddingBottom:"100%",overflow:"hidden"})},o.createElement("img",{className:ie.css({position:"absolute",left:0,top:0,objectFit:"cover",width:"100%"}),src:(u=g?.bottom_image)!==null&&u!==void 0?u:b,alt:""})),o.createElement("div",{className:"pb-commondityDiroNew-content"},o.createElement("div",{className:"pb-commondityDiroNew-content-top"},o.createElement("div",{className:"pb-commondityDiroNew-content-top-left"},o.createElement("div",{className:"pb-commondityDiroNew-content-top-left-title",style:pe(k?.title)},(c=_?.title)!==null&&c!==void 0?c:"Large Dior Toujours BagLarge"),o.createElement("div",{className:"pb-commondityDiroNew-content-collection",hidden:!!_&&(!_?.collection||_?.collection===""),style:pe(k?.collection)},_?.collection||"Black Macrocannage CalfskinLarge")),o.createElement("div",{className:"pb-commondityDiroNew-content-top-right"},o.createElement("div",{className:"pb-commondityDiroNew-content-top-right-price",hidden:!!_&&!_?.price,style:pe(k?.price)},J),o.createElement("div",{className:"pb-commondityDiroNew-content-top-right-price",hidden:!!_&&!_?.taxInfo,style:pe(k?.taxInfo)},(v=_?.taxInfo)!==null&&v!==void 0?v:"\u7A0E\u8D39"))),(!_||_?.link)&&o.createElement("button",{onClick:$,className:"pb-commondityDiroNew-btn",style:h},(m=G?.enTitle)!==null&&m!==void 0?m:"Shop now"),Y({isPost:p}))),o.createElement(Ot,{visible:B,onClose:()=>N(!1)},Y({isPost:!1})))};var Hl=o.memo(Vl);const Ul=Re(Hl,{displayName:"\u5546\u54C1\u8BE6\u60C5",icon:"",category:"popup",type:"CommodityDetailDiroNew",related:{settingRender:Fl},defaulSetting:{props:{swiper:{dotsAlign:"left",delay:3},commodityStyles:{price:{color:"#000",fontWeight:"bold",fontSize:13},title:{color:"#000",fontSize:13},collection:{color:"#757575",fontSize:13},info:{color:"#757575",fontSize:13},taxInfo:{color:"#000",fontWeight:"bold",fontSize:13,textAlign:"right"}},buttonStyle:{backgroundColor:"#000",fontSize:12,height:52,fontWeight:"bold",textAlign:"center",color:"#fff",borderRadius:25,marginTop:16,marginBottom:16}},style:{}},w:100,h:40,sort:1});var ui,pi,Ge=[{title:"\u4E3B\u9898\u6837\u5F0F",child:[{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["style","width"],addonAfter:"W"},{type:"Number",name:["style","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["style","borderRadius"],max:100},{type:"Number",name:["style","borderRadius"],addonAfter:"px",max:100}]},{type:"Color",label:"\u80CC\u666F\u8272",name:["style","backgroundColor"]},{label:"\u5185\u8FB9\u8DDD",type:"Number",name:["style","padding"],addonAfter:"px"},{label:"\u4E0EPost\u63CF\u8FF0\u8FB9\u8DDD",type:"Number",name:["style","marginBottom"],addonAfter:"px"}]},{title:"\u5546\u54C1\u56FE\u7247",child:[{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","ctaTempStyles","img","width"],addonAfter:"W"},{type:"Number",name:["props","ctaTempStyles","img","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","ctaTempStyles","img","borderRadius"],max:100},{type:"Number",name:["props","ctaTempStyles","img","borderRadius"],addonAfter:"px",max:100}]},{type:"Number",label:"\u4E0E\u53F3\u4FA7\u8FB9\u8DDD",addonAfter:"px",name:["props","ctaTempStyles","img","marginRight"]},{label:"\u5C45\u4E2D\u5782\u76F4\u504F\u79FB",type:"Number",name:["props","translateY"],min:-1e3,addonAfter:"%",initialValue:0}]},{title:"\u5546\u54C1\u6807\u9898\u6587\u672C",type:"commodityTitle",child:[{type:"Group",label:"\u5B57\u4F53",child:[{type:"Color",name:["props","ctaTempStyles","title","color"]},{type:"Select",options:ue,name:["props","ctaTempStyles","title","fontFamily"],initialValue:(ui=ue?.[0])===null||ui===void 0?void 0:ui.value},{type:"Number",addonAfter:"px",name:["props","ctaTempStyles","title","fontSize"]}]},{label:"\u6837\u5F0F",type:"TextStyle",name:["props","ctaTempStyles","title"]},{label:"\u5BF9\u9F50",type:"TextAlign",name:["props","ctaTempStyles","title"]},{label:"\u95F4\u8DDD",type:"TextSpace",name:["props","ctaTempStyles","title"]}]},{title:"CTA\u6807\u9898",child:[{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","ctaTempStyles","ctaTitle","width"],addonAfter:"W"},{type:"Number",name:["props","ctaTempStyles","ctaTitle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","ctaTempStyles","ctaTitle","borderRadius"],max:100},{type:"Number",name:["props","ctaTempStyles","ctaTitle","borderRadius"],addonAfter:"px",max:100}]},{type:"Color",label:"\u80CC\u666F\u8272",name:["props","ctaTempStyles","ctaTitle","backgroundColor"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Color",name:["props","ctaTempStyles","ctaTitle","color"]},{type:"Select",options:ue,name:["props","ctaTempStyles","ctaTitle","fontFamily"],initialValue:(pi=ue?.[0])===null||pi===void 0?void 0:pi.value},{type:"Number",addonAfter:"px",name:["props","ctaTempStyles","ctaTitle","fontSize"]}]},{label:"\u6837\u5F0F",type:"TextStyle",name:["props","ctaTempStyles","ctaTitle"]},{label:"\u5BF9\u9F50",type:"TextAlign",name:["props","ctaTempStyles","ctaTitle"]}]}],Gl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];function on(t){const e=o.useRef(null),[i,n]=o.useState(!1);return o.useEffect(()=>{e.current=new IntersectionObserver(([l])=>{n(l.isIntersecting)})},[]),o.useEffect(()=>{var l;return t?.current&&((l=e?.current)===null||l===void 0||l.observe(t?.current)),()=>{var s;(s=e?.current)===null||s===void 0||s.disconnect()}},[t]),i}const $l=t=>{var{rec:e,children:i,className:n,onClick:l,style:s,isExternalLink:d=!1,index:a}=t;ke(t,["rec","children","className","onClick","style","isExternalLink","index"]);const r=o.useRef(null),u=on(r),{popup:c}=et(),{setPopupDetailData:v,ctaEvent:m}=ve(),{jumpToWeb:w}=Be();o.useEffect(()=>{var S,I;if(u&&r?.current){const p=(I=(S=e?.video)===null||S===void 0?void 0:S.bindProduct)!==null&&I!==void 0?I:e?.video;m?.({eventSubject:"ctaExposure",eventDescription:"The cta was shown to the user"},e,p,a)}},[u,r,e,m,a]);const y=xe.throttle(()=>{var S,I,p,b,f,x,k,h;const P=(I=(S=e?.video)===null||S===void 0?void 0:S.bindProduct)!==null&&I!==void 0?I:e?.video;if(m?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},e,P,a),v?.(Object.assign(Object.assign({},e),{index:a})),d){if(!((b=(p=e?.video)===null||p===void 0?void 0:p.bindProduct)===null||b===void 0)&&b.link){const C=(f=e?.video)===null||f===void 0?void 0:f.bindCta,g=(x=e?.video)===null||x===void 0?void 0:x.bindProduct;w(e,g,C,a),window.location.href=window.getJointUtmLink((h=(k=e?.video)===null||k===void 0?void 0:k.bindProduct)===null||h===void 0?void 0:h.link)}}else l?.()},c?.duration);return o.createElement("div",{ref:r,className:n,style:s,onClick:y},i)};var wt=o.memo($l),Wl={"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};const Yl=t=>{var e,i,n,l,s,d,a,r,{content:u,style:c,bgImg:v,recData:m,bottom_image:w,ctaTempStyles:y,isExternalLink:S,translateY:I=0}=t,p=ke(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles","isExternalLink","translateY"]);const{sxpParameter:b}=ve(),f=(e=m?.video)===null||e===void 0?void 0:e.bindProduct,x=(s=(l=(i=f?.cover)!==null&&i!==void 0?i:(n=f?.homePage)===null||n===void 0?void 0:n[0])!==null&&l!==void 0?l:b?.bottom_image)!==null&&s!==void 0?s:w;return o.createElement(wt,Object.assign({isExternalLink:S,rec:m,className:ie.css(Object.assign({},c)),style:{display:"flex"}},p),o.createElement("div",{className:ie.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},y?.img))},o.createElement(Ne,{className:ie.css({width:"100%",objectFit:"cover",height:"100%",display:"block",objectPosition:`50% ${I?-I+50:50}%`}),src:x})),o.createElement("div",{className:ie.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},o.createElement("div",{className:Wl["tow-line-ellipsis"],style:y?.title},(d=f?.title)!==null&&d!==void 0?d:"Product Name"),o.createElement("div",{className:ie.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},y?.ctaTitle))},(r=(a=f?.bindCta)===null||a===void 0?void 0:a.enTitle)!==null&&r!==void 0?r:"Shop Now")))};var ql=o.memo(Yl);const Xl=Re(ql,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u900F\u660E\u5E95",icon:"",category:"template",type:"Commodity",related:{interactionRender:Gl,bindableProps:[],settingRender:Ge},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},title:{fontSize:12,color:"#fff",textAlign:"left"},ctaTitle:{fontSize:10,color:"#fff",textAlign:"center",width:130,height:20,backgroundColor:"rgba(0,0,0,.5)"}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"rgba(0,0,0,.3)",marginBottom:8}},w:100,h:40,sort:1});var Jl=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];const Kl=t=>{var e,i,n,l,{content:s,style:d,bgImg:a,recData:r,bottom_image:u,ctaTempStyles:c,isExternalLink:v}=t,m=ke(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles","isExternalLink"]);const{sxpParameter:w}=ve(),y=(e=r?.video)===null||e===void 0?void 0:e.bindCta;return o.createElement(wt,Object.assign({isExternalLink:v,rec:r,className:ie.css(Object.assign({alignItems:"center"},d)),style:{display:"flex"}},m),o.createElement("div",{className:ie.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},c?.img))},o.createElement("img",{className:ie.css({width:"100%",objectFit:"cover",height:"100%",display:"block"}),src:(n=(i=y?.icon)!==null&&i!==void 0?i:w?.bottom_image)!==null&&n!==void 0?n:u,alt:""})),o.createElement("div",{className:ie.css(Object.assign({overflow:"hidden",textOverflow:"ellipsis"},c?.ctaTitle))},(l=y?.enTitle)!==null&&l!==void 0?l:"Product Name"))};var Ql=o.memo(Kl);const Zl=Re(Ql,{displayName:"\u9884\u7EA6\u8868\u5355",icon:"",category:"template",type:"Appoint",related:{interactionRender:Jl,settingRender:Ge?.filter(t=>t.type!=="commodityTitle"),bindableProps:[]},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:30,height:30,marginRight:8},ctaTitle:{fontSize:12,color:"#fff",textAlign:"left",width:130,height:20}}},style:{padding:7,width:236,height:44,borderRadius:3,backgroundColor:"rgba(0,0,0,.3)",marginBottom:8}},w:100,h:40,sort:6});var es={"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU"};const ts=t=>{var e,i,n,l,s,{content:d,style:a,bgImg:r,recData:u,bottom_image:c,ctaTempStyles:v,index:m}=t,w=ke(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles","index"]);const{sxpParameter:y,bffEventReport:S}=ve(),{jumpToWeb:I}=Be(),p=(e=u?.video)===null||e===void 0?void 0:e.bindCta,b=(i=u?.video)===null||i===void 0?void 0:i.bindProduct,f=()=>{p?.link&&(I(u,b,p,m),window.location.href=window.getJointUtmLink(p.link))};return o.createElement(wt,Object.assign({index:m,rec:u,className:ie.css(Object.assign({alignItems:"center"},a)),style:{display:"flex"}},w,{onClick:f}),o.createElement("div",{className:ie.css(Object.assign({backgroundColor:"#f2f2f2",overflow:"hidden",flexShrink:0},v?.img))},o.createElement(Ne,{className:ie.css({width:"100%",objectFit:"cover",height:"100%",display:"block"}),src:(l=(n=p?.icon)!==null&&n!==void 0?n:y?.bottom_image)!==null&&l!==void 0?l:c})),o.createElement("div",{className:ie.css({display:"flex",alignItems:"center",width:"100%",overflow:"hidden"})},o.createElement("div",{className:es["tow-line-ellipsis"],style:v?.ctaTitle},(s=p?.enTitle)!==null&&s!==void 0?s:"Product Name")))};var is=o.memo(ts);const ns=Re(is,{displayName:"\u8DF3\u8F6C\u6307\u5F15",icon:"",category:"template",type:"Link",related:{settingRender:Ge?.filter(t=>t.type!=="commodityTitle"),bindableProps:[]},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},ctaTitle:{fontSize:12,color:"#fff",textAlign:"left",width:130,height:20}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"rgba(0,0,0,.3)",marginBottom:8}},w:100,h:40,sort:5});var os=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],ls={"tow-line-ellipsis":"index-module_tow-line-ellipsis__yyHVb"};const ss=t=>{var e,i,n,l,s,d,a,r,{content:u,style:c,bgImg:v,recData:m,bottom_image:w,ctaTempStyles:y,isExternalLink:S,translateY:I=0}=t,p=ke(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles","isExternalLink","translateY"]);const{sxpParameter:b}=ve(),f=(e=m?.video)===null||e===void 0?void 0:e.bindProduct,x=(s=(l=(i=f?.cover)!==null&&i!==void 0?i:(n=f?.homePage)===null||n===void 0?void 0:n[0])!==null&&l!==void 0?l:b?.bottom_image)!==null&&s!==void 0?s:w;return o.createElement(wt,Object.assign({isExternalLink:S,rec:m,className:ie.css(Object.assign({},c)),style:{display:"flex"}},p),o.createElement("div",{className:ie.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},y?.img))},o.createElement(Ne,{className:ie.css({width:"100%",objectFit:"cover",height:"100%",display:"block",objectPosition:`50% ${I?-I+50:50}%`}),src:x})),o.createElement("div",{className:ie.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},o.createElement("div",{className:ls["tow-line-ellipsis"],style:y?.title},(d=f?.title)!==null&&d!==void 0?d:"Product Name"),o.createElement("div",{className:ie.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",borderRadius:"25px",whiteSpace:"nowrap"},y?.ctaTitle))},(r=(a=f?.bindCta)===null||a===void 0?void 0:a.enTitle)!==null&&r!==void 0?r:"Shop Now")))};var as=o.memo(ss);const rs=Re(as,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u767D\u5E95\u5706\u89D2\u6309\u94AE",icon:"",category:"template",type:"CommodityDiro",related:{interactionRender:os,settingRender:Ge,bindableProps:[]},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},title:{fontSize:12,color:"#000",textAlign:"left"},ctaTitle:{fontSize:10,color:"#fff",textAlign:"center",width:80,height:20,backgroundColor:"rgba(0,0,0,1)"}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"#fff",marginBottom:8}},w:100,h:40,sort:2});var ds=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],cs={"tow-line-ellipsis":"index-module_tow-line-ellipsis__I-yCC"};const us=t=>{var e,i,n,l,s,d,a,r,{content:u,style:c,bgImg:v,recData:m,bottom_image:w,ctaTempStyles:y,isExternalLink:S,translateY:I=0}=t,p=ke(t,["content","style","bgImg","recData","bottom_image","ctaTempStyles","isExternalLink","translateY"]);const{sxpParameter:b}=ve(),f=(e=m?.video)===null||e===void 0?void 0:e.bindProduct,x=(s=(l=(i=f?.cover)!==null&&i!==void 0?i:(n=f?.homePage)===null||n===void 0?void 0:n[0])!==null&&l!==void 0?l:b?.bottom_image)!==null&&s!==void 0?s:w;return o.createElement(wt,Object.assign({isExternalLink:S,rec:m,className:ie.css(Object.assign({},c)),style:{display:"flex"}},p),o.createElement("div",{className:ie.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},y?.img))},o.createElement(Ne,{className:ie.css({width:"100%",objectFit:"cover",height:"100%",display:"block",objectPosition:`50% ${I?-I+50:50}%`}),src:x})),o.createElement("div",{className:ie.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",overflow:"hidden"})},o.createElement("div",{className:cs["tow-line-ellipsis"],style:y?.title},(d=f?.title)!==null&&d!==void 0?d:"Product Name"),o.createElement("div",{className:ie.css(Object.assign({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},y?.ctaTitle))},(r=(a=f?.bindCta)===null||a===void 0?void 0:a.enTitle)!==null&&r!==void 0?r:"Shop now")))};var ps=o.memo(us);const vs=Re(ps,{displayName:"\u63A8\u8350\u5355\u5546\u54C1-\u767D\u5E95\u4E0B\u5212\u7EBF\u6309\u94AE",icon:"",category:"template",type:"CommodityDiroNew",related:{interactionRender:ds,bindableProps:[],settingRender:Ge},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:8,width:78,height:78,marginRight:16},title:{fontSize:13,color:"#000",textAlign:"left"},ctaTitle:{textDecoration:"underline",fontSize:14,fontWeight:"bold",color:"#000",textAlign:"left",width:150,height:20}}},style:{borderRadius:4,width:260,height:86,padding:4,backgroundColor:"rgba(255,255,255,0.75)",marginBottom:8}},w:100,h:40,sort:2});var fs=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}];const ms=({children:t,isPadding:e=!0})=>o.createElement(ut,{direction:"horizontal",slidesPerView:"auto",freeMode:!0,mousewheel:!0,modules:[lo,oo,no],style:{padding:e?"0 12px 0 20px":0}},t);var Lt=o.memo(ms);const hs=({src:t,rec:e,item:i,index:n,style:l})=>{const s=o.useRef(null),d=on(s),{ctaEvent:a}=ve();return o.useEffect(()=>{d&&t&&s?.current&&a?.({eventSubject:"ctaExposure",eventDescription:"The cta was shown to the user"},e,i,n)},[d,t,s,e,a,i,n]),o.createElement("div",{ref:s,hidden:!t,className:ie.css({width:"100%",height:"100%"})},o.createElement(Ne,{className:ie.css(Object.assign({width:"100%",objectFit:"cover",height:"100%",display:"block"},l)),src:t}))};var vi=o.memo(hs),gs={"two-line-ellipsis":"index-module_two-line-ellipsis__SFQwJ"};const bs=t=>{var e,i,{content:n,style:l,bgImg:s,recData:d,onClick:a,bottom_image:r,ctaTempStyles:u,isExternalLink:c,index:v,translateY:m=0}=t,w=ke(t,["content","style","bgImg","recData","onClick","bottom_image","ctaTempStyles","isExternalLink","index","translateY"]);const{ctaEvent:y,setPopupDetailData:S,sxpParameter:I}=ve(),{popup:p}=et(),{jumpToWeb:b}=Be(),[f,x]=o.useState((i=(e=d?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),k=xe.throttle(h=>{y?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},d,h,v),S?.(Object.assign(Object.assign({},d),{video:Object.assign(Object.assign({},d?.video),{bindProduct:h}),index:v})),c?h?.link&&(b(d,h,h.bindCta,v),window.location.href=window.getJointUtmLink(h.link)):a?.()},p?.duration);return o.createElement(Lt,{isPadding:!!d},f?.map(h=>{var P,C,g,E,A,T,D;return o.createElement(Ke,Object.assign({hidden:d&&!h?.bindCta,key:h?.itemId,className:ie.css(Object.assign(Object.assign({},l),{display:"flex",flexShrink:0,marginLeft:0,marginRight:"8px"}))},w,{onClick:()=>k(h)}),o.createElement("div",{className:ie.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},u?.img))},o.createElement(vi,{src:(E=(g=(P=h?.cover)!==null&&P!==void 0?P:(C=h?.homePage)===null||C===void 0?void 0:C[0])!==null&&g!==void 0?g:I?.bottom_image)!==null&&E!==void 0?E:r,rec:d,item:h,index:v,style:{objectPosition:`50% ${m?-m+50:50}%`}})),o.createElement("div",{className:ie.css({color:"#000",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},o.createElement("div",{className:gs["two-line-ellipsis"],style:u?.title},(A=h?.title)!==null&&A!==void 0?A:"Product Name"),o.createElement("div",{className:ie.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",borderRadius:"25px",whiteSpace:"nowrap"},u?.ctaTitle))},(D=(T=h?.bindCta)===null||T===void 0?void 0:T.enTitle)!==null&&D!==void 0?D:"Shop Now")))}))};var ys=o.memo(bs);const ws=Re(ys,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u767D\u5E95\u5706\u89D2\u6309\u94AE",icon:"",category:"template",type:"MultiCommodityDiro",related:{interactionRender:fs,bindableProps:[],settingRender:Ge},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},title:{fontSize:12,color:"#000",textAlign:"left"},ctaTitle:{fontSize:10,color:"#fff",textAlign:"center",width:80,height:20,backgroundColor:"rgba(0,0,0,1)"}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"#fff",marginBottom:8}},w:100,h:40,sort:4});var Ss=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],Ts={"two-line-ellipsis":"index-module_two-line-ellipsis__mdzn0"};const xs=t=>{var e,i,{content:n,style:l,bgImg:s,recData:d,onClick:a,bottom_image:r,ctaTempStyles:u,isExternalLink:c,index:v,translateY:m=0}=t,w=ke(t,["content","style","bgImg","recData","onClick","bottom_image","ctaTempStyles","isExternalLink","index","translateY"]);const{sxpParameter:y}=ve(),{ctaEvent:S,setPopupDetailData:I}=ve(),{popup:p}=et(),[b,f]=o.useState((i=(e=d?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),{jumpToWeb:x}=Be(),k=xe.throttle(h=>{S?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},d,h,v),I?.(Object.assign(Object.assign({},d),{video:Object.assign(Object.assign({},d?.video),{bindProduct:h}),index:v})),c?h?.link&&(x(d,h,h.bindCta,v),window.location.href=window.getJointUtmLink(h.link)):a?.()},p?.duration);return o.createElement(Lt,{isPadding:!!d},b?.map(h=>{var P,C,g,E,A,T,D;return o.createElement(Ke,Object.assign({hidden:d&&!h?.bindCta,key:h.itemId,className:ie.css(Object.assign(Object.assign({},l),{display:"flex",flexShrink:0,marginLeft:0,marginRight:"8px"}))},w,{onClick:()=>k(h)}),o.createElement("div",{className:ie.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},u?.img))},o.createElement(vi,{src:(E=(g=(P=h?.cover)!==null&&P!==void 0?P:(C=h?.homePage)===null||C===void 0?void 0:C[0])!==null&&g!==void 0?g:y?.bottom_image)!==null&&E!==void 0?E:r,rec:d,item:h,index:v,style:{objectPosition:`50% ${m?-m+50:50}%`}})),o.createElement("div",{className:ie.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%",overflow:"hidden"})},o.createElement("div",{className:Ts["two-line-ellipsis"],style:u?.title},(A=h?.title)!==null&&A!==void 0?A:"Product Name"),o.createElement("div",{className:ie.css(Object.assign({padding:"2px 7px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},u?.ctaTitle))},(D=(T=h?.bindCta)===null||T===void 0?void 0:T.enTitle)!==null&&D!==void 0?D:"Shop Now")))}))};var Es=o.memo(xs);const Cs=Re(Es,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u900F\u660E\u5E95",icon:"",category:"template",type:"MultiCommodity",related:{interactionRender:Ss,settingRender:Ge,bindableProps:[]},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:3,width:60,height:60,marginRight:8},title:{fontSize:12,color:"#fff",textAlign:"left"},ctaTitle:{fontSize:10,color:"#fff",textAlign:"center",width:130,height:20,backgroundColor:"rgba(0,0,0,.5)"}}},style:{padding:7,width:236,height:74,borderRadius:3,backgroundColor:"rgba(0,0,0,.3)",marginBottom:8}},w:100,h:40,sort:3});var Is=[{title:"\u70B9\u51FB\u4E8B\u4EF6",child:[{type:"link",name:"onClick"}]}],_s={"tow-line-ellipsis":"index-module_tow-line-ellipsis__fselR"};const ks=t=>{var e,i,{content:n,style:l,bgImg:s,recData:d,onClick:a,bottom_image:r,ctaTempStyles:u,isExternalLink:c,index:v,translateY:m=0}=t,w=ke(t,["content","style","bgImg","recData","onClick","bottom_image","ctaTempStyles","isExternalLink","index","translateY"]);const{ctaEvent:y,setPopupDetailData:S,sxpParameter:I}=ve(),{popup:p}=et(),{jumpToWeb:b}=Be(),[f,x]=o.useState((i=(e=d?.video)===null||e===void 0?void 0:e.bindProducts)!==null&&i!==void 0?i:[1,2]),k=xe.throttle(h=>{y?.({eventSubject:"clickCta",eventDescription:"User clicked the CTA"},d,h,v),S?.(Object.assign(Object.assign({},d),{video:Object.assign(Object.assign({},d?.video),{bindProduct:h}),index:v})),c?h?.link&&(b(d,h,h.bindCta,v),window.location.href=window.getJointUtmLink(h.link)):a?.()},p?.duration);return o.createElement(Lt,{isPadding:!!d},f?.map(h=>{var P,C,g,E,A,T,D;return o.createElement(Ke,Object.assign({hidden:d&&!h?.bindCta,key:h?.itemId,className:ie.css(Object.assign(Object.assign({},l),{display:"flex",flexShrink:0,marginLeft:0,marginRight:"8px"}))},w,{onClick:()=>k(h)}),o.createElement("div",{className:ie.css(Object.assign({overflow:"hidden",flexShrink:0,backgroundColor:"#f2f2f2"},u?.img))},o.createElement(vi,{src:(E=(g=(P=h?.cover)!==null&&P!==void 0?P:(C=h?.homePage)===null||C===void 0?void 0:C[0])!==null&&g!==void 0?g:I?.bottom_image)!==null&&E!==void 0?E:r,rec:d,item:h,index:v,style:{objectPosition:`50% ${m?-m+50:50}%`}})),o.createElement("div",{className:ie.css({color:"#fff",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",overflow:"hidden",lineHeight:"20px"})},o.createElement("div",{className:_s["tow-line-ellipsis"],style:u?.title},(A=h?.title)!==null&&A!==void 0?A:"Product Name"),o.createElement("div",{className:ie.css(Object.assign({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},u?.ctaTitle))},(D=(T=h?.bindCta)===null||T===void 0?void 0:T.enTitle)!==null&&D!==void 0?D:"Shop now")))}))};var Ds=o.memo(ks);const As=Re(Ds,{displayName:"\u63A8\u8350\u591A\u5546\u54C1-\u767D\u5E95\u4E0B\u5212\u7EBF\u6309\u94AE",icon:"",category:"template",type:"MultiCommodityDiroNew",related:{interactionRender:Is,bindableProps:[],settingRender:Ge},defaulSetting:{props:{ctaTempStyles:{img:{borderRadius:8,width:78,height:78,marginRight:16},title:{fontSize:12,color:"#000",textAlign:"left"},ctaTitle:{textDecoration:"underline",fontSize:12,fontWeight:"bold",color:"#000",textAlign:"left",width:150,height:20}}},style:{borderRadius:4,width:260,height:86,padding:4,backgroundColor:"rgba(255,255,255,0.75)",marginBottom:8}},w:100,h:40,sort:4});var fi,mi,Ps=[{title:"Banner",child:[{type:"Switch",label:"Banner\u56FE\u5F00\u5173",name:["props","showBanner"]}]},{title:"\u5361\u7247\u6837\u5F0F",child:[{type:"Number",label:"\u4E0A\u4E0B\u8FB9\u8DDD",name:["props","space"],addonAfter:"px"},{type:"Switch",label:"\u56FA\u5B9A\u5BBD\u9AD8",name:["props","openFixedSize"],initialValue:!0}]},{title:"\u6587\u672C\u8BBE\u7F6E",child:[{name:["props","textStyles"],type:"SelectLinkage",child:[{label:"\u5B57\u6BB5",type:"Select",options:[{label:"hashtag\u6807\u9898",value:"hashTagTitle"},{label:"hashtag\u63CF\u8FF0",value:"hashTagDesc"},{label:"hashtag\u63CF\u8FF0\u8D85\u94FE",value:"hashTagLink"},{label:"\u6807\u9898",value:"title"},{label:"\u4EF7\u683C",value:"price"}],name:["props","textStyles","field"],initialValue:"title"},{type:"Group",label:"\u6807\u9898\u5B57\u4F53",child:[{type:"Color",name:["color"]},{type:"Select",options:ue,name:["fontFamily"],initialValue:(fi=ue?.[0])===null||fi===void 0?void 0:fi.value},{type:"Number",addonAfter:"px",name:["fontSize"]}]},{label:"\u6807\u9898\u6837\u5F0F",type:"TextStyle"},{label:"\u6807\u9898\u5BF9\u9F50",type:"TextAlign"}]}]},{title:"\u6309\u94AE\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonStyle","backgroundColor"],initialValue:"#000"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonStyle","height"],addonAfter:"H"}]},{type:"Group",label:"\u5706\u89D2",child:[{type:"Slider",name:["props","buttonStyle","borderRadius"],max:100},{type:"Number",name:["props","buttonStyle","borderRadius"],addonAfter:"px",max:100}]},{type:"TextPadding",name:["props","buttonBgStyle"]},{type:"Group",label:"\u5B57\u4F53",child:[{type:"Color",name:["props","buttonStyle","color"],initialValue:"#fff"},{type:"Select",name:["props","buttonStyle","fontFamily"],options:ue,initialValue:(mi=ue?.[0])===null||mi===void 0?void 0:mi.value},{type:"Number",name:["props","buttonStyle","fontSize"],addonAfter:"px"}]},{type:"TextStyle",name:["props","buttonStyle"]},{type:"TextAlign",name:["props","buttonStyle"]}]},{title:"\u6309\u94AE\u80CC\u666F\u6837\u5F0F",child:[{type:"Color",label:"\u80CC\u666F\u8272",name:["props","buttonBgStyle","backgroundColor"],initialValue:"#fff"},{type:"Group",label:"\u5C3A\u5BF8",child:[{type:"Number",name:["props","buttonBgStyle","height"],addonAfter:"H"}]}]}];const Os=({icon:t,styles:e,textStyle:i,onClose:n})=>{var l;const{waterFallData:s,setOpenHashtag:d}=ve();return o.createElement("div",{className:"clc-sxp-nav",style:e},o.createElement("img",{className:"clc-sxp-nav-left",src:t,alt:"",onClick:n}),o.createElement("div",{className:"clc-sxp-nav-title",style:i},`#${(l=s?.hashTag)!==null&&l!==void 0?l:"\u6807\u9898"}`))};var ln=o.memo(Os),Ms=null,Ls="3d989325-e7d6-4a74-8a97-98febdf5b567",js=null,Ns=null,Bs={info:"The dior toujours bag is distinguished by a casual and practical design. Fully embroidered with black textured tweed, it is accented by a blend of threads displaying the cannage motif.",link:"www.baidu.com",linkTitle:null,linkType:"WEB"},Rs=[{position:"0",isCollected:null,video:{itemId:"VIDEOY2BMu1710323630175",title:"A symbol of excellence, the Dior Toujours bag is reinterpreted in an unprecedented version. For the Dior spring-summer 2024 ready-to-wear collection, this exceptional accessory, dreamed up by Maria Grazia Chiuri, is dressed in irresistible crinkled leather featuring the iconic macrocannage motif. A new emblem of the virtuoso, perpetually reinvented savoir-faire of the Dior Ateliers.",tags:["Dior Toujours Bag","Casual","Leather Strap","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOY2BMu1710323630175:default:3::branch:Handbags:0",bindCta:null,bindProduct:{itemId:"M2821SNIOM900",title:"Medium Dior Toujours Bag Black Macrocannage Crinkled Leather",tags:["Medium","Black","Women","Handbags","Bucket Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M2821SNIOM900:default:3::branch:Handbags:0",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:0",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsy6AN0OWw3rj8Luw3RTSP9n2kDLq1710497237677.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fszTc3uEUrtppdN9QVVU2XBnaaaBY1710497237986.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKbBMTRa0tTTX661wu7DzLw9OP0r1710497237980.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsOYHlYCwgzalxzmIJcsZmIsJ2L3g1710497237145.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKJqNVm1ZBlrgZ8XLC0YAaO6ws2F1710497237650.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsm2VoVancBQ20nDHceESUPNLyrUy1710497238312.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs2B5YYmv8OztP3d9rlM2a9KmYswl1710497237339.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"The dior toujours bag is distinguished by a casual and practical design. Crafted in black crinkled calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize the essentials. Its leather strap closure keeps items secure while the d of the cd lock closure twists to adjust the sides and enhance the bag's silhouette.",price:4400,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fswbY3wT0hCmrYkrqDzFKnHb3NMux1710323481052.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fs3Ifqv7fk2Tn9nPtwOTO2YjxAuRO1710323470472.mp4",imgUrls:null,hashTags:["Dior Toujours Bag","Casual","Leather Strap","Handbags"]},product:null,cta:null},{position:"1",isCollected:null,video:{itemId:"VIDEO6JCOb1710323364018",title:"Maria grazia chiuri's hallmark dior book tote offers an original take on elegance. Unveiled at the cruise 2024 fashion show, the refined style showcases the iconic blue dior oblique embroidery and calfskin. Designed to keep all the daily essentials organized, the interior is equipped with a zipped pocket and patch pockets.",tags:["Handbags","Manufacturing Craftsmanship","Dior Book Tote"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEO6JCOb1710323364018:default:3::branch:Handbags:1",bindCta:null,bindProduct:{itemId:"M1296ZRIWM828",title:"Medium Dior Book Tote",tags:["Maria Grazia Chiuri","Hand","Shoulder","Handbags","Blue","Women"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1296ZRIWM828:default:3::branch:Handbags:1",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:1",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fs69g46K9wPCwi5VRAP2QAgRHM0Pc1709696901624.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsAIliGV0ZJP8MNa8DECYtwsK4ker1709696900761.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsMJ4JfZ0Vhzq6H71NdIPg6YozbIz1709696897845.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsWXI06zGOmACXn9wD3EegRLkB7dg1709696911033.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",price:3350,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsAHlkdbqYj5F84o2faRzU1E3AvG11710323339209.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fs7KIGk2IB0MsoDL1ANWB1Mb2hqu41710323314146.mp4",imgUrls:null,hashTags:["Handbags","Dior Book Tote"]},product:null,cta:null},{position:"2",isCollected:null,video:null,product:{itemId:"M2820OTKVM911",title:"Large Dior Toujours Bag Black Cannage Tweed",tags:["Black","Women","Handbags","Bucket Bag","Dior Toujours Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M2820OTKVM911:default:3::branch:Handbags:2",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:2",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fsJTjyFchOFEJSTRYxXvL2XPU1dP61710238469418.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fstdFA1dFT55QjtQPU2qHNENo5peF1710836061716.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fs9xf8AlIApbHezVL3BsxjUGIrN231710836061181.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fs9iZ20MjLAPkXmFKvD8HzhLaBJ671710238470272.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fsSSodev3wicDfE1DYNWPQVeRjErt1710238464035.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fs3YAOuN6Pd9NFvH1Rdooj6eLI18S1710238465296.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240312/fsBwIEp6OzI49isvHgiKD0cPSFtrD1710238459007.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M2820OTKV_M911-large-dior-toujours-bag",linkTitle:null,linkType:"WEB",info:"The dior toujours bag is distinguished by a casual and practical design. Fully embroidered with black textured tweed, it is accented by a blend of threads displaying the cannage motif. It showcases a spacious interior compartment with a matching pouch to organize the essentials, while a leather strap closure keeps items secure and the d of the cd lock closure twists to adjust the sides and enhance the bag's silhouette.",price:4200,currency:"USD-$"},cta:null},{position:"3",isCollected:null,video:{itemId:"VIDEOOL1qU1709616182569",title:"Maria grazia chiuri brings a fresh update to the iconic saddle bag. Crafted in black grained calfskin, the legendary design features a saddle flap with a d stirrup clasp on a magnetic strap, as well as an antique gold-finish metal cd signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the saddle bag may be carried by hand, worn over the shoulder or crossbody.. Saddle bag with strap Black grained calfskin",tags:["Maria Grazia Chiuri","Saddle Bags","Removable Shoulder Strap","Shoulder","Crossbody","Cross-body & Shoulder Bags","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOOL1qU1709616182569:default:3::branch:Handbags:3",bindCta:null,bindProduct:{itemId:"M0455CBAAM900",title:"Saddle Bag with Strap",tags:["Saddle Bags","Handbags","Maria Grazia Chiuri"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0455CBAAM900:default:3::branch:Handbags:3",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:3",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsiwfgnCrVBGcGPh6gaFsvbYBIpxX1709285334896.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsXpilTgUS4u4oFWr0hUew8DQITi11709285353202.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsWxJm6YIeRYmDtDoB5WtYMjRX8bm1709285366208.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsj69PxKh1SAZ6p0902FbBT0vg2at1709285373714.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fs78nKueByU2cNulReOw8gJ1ZsieF1709285412981.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsmAEriTIohZAUMUE6gUCWvXwbbRE1709285429332.png"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0455CBAA_M900-saddle-bag-with-strap-black-grained-calfskin?objectID=M0455CBAA_M900&query=M0455CBAAM900&queryID=c171c63e69d6d109953e2de631718496",linkTitle:null,linkType:"WEB",info:"Maria Grazia Chiuri brings a fresh update to the iconic Saddle bag. Crafted in black grained calfskin, the legendary design features a Saddle flap with a D stirrup clasp on a magnetic strap, as well as an antique gold-finish metal CD signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the Saddle bag may be carried by hand, worn over the shoulder or crossbody.",price:4400,currency:"USD-$"},bindProducts:[],cover:null,url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsvbBN3IRfwctVIhdqgq3doWmhbb21710399187965.jpg"],hashTags:["Maria Grazia Chiuri","Saddle Bags","Handbags"]},product:null,cta:null},{position:"4",isCollected:null,video:null,product:{itemId:"S5909CTZQM928",title:"Saddle Shoulder Pouch Blue Dior Oblique Jacquard ",tags:["Saddle Bags","Handbags","Small-Leather-Goods","Small","Mini Bags"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:S5909CTZQM928:default:3::branch:Handbags:4",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:4",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fs34CpwKJOyjEDgoHypoLYakF8oR31710316280669.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsLOSOEf9pmz7wKnFaifWNw3TZ7Gy1710316287874.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsWHmVcrzHKKj6EfhfnQkxYIOt20a1710316295683.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fslyBNMyQwjpjY4EKzyrqzTMlOGRQ1710316313161.png"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/S5909CTZQ",linkTitle:null,linkType:"WEB",info:null,price:4900,currency:"USD-$"},cta:null},{position:"5",isCollected:null,video:{itemId:"VIDEOrZguC1710324513737",title:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",tags:["Handbags","Dior Book Tote"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOrZguC1710324513737:default:3::branch:Handbags:5",bindCta:null,bindProduct:{itemId:"M1296ZRIWM828",title:"Medium Dior Book Tote",tags:["Maria Grazia Chiuri","Hand","Shoulder","Handbags","Blue","Women"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1296ZRIWM828:default:3::branch:Handbags:5",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:5",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fs69g46K9wPCwi5VRAP2QAgRHM0Pc1709696901624.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsAIliGV0ZJP8MNa8DECYtwsK4ker1709696900761.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsMJ4JfZ0Vhzq6H71NdIPg6YozbIz1709696897845.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsWXI06zGOmACXn9wD3EegRLkB7dg1709696911033.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",price:3350,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fstXNWStczbY8HbIKEqMwfCkv5CI51710324494939.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsOqu34FxaJTdascLcj6DHoYIIAs01710324439851.mp4",imgUrls:null,hashTags:["Handbags","Dior Book Tote"]},product:null,cta:null},{position:"6",isCollected:null,video:null,product:{itemId:"M1296ZRIWM828",title:"Medium Dior Book Tote",tags:["Maria Grazia Chiuri","Hand","Shoulder","Handbags","Blue","Women"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1296ZRIWM828:default:3::branch:Handbags:6",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:6",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fs69g46K9wPCwi5VRAP2QAgRHM0Pc1709696901624.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsAIliGV0ZJP8MNa8DECYtwsK4ker1709696900761.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsMJ4JfZ0Vhzq6H71NdIPg6YozbIz1709696897845.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsWXI06zGOmACXn9wD3EegRLkB7dg1709696911033.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",price:3350,currency:"USD-$"},cta:null},{position:"7",isCollected:null,video:{itemId:"VIDEOEtr621710300614047",title:"Unveiled at the spring-summer 2023 fashion show, the dior toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the d of the cd lock closure twists to adjust the sides and enhance the bag's silhouette. T",tags:["Handbags","Leather Strap","Spring-Summer 2024 Fashion Show","Backstage","Dior Toujours Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOEtr621710300614047:default:3::branch:Handbags:7",bindCta:null,bindProduct:null,bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fshkOldZwfsSqTgvxHJzNBwS66ySc1710300910103.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsryDXTtPWXjYFWoSUEBUi48RHZCh1710398617300.jpg"],hashTags:["Backstage","Handbags","Spring-Summer 2024 Fashion Show","Dior Toujours Bag"]},product:null,cta:null},{position:"8",isCollected:null,video:{itemId:"VIDEOO8Zjt1709616802987",title:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",tags:["Blue","Medium","Shoulder","Hand","Handbags","Dior Book Tote"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOO8Zjt1709616802987:default:3::branch:Handbags:8",bindCta:null,bindProduct:{itemId:"M1296ZRIWM828",title:"Medium Dior Book Tote",tags:["Maria Grazia Chiuri","Hand","Shoulder","Handbags","Blue","Women"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1296ZRIWM828:default:3::branch:Handbags:8",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:8",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fs69g46K9wPCwi5VRAP2QAgRHM0Pc1709696901624.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsAIliGV0ZJP8MNa8DECYtwsK4ker1709696900761.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsMJ4JfZ0Vhzq6H71NdIPg6YozbIz1709696897845.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240306/fsWXI06zGOmACXn9wD3EegRLkB7dg1709696911033.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"Introduced by Maria Grazia Chiuri, Creative Director of Christian Dior, the Dior Book Tote has become a staple of the Dior aesthetic. Designed to hold all the daily essentials, the style is fully embroidered with the ecru and blue Dior Oblique motif. Adorned with the Christian Dior Paris signature on the front, the medium tote exemplifies the House's signature savoir-faire and may be carried by hand or worn over the shoulder.",price:3350,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fsmS72zfInwmblYTnuYzRuZKAOlhr1709616742898.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsU2gDw28XFd1nOAqlUjb1r1h6mpT1710400349981.jpg"],hashTags:["Dior Book Tote","Handbags"]},product:null,cta:null},{position:"9",isCollected:null,video:null,product:{itemId:"M2821SNIOM900",title:"Medium Dior Toujours Bag Black Macrocannage Crinkled Leather",tags:["Medium","Black","Women","Handbags","Bucket Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M2821SNIOM900:default:3::branch:Handbags:9",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:9",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsy6AN0OWw3rj8Luw3RTSP9n2kDLq1710497237677.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fszTc3uEUrtppdN9QVVU2XBnaaaBY1710497237986.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKbBMTRa0tTTX661wu7DzLw9OP0r1710497237980.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsOYHlYCwgzalxzmIJcsZmIsJ2L3g1710497237145.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKJqNVm1ZBlrgZ8XLC0YAaO6ws2F1710497237650.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsm2VoVancBQ20nDHceESUPNLyrUy1710497238312.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs2B5YYmv8OztP3d9rlM2a9KmYswl1710497237339.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"The dior toujours bag is distinguished by a casual and practical design. Crafted in black crinkled calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize the essentials. Its leather strap closure keeps items secure while the d of the cd lock closure twists to adjust the sides and enhance the bag's silhouette.",price:4400,currency:"USD-$"},cta:null},{position:"10",isCollected:null,video:{itemId:"VIDEOesZlV1710323980494",title:"The lady dior bag embodies dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the house's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic cannage topstitching, while the ultra-matte metal d.i.o.r. Charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium lady dior bag can be carried by hand or worn crossbody.",tags:["Lady Dior","Removable Shoulder Strap","Medium","Handbags","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOesZlV1710323980494:default:3::branch:Handbags:10",bindCta:null,bindProduct:{itemId:"M0565SDBRM900",title:"Medium Lady Dior Bag",tags:["Women","Black","Handbags","Hand","Lady Dior","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565SDBRM900:default:3::branch:Handbags:10",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:10",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsnyiCm9oirbXLqmqY7231O8O2Yhb1710498970982.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fskwIRRKCtuw9cb9btuubt2D5bXfB1710498970676.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsqXFTCyhxspeYCD3uo4UiuN5vQ7w1710498970671.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8rDRSKJmWUNI42MjrMWVlI0D9Fz1710498970729.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsca9Cjqo3WMJVU0OL0OjQo8xOoMx1710498972076.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsjl1bxi56X0QrKwfvl8YocBVJ2N81710498971352.jpg"],collection:null,link:"https://www.dior.com/en_us/fashion/products/M0565SDBR_M900-medium-lady-dior-bag-black-patent-to-matte-gradient-cannage-lambskin?objectID=M0565SDBR_M900&query=M0565SDBRM900&queryID=14cc52b35774a9a42e78fd9ba199860e",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the House's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic Cannage topstitching, while the ultra-matte metal D.I.O.R. charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or worn crossbody.",price:7100,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsiwMQ88zO5Xdnl939krMyBMbz7Js1710323763013.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsxyS8nr7nn0LMe7EqOt3ETXqLu7d1710323753073.mp4",imgUrls:null,hashTags:["Lady Dior","Handbags"]},product:null,cta:null},{position:"11",isCollected:null,video:{itemId:"VIDEOdvsXq1710324342942",title:"New for summer 2024, the lady d-sire my abcdior bag draws inspiration from the signature elegance of the lady dior design. Reimagined with a casual style for an urban look, the lightweight black grained bull leather feels soft to the touch yet offers excellent durability. The medium bag is embellished with pale gold-finish metal d.i.o.r. Charms that highlight the silhouette.",tags:["Summer 2024","Lady Dior","Casual","Lightweight","Medium","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOdvsXq1710324342942:default:3::branch:Handbags:11",bindCta:null,bindProduct:{itemId:"M1151OTRLM900",title:"Medium Lady D-Sire My ABCDior Bag",tags:["Handbags","Summer 2024","Lady Dior","Black","Medium","Women","Lady D-Sire"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M1151OTRLM900:default:3::branch:Handbags:11",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:11",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsBvqPYhaE9Ct1JzBd4gm8g9YOiAZ1710499102900.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs6sf9nB7WpJuLNIZT3c8O8Fmf3Gu1710499102936.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsSxYBxyVx2yRrUgEaYmarWhlUbk41710499102531.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsyhykK1B7W9613MAfipfIuE1foim1710499102345.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs6FXJdaXib8lP0NPloe1XQGpoiKc1710499103268.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsCRx7T4ejNvgKNensH6LT4dPt6251710499103615.jpg"],collection:null,link:"https://www.dior.com/en_us/fashion/products/M1151OTRL_M900-medium-lady-d-sire-my-abcdior-bag-black-bull-leather?objectID=M1151OTRL_M900&query=M1151OTRLM900&queryID=e82938220687c425c75277a7c526b932",linkTitle:null,linkType:"WEB",info:"New for Summer 2024, the Lady D-Sire My ABCDior bag draws inspiration from the signature elegance of the Lady Dior design. Reimagined with a casual style for an urban look, the lightweight black grained bull leather feels soft to the touch yet offers excellent durability. The medium bag is embellished with pale gold-finish metal D.I.O.R. charms that highlight the silhouette. Showcasing a shoulder strap that can be personalized by adding symbolic badges, the unique bag can be carried by hand or w",price:6100,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsOsdUSXr57U5Twhhkv17th3yHqBJ1710324292456.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsZyr3slVtlsParX6D0DqsM0QEx8d1710324283147.mp4",imgUrls:null,hashTags:["Summer 2024","Lady Dior","Handbags"]},product:null,cta:null},{position:"12",isCollected:null,video:{itemId:"VIDEOy76Fr1710324746846",title:"Maria grazia chiuri brings a fresh update to the iconic saddle bag. Crafted in black grained calfskin, the legendary design features a saddle flap with a d stirrup clasp on a magnetic strap, as well as an antique gold-finish metal cd signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the saddle bag may be carried by hand, worn over the shoulder or crossbody.. Saddle bag with strap Black grained calfskin",tags:["Maria Grazia Chiuri","Saddle Bags","Removable Shoulder Strap","Hand","Shoulder","Crossbody","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOy76Fr1710324746846:default:3::branch:Handbags:12",bindCta:null,bindProduct:{itemId:"M0455CBAAM900",title:"Saddle Bag with Strap",tags:["Saddle Bags","Handbags","Maria Grazia Chiuri"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0455CBAAM900:default:3::branch:Handbags:12",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:12",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsiwfgnCrVBGcGPh6gaFsvbYBIpxX1709285334896.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsXpilTgUS4u4oFWr0hUew8DQITi11709285353202.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsWxJm6YIeRYmDtDoB5WtYMjRX8bm1709285366208.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsj69PxKh1SAZ6p0902FbBT0vg2at1709285373714.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fs78nKueByU2cNulReOw8gJ1ZsieF1709285412981.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsmAEriTIohZAUMUE6gUCWvXwbbRE1709285429332.png"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0455CBAA_M900-saddle-bag-with-strap-black-grained-calfskin?objectID=M0455CBAA_M900&query=M0455CBAAM900&queryID=c171c63e69d6d109953e2de631718496",linkTitle:null,linkType:"WEB",info:"Maria Grazia Chiuri brings a fresh update to the iconic Saddle bag. Crafted in black grained calfskin, the legendary design features a Saddle flap with a D stirrup clasp on a magnetic strap, as well as an antique gold-finish metal CD signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the Saddle bag may be carried by hand, worn over the shoulder or crossbody.",price:4400,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsqwogfFahvNml7vmATxwfKLcNlh91710324602536.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsVRd4z4V8UScNc7Wc96xv4xDVByb1710324589932.mp4",imgUrls:null,hashTags:["Maria Grazia Chiuri","Saddle Bags","Handbags"]},product:null,cta:null},{position:"13",isCollected:null,video:{itemId:"VIDEOvqhF71709609258469",title:"The lady dior bag embodies dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the house's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic cannage topstitching, while the ultra-matte metal d.i.o.r. Charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium lady dior bag can be carried by hand or worn crossbody.",tags:["Thin","Removable Shoulder Strap","Medium","Lady Dior","Crossbody","Handbags","Cross-body & Shoulder Bags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOvqhF71709609258469:default:3::branch:Handbags:13",bindCta:null,bindProduct:{itemId:"M0565SDBRM900",title:"Medium Lady Dior Bag",tags:["Women","Black","Handbags","Hand","Lady Dior","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565SDBRM900:default:3::branch:Handbags:13",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:13",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsnyiCm9oirbXLqmqY7231O8O2Yhb1710498970982.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fskwIRRKCtuw9cb9btuubt2D5bXfB1710498970676.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsqXFTCyhxspeYCD3uo4UiuN5vQ7w1710498970671.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8rDRSKJmWUNI42MjrMWVlI0D9Fz1710498970729.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsca9Cjqo3WMJVU0OL0OjQo8xOoMx1710498972076.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsjl1bxi56X0QrKwfvl8YocBVJ2N81710498971352.jpg"],collection:null,link:"https://www.dior.com/en_us/fashion/products/M0565SDBR_M900-medium-lady-dior-bag-black-patent-to-matte-gradient-cannage-lambskin?objectID=M0565SDBR_M900&query=M0565SDBRM900&queryID=14cc52b35774a9a42e78fd9ba199860e",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the House's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic Cannage topstitching, while the ultra-matte metal D.I.O.R. charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or worn crossbody.",price:7100,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fsHmNyOcNdgB9Y8aIFYWCHlEZVl4x1709608981919.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fslhMX6mwCM4i5XFY6dpcMZdPocYv1710398865153.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsJQCe9rZmsEjuIUpdck9Hs2gpNU81710398856427.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsnHUJufSHptF88bNsyUGmSSKYH4A1710398855734.jpg"],hashTags:["Lady Dior","Handbags"]},product:null,cta:null},{position:"14",isCollected:null,video:null,product:{itemId:"M0455CBAAM900",title:"Saddle Bag with Strap",tags:["Saddle Bags","Handbags","Maria Grazia Chiuri"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0455CBAAM900:default:3::branch:Handbags:14",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:14",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsiwfgnCrVBGcGPh6gaFsvbYBIpxX1709285334896.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsXpilTgUS4u4oFWr0hUew8DQITi11709285353202.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsWxJm6YIeRYmDtDoB5WtYMjRX8bm1709285366208.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsj69PxKh1SAZ6p0902FbBT0vg2at1709285373714.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fs78nKueByU2cNulReOw8gJ1ZsieF1709285412981.png","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240301/fsmAEriTIohZAUMUE6gUCWvXwbbRE1709285429332.png"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0455CBAA_M900-saddle-bag-with-strap-black-grained-calfskin?objectID=M0455CBAA_M900&query=M0455CBAAM900&queryID=c171c63e69d6d109953e2de631718496",linkTitle:null,linkType:"WEB",info:"Maria Grazia Chiuri brings a fresh update to the iconic Saddle bag. Crafted in black grained calfskin, the legendary design features a Saddle flap with a D stirrup clasp on a magnetic strap, as well as an antique gold-finish metal CD signature on either side of the strap. Equipped with a thin, adjustable and removable shoulder strap, the Saddle bag may be carried by hand, worn over the shoulder or crossbody.",price:4400,currency:"USD-$"},cta:null},{position:"15",isCollected:null,video:{itemId:"VIDEO693hq1709628690318",title:"New for the summer 2024 season, the dior caro top handle camera bag is a sophisticated and practical design. Crafted in black calfskin, the small model is elevated by the originality of the macrocannage stitching's quilted effect. The bag features a zip closure and an antique gold-tone metal cd signature.",tags:["Ready-To-Wear","Handbags","Signature Hardware Design","Monogram/Logo Print","Calfskin Leather","Summer 2024","Black"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEO693hq1709628690318:default:3::branch:Handbags:15",bindCta:null,bindProduct:{itemId:"M3352UBHMM900",title:"Small Dior Caro Top Handle Camera Bag Black Macrocannage Calfskin ",tags:["Summer 2024","Black","Women","Handbags","Dior Caro"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M3352UBHMM900:default:3::branch:Handbags:15",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:15",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsx3wufMP9P6ovvCrXL58eVVA61gI1710499528917.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs82a414vXXhbgMXsw3Zm8TWyDMvI1710499528543.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsJaZoFhur3jfMEciQdk5GMV8O2un1710499528346.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fstO8CRKfBzpJUmAMyCDHDo23ji9N1710499528346.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsagaUiox7KECRhbPn6MScg3s4Nwd1710499528602.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsBsyFADiYBLWHaAIQfNRsgweVOWj1710499529947.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsqJEwfvOLpXQ6nQt76o92XdLwzs11710499529939.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M3352UBHM_M900",linkTitle:null,linkType:"WEB",info:"New for the Summer 2024 season, the Dior Caro Top Handle Camera bag is a sophisticated and practical design. Crafted in black calfskin, the small model is elevated by the originality of the Macrocannage stitching's quilted effect. The bag features a zip closure and an antique gold-tone metal CD signature. ",price:3350,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fsZhMDVzP6kuh9Qt86c11whAMglMU1709628656988.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsWrEKA6oRWUmOY14D1POTJjgiks51710401973577.jpg"],hashTags:["Ready-To-Wear"]},product:null,cta:null},{position:"16",isCollected:null,video:{itemId:"VIDEO2rUuG1709617832960",title:"The dior toujours bag is distinguished by a casual and practical design. Crafted in black crinkled calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize the essentials. Its leather strap closure keeps items secure while the d of the cd lock closure twists to adjust the sides and enhance the bag's silhouette.",tags:["Dior Toujours Bag","Casual","Leather Strap","Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEO2rUuG1709617832960:default:3::branch:Handbags:16",bindCta:null,bindProduct:{itemId:"M2821SNIOM900",title:"Medium Dior Toujours Bag Black Macrocannage Crinkled Leather",tags:["Medium","Black","Women","Handbags","Bucket Bag"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M2821SNIOM900:default:3::branch:Handbags:16",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:16",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsy6AN0OWw3rj8Luw3RTSP9n2kDLq1710497237677.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fszTc3uEUrtppdN9QVVU2XBnaaaBY1710497237986.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKbBMTRa0tTTX661wu7DzLw9OP0r1710497237980.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsOYHlYCwgzalxzmIJcsZmIsJ2L3g1710497237145.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsKJqNVm1ZBlrgZ8XLC0YAaO6ws2F1710497237650.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsm2VoVancBQ20nDHceESUPNLyrUy1710497238312.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs2B5YYmv8OztP3d9rlM2a9KmYswl1710497237339.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M1296ZRIW_M828-medium-dior-book-tote-ecru-and-blue-dior-oblique-embroidery-36-x-27.5-x-16.5-cm",linkTitle:null,linkType:"WEB",info:"The dior toujours bag is distinguished by a casual and practical design. Crafted in black crinkled calfskin with macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize the essentials. Its leather strap closure keeps items secure while the d of the cd lock closure twists to adjust the sides and enhance the bag's silhouette.",price:4400,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fs0BUtn8TYp4l8gWsg5WD9Ht8AP7R1709617796077.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsmecPfhI3OtZwJmKAXLv8scBSSdK1710399333565.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsfsWBLxbC36B7Pm7Ae1uL98EmoaH1710399333017.jpg"],hashTags:["Handbags","Dior Toujours Bag"]},product:null,cta:null},{position:"17",isCollected:null,video:{itemId:"VIDEOGZGZI1709629679782",title:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless white and navy blue calfskin style offers a new take on the iconic House motif with this season's signature Toile de Jouy Soleil, layering suns and crescent moons into a floral design representing the four seasons. A",tags:["Handbags"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOGZGZI1709629679782:default:3::branch:Handbags:17",bindCta:null,bindProduct:{itemId:"M0565OZEDM928",title:"Medium Lady Dior Bag",tags:["Lady Dior","Medium","Handbags","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565OZEDM928:default:3::branch:Handbags:17",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:17",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsbVwOx4grEmqCNmvOnKpIS0vTPPc1710499656033.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsJrpY9R8uGenvzM7NnzI4lPMCF8g1710836215790.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsYQG9gipUNt6UbzFPXTwLTNgj5BF1710836214937.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsqPEXjWl7l3wPAxJIZbnnhZPXDCw1710836216838.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsNHlPmAsNYPsGDJ5w0G213wJkwFf1710499654946.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8dAObnEoAYe1V6pwJOGTs4vCBJO1710499655963.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsJpaBPC8OxQ4aYwxsMcqZpGtPWnq1710499655730.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0565OZED_M928",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless white and navy blue calfskin style offers a new take on the iconic House motif with this season's signature Toile de Jouy Soleil, layering suns and crescent moons into a floral design representing the four seasons. Accented by pale gold-finish metal D.I.O.R. charms illuminating the silhouette and featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or wo",price:6500,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240305/fsG1IT2gcB5iabcTL89Xs9bRHISMb1709629659698.jpg",url:null,imgUrls:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240314/fsJB1txgzSsQLBBJSTzqGI40BvLkr1710399454552.jpg"],hashTags:["Handbags"]},product:null,cta:null},{position:"18",isCollected:null,video:{itemId:"VIDEOC2IMa1710324169054",title:"The lady dior bag embodies dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the house's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic cannage topstitching, while the ultra-matte metal d.i.o.r. Charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium lady dior bag can be carried by hand or worn crossbody.",tags:["Lady Dior","Removable Shoulder Strap","Medium","Handbags","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:VIDEO:VIDEOC2IMa1710324169054:default:3::branch:Handbags:18",bindCta:null,bindProduct:{itemId:"M0565SDBRM900",title:"Medium Lady Dior Bag",tags:["Women","Black","Handbags","Hand","Lady Dior","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565SDBRM900:default:3::branch:Handbags:18",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:18",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsnyiCm9oirbXLqmqY7231O8O2Yhb1710498970982.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fskwIRRKCtuw9cb9btuubt2D5bXfB1710498970676.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsqXFTCyhxspeYCD3uo4UiuN5vQ7w1710498970671.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8rDRSKJmWUNI42MjrMWVlI0D9Fz1710498970729.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsca9Cjqo3WMJVU0OL0OjQo8xOoMx1710498972076.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsjl1bxi56X0QrKwfvl8YocBVJ2N81710498971352.jpg"],collection:null,link:"https://www.dior.com/en_us/fashion/products/M0565SDBR_M900-medium-lady-dior-bag-black-patent-to-matte-gradient-cannage-lambskin?objectID=M0565SDBR_M900&query=M0565SDBRM900&queryID=14cc52b35774a9a42e78fd9ba199860e",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless style demonstrates the House's exceptional savoir-faire. The black patent-to-matte gradient lambskin style is embellished with iconic Cannage topstitching, while the ultra-matte metal D.I.O.R. charms lend a modern touch. Featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or worn crossbody.",price:7100,currency:"USD-$"},bindProducts:[],cover:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsuF6sqlC9LCBLTgxHwMRinXwB6bF1710324135846.png",url:"https://dior-sxp-cdn.chatlabs.net/prod/sound/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240313/fsFwNsGElWR2SXQ2tWwHkaiqMZN5H1710324095954.mp4",imgUrls:null,hashTags:["Lady Dior","Handbags"]},product:null,cta:null},{position:"19",isCollected:null,video:null,product:{itemId:"M0565OZEDM928",title:"Medium Lady Dior Bag",tags:["Lady Dior","Medium","Handbags","Crossbody"],weight:null,traceInfo:"VECTOReVssi1704360966770:PRODUCT:M0565OZEDM928:default:3::branch:Handbags:19",bindCta:{itemId:"CTAzgoPn1709005149328",title:"\u7ACB\u5373\u8D2D\u4E70",tags:[],weight:null,traceInfo:"VECTOReVssi1704360966770:CTA:CTAzgoPn1709005149328:default:3::branch:Handbags:19",enTitle:"Shop now",icon:"https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240227/fsIkhOh3SihCkTDQ3oI41kwCsjq6A1709005134510.png",link:null,linkTitle:null,linkType:null,menuCategoryId:"65966478d19caa37afe3603f"},homePage:["https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsbVwOx4grEmqCNmvOnKpIS0vTPPc1710499656033.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsJrpY9R8uGenvzM7NnzI4lPMCF8g1710836215790.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsYQG9gipUNt6UbzFPXTwLTNgj5BF1710836214937.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240319/fsqPEXjWl7l3wPAxJIZbnnhZPXDCw1710836216838.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsNHlPmAsNYPsGDJ5w0G213wJkwFf1710499654946.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fs8dAObnEoAYe1V6pwJOGTs4vCBJO1710499655963.jpg","https://dior-sxp-cdn.chatlabs.net/prod/img/edc1a0de-330e-40e4-bdf3-17d57d57c19b/sxp-portal/20240315/fsJpaBPC8OxQ4aYwxsMcqZpGtPWnq1710499655730.jpg"],collection:"Et\xE9 2024",link:"https://www.dior.com/en_us/fashion/products/M0565OZED_M928",linkTitle:null,linkType:"WEB",info:"The Lady Dior bag embodies Dior's vision of elegance and beauty. Sleek and refined, the timeless white and navy blue calfskin style offers a new take on the iconic House motif with this season's signature Toile de Jouy Soleil, layering suns and crescent moons into a floral design representing the four seasons. Accented by pale gold-finish metal D.I.O.R. charms illuminating the silhouette and featuring a thin, removable leather shoulder strap, the medium Lady Dior bag can be carried by hand or wo",price:6500,currency:"USD-$"},cta:null}],zs="Handbags",sn={productUserId:Ms,requestId:Ls,channel:js,rtc:Ns,tag:Bs,recList:Rs,hashTag:zs};const Fs=t=>{const{rec:e,style:i={},sizeChange:n=()=>{},unitWidth:l,index:s,showBorder:d,list:a,reportTagsView:r,textStyles:u,space:c}=t,{swiperRef:v,setRtcList:m,setOpenHashtag:w,sxpParameter:y}=ve(),[S,I]=o.useState(!1),[p,b]=o.useState(!1),[f,x]=o.useState({height:1,width:1}),k=o.useRef(null),h=o.useRef(null),P=o.useRef(null),C=o.useRef(null),[g,E]=o.useState(""),A=o.useMemo(()=>{var B,N,R,j,_,G,V,$,J,ee;return!((B=e?.video)===null||B===void 0)&&B.cover?(N=e?.video)===null||N===void 0?void 0:N.cover:!((j=(R=e?.video)===null||R===void 0?void 0:R.imgUrls)===null||j===void 0)&&j.length?(G=(_=e?.video)===null||_===void 0?void 0:_.imgUrls)===null||G===void 0?void 0:G[0]:!(($=(V=e?.product)===null||V===void 0?void 0:V.homePage)===null||$===void 0)&&$.length?(ee=(J=e?.product)===null||J===void 0?void 0:J.homePage)===null||ee===void 0?void 0:ee[0]:y?.bottom_image||""},[e,y?.bottom_image]),T=o.useMemo(()=>{var B,N;return((B=e?.product)===null||B===void 0?void 0:B.title)||((N=e?.video)===null||N===void 0?void 0:N.title)||null},[e]),D=o.useMemo(()=>{var B;return i.transform?Number((B=i.transform)===null||B===void 0?void 0:B.substring(i.transform.indexOf(",",0)+1,i.transform.length-3)):void 0},[i]),O=o.useMemo(()=>D===void 0?!1:D<=d,[D,d]),L=o.useMemo(()=>{var B,N,R,j,_,G,V,$,J;return!((B=e?.product)===null||B===void 0)&&B.currency&&(!((N=e?.product)===null||N===void 0)&&N.price)?`${(G=(_=(j=(R=e?.product)===null||R===void 0?void 0:R.currency)===null||j===void 0?void 0:j.split("-")[1])===null||_===void 0?void 0:_.toUpperCase())!==null&&G!==void 0?G:""}${(J=($=(V=e?.product)===null||V===void 0?void 0:V.price)===null||$===void 0?void 0:$.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&J!==void 0?J:""}`:null},[e]);o.useEffect(()=>{if(k.current===null||A==="")return;const B=new Image;S&&g?B.src=g:B.src=A,B.onload=()=>{x({height:B.height,width:B.width}),b(!0)},k.current.setSrc(B.src)},[A,S,g,O]),o.useEffect(()=>{const B=f.height*(l/f.width);p&&n(B+76+c,s)},[f,s,l,p,c]);const z=(B,N,R)=>{const j=B/N;return R/j};o.useEffect(()=>{const B=P?.current;B===null||A===""||!S||(B.src=A,B.currentTime=1,B.crossOrigin="anonymous",B.onloadeddata=()=>{const N=C?.current;if(!N)return;const R=N.getContext("2d"),j=window?.innerWidth/2,_=z(B.videoWidth,B.videoHeight,j);N.height=_,N.width=j,R?.drawImage(B,0,0,N.width,N.height),E(N.toDataURL()),B.remove(),N.remove()})},[A,S]);const F=()=>{r(),m?.(a),setTimeout(()=>{var B;(B=v?.current)===null||B===void 0||B.swiper.slideTo(s,0,!1),w?.(!1)},0)};return o.createElement("div",{ref:h,style:Object.assign({},i),className:"waterFallList-content-listItem",key:s,onClick:F},o.createElement("div",{className:"waterFallList-content-listItem-picture"},S&&o.createElement("div",{style:{display:"none"}},o.createElement("video",{ref:P,src:A,crossOrigin:"anonymous",className:"waterFallList-content-listItem-picture-img"}),o.createElement("canvas",{ref:C})),o.createElement(Ne,{loading:"lazy",className:"waterFallList-content-listItem-picture-img",ref:k})),o.createElement("div",{className:"waterFallList-content-listItem-info"},o.createElement("div",{className:`waterFallList-content-listItem-info-title ${L?"waterFallList-content-listItem-info-nowrap":""}`,style:Object.assign({},u?.title)},T&&T),o.createElement("div",{className:"waterFallList-content-listItem-info-price",hidden:!L,style:u.price},L)))};function Vs(t){var e,i,n,l,s,d,a,r,u,c,v,m,w,y,S,I,p,b,f,{reportTagsView:x,showBanner:k}=t,h=ke(t,["reportTagsView","showBanner"]);const{waterFallData:P,getRecommendVideos:C,hashTagSize:g,loadingImage:E,isOpenHashTag:A}=ve(),T=o.useRef(null),[D,O]=o.useState(0),[L,z]=o.useState(),F=o.useRef(null),[B,N]=o.useState([]),R=o.useRef(),j=[170,230,300],[_,G]=o.useState(!1),[V,$]=o.useState([]),J=o.useRef(),ee=o.useCallback((q,ce)=>Math.floor(Math.random()*(ce-q+1))+q,[]),Y=o.useRef([]),[pe,W]=o.useState({width:0}),oe=o.useMemo(()=>{const q=pe.width||0;return q>=1200?6:q>=768&&q<=1199?4:2},[pe]),K=o.useMemo(()=>pe.width/oe-2,[oe,pe]),Q=o.useCallback(()=>{var q;const ce=(q=R.current)!==null&&q!==void 0?q:[],fe=[];for(let te=0;te<V?.length;te++){const Ye=Math.floor(te/oe),De=te%oe+1;let Qe=0,qe=9999999999;if(Ye===0)fe[te]=te;else{for(let Ee=0;Ee<fe.length;Ee++)Y.current[fe[Ee]].top+Y.current[fe[Ee]].height<qe&&(Qe=Ee,qe=Y.current[fe[Ee]].top+Y.current[fe[Ee]].height);fe[Qe]=te}Y.current[te]===void 0&&(Y.current[te]={}),Ye===0?(De===1?Y.current[te].left=0:Y.current[te].left=Y.current[te-1].left+K+4,Y.current[te].top=0):(Y.current[te].left=Y.current[Qe].left,Y.current[te].top=qe),Y.current[te].height=Y.current[te].height||j[ee(0,2)],ce[te]={transform:`translate(${Y.current[te].left}px,${Y.current[te].top}px)`,width:`${K}px`,height:Y.current[te].height}}return N([...ce]),[...ce]},[K,oe,j,ee,V]),me=o.useCallback((q,ce)=>{Y.current[ce]===void 0&&(Y.current[ce]={}),Y.current[ce].height=q,R.current=Q()},[Q]);o.useEffect(()=>{R.current=Q()},[K,oe,V]),o.useEffect(()=>{var q,ce;if(G(!0),P&&C?.({hashTag:P?.hashTag,"itemFilter.itemId":P?.itemId,"itemFilter.itemType":P?.itemType,defaultSize:g,maxSize:g}).then(fe=>{var te,Ye;z(fe),$((Ye=(te=fe?.recList)===null||te===void 0?void 0:te.filter(De=>De?.video!==null||De?.product!==null))!==null&&Ye!==void 0?Ye:[]),G(!1)}),A){const fe=sn;z(fe),$((ce=(q=fe?.recList)===null||q===void 0?void 0:q.filter(te=>te?.video!==null||te?.product!==null))!==null&&ce!==void 0?ce:[]),G(!1)}},[P,C,g,A]);const Ce=o.useCallback(()=>{F.current!==null&&W({width:F.current.getBoundingClientRect().width})},[]);o.useEffect(()=>{if(F.current===null)return;const q=new ResizeObserver(ce=>{Ce()});return q.observe(F.current),()=>{q.disconnect()}},[Ce]),o.useCallback(()=>{G(!0),P&&C?.({hashTag:P?.hashTag,"itemFilter.itemId":P?.itemId,"itemFilter.itemType":P?.itemType}).then(q=>{var ce,fe;$(V?.concat((fe=(ce=q?.recList)===null||ce===void 0?void 0:ce.filter(te=>!te?.video))!==null&&fe!==void 0?fe:[])),G(!1)})},[P,C,V]);const Pe=o.useCallback(()=>{O(T.current.scrollTop)},[]);o.useEffect(()=>{var q;return(q=T?.current)===null||q===void 0||q.addEventListener("scroll",Pe),()=>{var ce;(ce=T?.current)===null||ce===void 0||ce.removeEventListener("scroll",Pe)}},[Pe,T]);const Ve=()=>{var q,ce;!((q=L?.tag)===null||q===void 0)&&q.link&&(x(),window.location.href=(ce=L?.tag)===null||ce===void 0?void 0:ce.link)};return o.createElement(o.Fragment,null,_?o.createElement("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},o.createElement("img",{width:64,height:64,src:E,alt:"loading...",style:{objectFit:"contain"}})):o.createElement("div",{className:"waterFallList",ref:F},o.createElement("div",{className:"waterFallList-scroll",ref:T},k&&((e=L?.tag)===null||e===void 0?void 0:e.picture)&&o.createElement(Ne,{className:ie.css({width:"100%",objectFit:"cover",marginBottom:"20px"}),src:(i=L?.tag)===null||i===void 0?void 0:i.picture}),o.createElement("div",{className:"waterFallList-info",style:(n=h?.textStyles)===null||n===void 0?void 0:n.hashTagDesc},(l=L?.tag)===null||l===void 0?void 0:l.info),o.createElement("div",{hidden:!(!((s=L?.tag)===null||s===void 0)&&s.link),className:"waterFallList-collection",style:Object.assign({},(d=h?.textStyles)===null||d===void 0?void 0:d.hashTagLink),onClick:Ve},((a=L?.tag)===null||a===void 0?void 0:a.linkTitle)||"Shop the collection"),o.createElement("div",{className:"waterFallList-content"},V?.map((q,ce)=>{var fe;return o.createElement(Fs,Object.assign({key:ce,index:ce,rec:q,list:V,showBorder:D+((fe=T?.current)===null||fe===void 0?void 0:fe.clientHeight),style:B[ce],sizeChange:me,unitWidth:K,reportTagsView:x},h))}),o.createElement("div",{hidden:!(!((r=L?.tag)===null||r===void 0)&&r.link),style:{position:"absolute",width:"100%",transform:`translate(0px,${(w=((c=Y?.current[((u=Y?.current)===null||u===void 0?void 0:u.length)-1])===null||c===void 0?void 0:c.top)+((m=Y?.current[((v=Y?.current)===null||v===void 0?void 0:v.length)-1])===null||m===void 0?void 0:m.height))!==null&&w!==void 0?w:0}px)`,height:!((y=L?.tag)===null||y===void 0)&&y.link?((S=J?.current)===null||S===void 0?void 0:S.offsetHeight)||((I=h?.buttonBgStyle)===null||I===void 0?void 0:I.height)||"100px":0}}))),o.createElement("div",{className:"waterFallList-bottom",hidden:!(!((p=L?.tag)===null||p===void 0)&&p.link),style:h?.buttonBgStyle}),o.createElement("div",{ref:J,hidden:!(!((b=L?.tag)===null||b===void 0)&&b.link),className:"waterFallList-btn-wrap",style:Object.assign(Object.assign({},h?.buttonBgStyle),{height:"auto",backgroundColor:"transparent"})},o.createElement("button",{className:"waterFallList-btn",style:h?.buttonStyle,onClick:Ve},((f=L?.tag)===null||f===void 0?void 0:f.linkTitle)||"Shop the collection"))))}var Hs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAaZJREFUeF7t2jFKBEEQRuG3mSJeQTARURDMTL2EqXfwAnoKD6FHMDEzNVIw2tzQC2gFggyDrExX1V92T7wz9PumFnqbXdH5teq8nwEwJqBzgfEVKDYAW8Ae8NZq3ZUm4Aa4AnaBR+C8BUIVAIu/ngSfAs9LESoAWLgB/LzWwP7SeLtfHWAu3tZ9Adz/dwD3eOUJCIlXBQiLVwQIjVcDCI9XAkiJVwFIi1cASI3PBpjb3jbd5GyyUcraCUrEZ02ATHwGgFR8NIBcfCSAZHwUgGx8BIB0vDeAfLwnQIl4L4Ay8R4ApeJbA2wD78DOZA/e7ABzk739Xz/T8rfAIfA6WYCd3BqA7NUSwCKfgLNKCK0BjoC7rzP74yoIrQGsuxSCB0ApBC+AMgieACUQvAHkESIApBGiAGQRIgEkEaIB5BAyAKQQsgBkEDIBJBCyAdIRFABSEVQA0hCUAFIQ1ADCERQBQhFUAcIQlAFCENQBfkOwg9eXpeftFQDmEOzv8ifARy8A3wiXwAHwANwujbf7q0xAi9bZZwwAN9oiDx4TUORFuS2z+wn4BAiAaEHnKChjAAAAAElFTkSuQmCC";const Us=t=>{const{rec:e,index:i,list:n,reportTagsView:l,textStyles:s,space:d}=t,{swiperRef:a,setRtcList:r,setOpenHashtag:u,bffEventReport:c,sxpParameter:v}=ve(),[m,w]=o.useState(!1),y=o.useRef(null),S=o.useRef(null),I=o.useRef(null),p=o.useRef(null),[b,f]=o.useState(""),x=o.useMemo(()=>{var g,E,A,T,D,O,L,z,F,B;return!((g=e?.video)===null||g===void 0)&&g.cover?(E=e?.video)===null||E===void 0?void 0:E.cover:!((T=(A=e?.video)===null||A===void 0?void 0:A.imgUrls)===null||T===void 0)&&T.length?(O=(D=e?.video)===null||D===void 0?void 0:D.imgUrls)===null||O===void 0?void 0:O[0]:!((z=(L=e?.product)===null||L===void 0?void 0:L.homePage)===null||z===void 0)&&z.length?(B=(F=e?.product)===null||F===void 0?void 0:F.homePage)===null||B===void 0?void 0:B[0]:v?.bottom_image||""},[e,v?.bottom_image]),k=o.useMemo(()=>{var g,E;return((g=e?.product)===null||g===void 0?void 0:g.title)||((E=e?.video)===null||E===void 0?void 0:E.title)||null},[e]),h=o.useMemo(()=>{var g,E,A,T,D,O,L,z,F;return!((g=e?.product)===null||g===void 0)&&g.currency&&(!((E=e?.product)===null||E===void 0)&&E.price)?`${(O=(D=(T=(A=e?.product)===null||A===void 0?void 0:A.currency)===null||T===void 0?void 0:T.split("-")[1])===null||D===void 0?void 0:D.toUpperCase())!==null&&O!==void 0?O:""}${(F=(z=(L=e?.product)===null||L===void 0?void 0:L.price)===null||z===void 0?void 0:z.toLocaleString("zh",{minimumFractionDigits:0}))!==null&&F!==void 0?F:""}`:null},[e]);o.useEffect(()=>{const g=new IntersectionObserver(E=>{E.forEach(A=>{if(A.isIntersecting){if(S.current===null||x==="")return;m&&b?y.current.setSrc(b):y.current.setSrc(x),g.unobserve(S.current)}})});return g.observe(S.current),()=>{g.disconnect()}},[x,m,b]);const P=(g,E,A)=>{const T=g/E;return A/T};o.useEffect(()=>{const g=I?.current;g===null||x===""||!m||(g.src=x,g.currentTime=1,g.crossOrigin="anonymous",g.onloadeddata=()=>{const E=p?.current;if(!E)return;const A=E.getContext("2d"),T=window?.innerWidth/2,D=P(g.videoWidth,g.videoHeight,T);E.height=D,E.width=T,A?.drawImage(g,0,0,E.width,E.height),f(E.toDataURL()),g.remove(),E.remove()})},[x,m]);const C=()=>{l(),r?.(n),setTimeout(()=>{var g;(g=a?.current)===null||g===void 0||g.swiper.slideTo(i,0,!1),u?.(!1)},0)};return o.createElement("div",{ref:S,className:"list-content-listItem",key:i,onClick:C,style:{marginBottom:d}},o.createElement("div",{className:"list-content-listItem-picture"},m&&o.createElement("div",{style:{display:"none"}},o.createElement("video",{ref:I,crossOrigin:"anonymous",className:"list-content-listItem-picture-img"}),o.createElement("canvas",{ref:p})),o.createElement(Ne,{loading:"lazy",className:"list-content-listItem-picture-img",ref:y})),o.createElement("div",{className:"list-content-listItem-info"},o.createElement("div",{className:`list-content-listItem-info-title ${h?"list-content-listItem-info-nowrap":""}`,style:s?.title},k&&k),o.createElement("div",{className:"list-content-listItem-info-price",style:s?.price,hidden:!h},h)))};function Gs(t){var e,i,n,l,s,d,a,r,u,c,v,m,w,y,{reportTagsView:S,showBanner:I}=t,p=ke(t,["reportTagsView","showBanner"]);const{waterFallData:b,getRecommendVideos:f,hashTagSize:x,loadingImage:k,isOpenHashTag:h}=ve(),[P,C]=o.useState(),[g,E]=o.useState(),[A,T]=o.useState(!1),D=o.useRef(null),[O,L]=o.useState(!1);o.useCallback(()=>{O||(L(!0),b&&f?.({hashTag:b?.hashTag,"itemFilter.itemId":b?.itemId,"itemFilter.itemType":b?.itemType}).then(F=>{var B;C(P?.concat((B=F?.recList)!==null&&B!==void 0?B:[])),L(!1)}))},[b,f,P,O]),o.useEffect(()=>{var F,B;if(T(!0),b&&f?.({hashTag:b?.hashTag,"itemFilter.itemId":b?.itemId,"itemFilter.itemType":b?.itemType,defaultSize:x,maxSize:x}).then(N=>{var R,j;E(N),C((j=(R=N?.recList)===null||R===void 0?void 0:R.filter(_=>_?.video!==null||_?.product!==null))!==null&&j!==void 0?j:[]),T(!1)}),h){const N=sn;E(N),C((B=(F=N?.recList)===null||F===void 0?void 0:F.filter(R=>R?.video!==null||R?.product!==null))!==null&&B!==void 0?B:[]),T(!1)}},[b,f,x,h]);const z=()=>{var F,B;!((F=g?.tag)===null||F===void 0)&&F.link&&(S(),window.location.href=(B=g?.tag)===null||B===void 0?void 0:B.link)};return o.createElement(o.Fragment,null,A?o.createElement("div",{style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},o.createElement("img",{width:64,height:64,src:k,alt:"loading...",style:{objectFit:"contain"}})):o.createElement("div",{className:"list"},o.createElement("div",{className:"list-scroll",ref:D},I&&((e=g?.tag)===null||e===void 0?void 0:e.picture)&&o.createElement(Ne,{className:ie.css({width:"100%",objectFit:"cover",marginBottom:"20px"}),src:(i=g?.tag)===null||i===void 0?void 0:i.picture}),o.createElement("div",{className:"list-info",style:(n=p?.textStyles)===null||n===void 0?void 0:n.hashTagDesc},(l=g?.tag)===null||l===void 0?void 0:l.info),o.createElement("div",{hidden:!(!((s=g?.tag)===null||s===void 0)&&s.link),className:"list-collection",onClick:z,style:Object.assign(Object.assign({},(d=p?.textStyles)===null||d===void 0?void 0:d.hashTagLink),{marginBottom:p?.space})},((a=g?.tag)===null||a===void 0?void 0:a.linkTitle)||"Shop the collection"),o.createElement("div",{className:"list-content"},P?.map((F,B)=>o.createElement(Us,Object.assign({key:B,index:B,rec:F,list:P,reportTagsView:S},p)))),o.createElement("div",{hidden:!O,style:{textAlign:"center"}},"loading..."),o.createElement("div",{hidden:!(!((r=g?.tag)===null||r===void 0)&&r.link),style:{height:!((u=g?.tag)===null||u===void 0)&&u.link?((c=p?.buttonBgStyle)===null||c===void 0?void 0:c.height)||((v=p?.buttonStyle)===null||v===void 0?void 0:v.height)||"100px":0}})),o.createElement("div",{className:"list-bottom",hidden:!(!((m=g?.tag)===null||m===void 0)&&m.link),style:p?.buttonBgStyle}),o.createElement("div",{hidden:!(!((w=g?.tag)===null||w===void 0)&&w.link),className:"list-btn-wrap",style:Object.assign(Object.assign({},p?.buttonBgStyle),{height:"auto",backgroundColor:"transparent"})},o.createElement("button",{className:"list-btn",style:p?.buttonStyle,onClick:z},((y=g?.tag)===null||y===void 0?void 0:y.linkTitle)||"Shop the collection"))))}const $s=t=>{var e;const{waterFallData:i,setOpenHashtag:n,openHashtag:l,swiperRef:s,setWaterFallData:d,cacheRtcList:a,setRtcList:r,cacheActiveIndex:u,rtcList:c,setCacheRtcList:v,setIsFromHashtag:m,isFromHashtag:w,bffEventReport:y,themeTag:S}=ve(),{backMainFeed:I}=Be();o.useRef(null);const p=o.useRef(null),[b,f]=o.useState();o.useEffect(()=>{const C=document.getElementById("sxp-render"),g=document.getElementById("water-fall");g?p.current=g:(p.current=document.createElement("div"),p.current.setAttribute("id","water-fall"),C?.appendChild(p.current))},[]);const x=()=>{const C=xe.isEqual(c,a);!C&&a&&a?.length&&r?.(a),S?.current||I("branch",S?.current,i?.hashTag),P(),d?.(void 0),m?.(!1),setTimeout(()=>{var g,E;C||(E=(g=s?.current)===null||g===void 0?void 0:g.swiper)===null||E===void 0||E.slideTo(u,0,!1),n?.(!1)},0)},[k,h]=o.useState();o.useEffect(()=>{i&&h(i)},[i]);const P=o.useCallback(()=>{var C,g,E,A,T,D;const O=k?.rec;if(!O)return;let L="";w?L="hashTagPage":!((C=O?.video)===null||C===void 0)&&C.url?L="videoPage":!((E=(g=O?.video)===null||g===void 0?void 0:g.imgUrls)===null||E===void 0)&&E.length&&(L="imagePage"),y?.({eventInfo:{contentId:(A=O?.video)===null||A===void 0?void 0:A.itemId,position:u+"",contentTags:JSON.stringify((T=O?.video)===null||T===void 0?void 0:T.tags),traceInfo:(D=O?.video)===null||D===void 0?void 0:D.traceInfo,hashTags:JSON.stringify([k?.hashTag]),fromKName:L,fromKPage:location?.href,timeOnSite:Math.floor((new Date-b)/1e3)+"",eventSubject:"clickTagsViewContents",eventDescription:"User click tags view contents"}})},[k,y,b,w,u]);return o.useEffect(()=>{l&&f(new Date)},[l]),o.useEffect(()=>{const C=()=>{f(new Date)};return window.addEventListener("pageshow",C),()=>{window.removeEventListener("pageshow",C)}},[]),p.current?wi.createPortal(o.createElement("div",{className:"waterfall",style:{display:l?"block":"none"}},o.createElement(ln,{icon:Hs,styles:{top:"32px"},textStyle:(e=t?.textStyles)===null||e===void 0?void 0:e.hashTagTitle,onClose:x}),t?.openFixedSize===!0||t?.openFixedSize===void 0?o.createElement(Gs,Object.assign({reportTagsView:P},t)):o.createElement(Vs,Object.assign({reportTagsView:P},t))),p.current):null};var an=o.memo($s);const Ws=t=>o.createElement(an,Object.assign({},t));var Ys=o.memo(Ws);const qs=Re(Ys,{displayName:"",icon:"",category:"base",type:"HashTag",related:{settingRender:Ps,bindableProps:[]},defaulSetting:{props:{lineClamp:1,space:40,textStyles:{hashTagTitle:{fontSize:16,color:"#000"},hashTagDesc:{fontSize:12,textAlign:"center",color:"#000"},hashTagLink:{textAlign:"center",color:"#757575",fontSize:12,textDecoration:"underline"},title:{fontSize:12,color:"#000"},price:{fontSize:12,fontWeight:"bold",color:"#000"}},buttonStyle:{backgroundColor:"#000",fontSize:12,height:52,fontWeight:"bold",textAlign:"center",color:"#fff",borderRadius:25},buttonBgStyle:{backgroundColor:"#fff",height:52,paddingTop:20,paddingLeft:20,paddingRight:20,paddingBottom:20}}},w:100,h:40,sort:2});var Xs=[{title:"\u534F\u8BAE\u8BE6\u60C5",child:[{type:"Switch",label:"\u5FC5\u987B\u540C\u610F\u7528\u6237\u534F\u8BAE",name:["props","privacy_necessity"],extra:"\u5F53\u65B0\u7528\u6237\u8FDB\u5165\u9875\u9762\u65F6\uFF0C\u4F1A\u51FA\u73B0\u7528\u6237\u534F\u8BAE\u5F39\u7A97\uFF0C\u7528\u6237\u9700\u8981\u5148\u540C\u610F\u534F\u8BAE\u540E\u624D\u80FD\u8BBF\u95EE\u5185\u5BB9\u3002"},{type:"Text",label:"\u5F39\u7A97\u6807\u9898",name:["props","privacy_title"]},{type:"TextArea",label:"\u7528\u6237\u534F\u8BAE\u5F39\u7A97\u5185\u5BB9",name:["props","privacy_context"]},{type:"Group",label:"\u9690\u79C1\u653F\u7B56",child:[{type:"Text",name:["props","privacy_policy_title"]},{type:"Text",name:["props","privacy_policy_url"],addonBefore:"https://"}],extra:"\u5F53\u7528\u6237\u70B9\u51FB\u66F4\u591A\u4FE1\u606F\u6309\u94AE\u65F6\uFF0C\u5C06\u4F1A\u8DF3\u8F6C\u81F3\u8BBE\u7F6E\u7684\u94FE\u63A5\u67E5\u770B\u653F\u7B56\u5185\u5BB9"}]}];const rn=t=>o.createElement(rn,Object.assign({},t));var Js=o.memo(rn);const Ks=Re(Js,{displayName:"Consent",icon:"",category:"base",type:"Consent",related:{settingRender:Xs},defaulSetting:{props:{},style:{}},w:100,h:40,sort:1});var hi=Object.freeze({__proto__:null,Appoint:Zl,AppointForm:Yn,Commodity:Xl,CommodityDetail:Ml,CommodityDetailDiroNew:Ul,CommodityDiro:rs,CommodityDiroNew:vs,Consent:Ks,HashTag:qs,Link:ns,MultiCommodity:Cs,MultiCommodityDiro:ws,MultiCommodityDiroNew:As,Prompt:zl});const Qs="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",Zs="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",ea=t=>{var{active:e,activeIcon:i,unActicveIcon:n,recData:l,position:s}=t,d=ke(t,["active","activeIcon","unActicveIcon","recData","position"]);const{mutateLike:a,mutateUnlike:r,bffEventReport:u}=ve(),[c,v]=o.useState(e),m=He(Zs),w=He(Qs),y=xe.debounce(()=>Le(void 0,void 0,void 0,function*(){var S,I,p,b,f,x,k,h,P,C,g,E,A,T,D,O,L,z,F,B;if(c){v(!1);const N=(p=yield r?.({videoItemId:(I=(S=l?.video)===null||S===void 0?void 0:S.itemId)!==null&&I!==void 0?I:""}))!==null&&p!==void 0?p:!1;u?.({eventInfo:{eventSubject:"favoriteContentCanceled",eventDescription:"This content was unfavorite by the user",contentId:(f=(b=l?.video)===null||b===void 0?void 0:b.itemId)!==null&&f!==void 0?f:"",contentName:(k=(x=l?.video)===null||x===void 0?void 0:x.title)!==null&&k!==void 0?k:"",contentTags:JSON.stringify((P=(h=l?.video)===null||h===void 0?void 0:h.tags)!==null&&P!==void 0?P:[]),position:s+"",contentFormat:!((C=l?.video)===null||C===void 0)&&C.url?"video":"image",traceInfo:(g=l?.video)===null||g===void 0?void 0:g.traceInfo}}),N||v(!0)}else{v(!0);const N=(E=yield a?.({content:JSON.stringify(l)}))!==null&&E!==void 0?E:!1;u?.({eventInfo:{eventSubject:"favoriteContent",eventDescription:"This content was favorite by the user",contentId:(T=(A=l?.video)===null||A===void 0?void 0:A.itemId)!==null&&T!==void 0?T:"",contentName:(O=(D=l?.video)===null||D===void 0?void 0:D.title)!==null&&O!==void 0?O:"",contentTags:JSON.stringify((z=(L=l?.video)===null||L===void 0?void 0:L.tags)!==null&&z!==void 0?z:[]),position:s+"",contentFormat:!((F=l?.video)===null||F===void 0)&&F.url?"video":"image",traceInfo:(B=l?.video)===null||B===void 0?void 0:B.traceInfo}}),N||v(!1)}}),200);return o.createElement("button",Object.assign({},d,{onClick:y}),o.createElement("img",{style:{width:"100%",height:"100%",objectFit:"contain"},src:c?i||m:n||w,alt:"icon"}))};var dn=o.memo(ea);const ta=({rec:t,index:e,height:i,data:n,muted:l,activeIndex:s,videoPostConfig:d,videoRef:a})=>{const[r,u]=o.useState(!1),{bffEventReport:c,sxpParameter:v,waterFallData:m,openHashtag:w,bffFbReport:y}=ve(),S=o.useRef(0),[I,p]=o.useState(!1),[b,f]=o.useState(!0),{isActive:x}=tn(),k=o.useRef(null),[h,P]=o.useState(""),C=`pb-cache-video-${e}`,g=o.useRef(null),E=o.useMemo(()=>d?.mode==="2",[d]),A=o.useMemo(()=>{var V;return d?.mode==="2"?`translateY(-${50+((V=d?.offsetTop)!==null&&V!==void 0?V:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[d]),T=o.useMemo(()=>{var V;return((V=t?.video)===null||V===void 0?void 0:V.cover)||h},[h,t]),D=o.useMemo(()=>E?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[E]),O=o.useMemo(()=>d?.bgWay==="1",[d]),L=o.useMemo(()=>O&&d?.bgColor?{backgroundColor:d?.bgColor}:{},[d,O]);o.useEffect(()=>{a&&a?.muted(l)},[l,a]);const z=o.useCallback(()=>{a&&a?.play()},[a]),F=He("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),B=o.useCallback(()=>{var V,$,J,ee,Y,pe,W,oe,K;if(!a)return;p(!0),u(!1);const Q=n[e];if(Q&&a?.duration()){S.current=a?.currentTime()||0;const me=((V=a?.duration())!==null&&V!==void 0?V:0).toFixed(2),Ce=(($=a?.currentTime())!==null&&$!==void 0?$:0).toFixed(2),Pe=b?"0":"1";c?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(ee=(J=Q?.video)===null||J===void 0?void 0:J.itemId)!==null&&ee!==void 0?ee:"",contentName:(pe=(Y=Q?.video)===null||Y===void 0?void 0:Y.title)!==null&&pe!==void 0?pe:"",playType:Pe,startTime:Ce,videoDuration:me,contentTags:JSON.stringify((oe=(W=Q?.video)===null||W===void 0?void 0:W.tags)!==null&&oe!==void 0?oe:[]),position:e+"",contentFormat:"video",traceInfo:(K=Q?.video)===null||K===void 0?void 0:K.traceInfo}}),f(!1)}},[c,n,e,b,a]),N=o.useCallback(()=>{var V;if(!a||h||!E)return;const $=document.getElementById("player-container-id_html5_api");if(!$||($.style.objectFit="contain",!((V=t?.video)===null||V===void 0)&&V.cover||!k||!k.current||O))return;const J=()=>{const ee=$,Y=k?.current,pe=Y.getContext("2d"),W=window?.innerWidth,oe=window?.innerHeight;Y.height=oe,Y.width=W,pe?.drawImage(ee,0,0,Y.width,Y.height),P(Y.toDataURL())};J(),setTimeout(()=>{J()},500)},[a,O,t,h,E]),R=o.useCallback(()=>{a&&N()},[a,N]);o.useCallback(()=>{p(!0)},[]);const j=o.useCallback(V=>()=>{if(!a||!I)return;const $=a?.paused();switch(V){case"start":if(!$)return;a?.play(),u(!1);break;case"pause":if($)return;a?.pause(),u(!0);break;default:$?a?.play():a?.pause(),u(!$);break}},[I,a]),_=o.useCallback(()=>{var V,$,J,ee,Y,pe,W,oe,K;if(!a||s!==e)return;const Q=n[e],me=((V=a?.duration())!==null&&V!==void 0?V:0).toFixed(2),Ce=(($=a?.currentTime())!==null&&$!==void 0?$:0).toFixed(2);if(a?.duration()){const Pe=(a?.currentTime()-S.current).toFixed(2);c?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(ee=(J=Q?.video)===null||J===void 0?void 0:J.itemId)!==null&&ee!==void 0?ee:"",contentName:(pe=(Y=Q?.video)===null||Y===void 0?void 0:Y.title)!==null&&pe!==void 0?pe:"",endTime:Ce,videoDuration:me,playDuration:Pe,contentTags:JSON.stringify((oe=(W=Q?.video)===null||W===void 0?void 0:W.tags)!==null&&oe!==void 0?oe:[]),position:e+"",contentFormat:"video",traceInfo:(K=Q?.video)===null||K===void 0?void 0:K.traceInfo}})}},[n,e,c,a,s]);o.useEffect(()=>{if(!x||!a)return;const V=t?.video.url;if(!V)return;a?.src(V),u(!1);const $=document.querySelector(`#${C}`),J=document.querySelector("#player-container-id"),ee=document.querySelector("#player-container-id-copy");if(!(!J&&!ee))return $?.appendChild(J||ee),a?.on("loadedmetadata",R),a?.on("loadeddata",N),a?.on("playing",B),a?.on("pause",_),a?.on("ended",z),()=>{ee?.appendChild(J),a?.off("loadedmetadata",R),a?.off("loadeddata",N),a?.off("playing",B),a?.off("pause",_),a?.off("ended",z)}},[x,C,t,a]),o.useEffect(()=>{!a||!I||(x?(y?.({eventName:"ViewContent"}),a?.play()):a?.pause())},[x,I,a]),o.useEffect(()=>{if(!x||!a)return;!a?.paused()&&w?a?.pause():w||a?.play()},[w,x,a]),o.useEffect(()=>{if(!x)return;const V=()=>{j("start")(),y?.({eventName:"ViewContent"})},$=j("pause");return tt.on($e.PAGE_DID_SHOW,V),tt.on($e.PAGE_DID_HIDE,$),()=>{tt.off($e.PAGE_DID_SHOW,V),tt.off($e.PAGE_DID_HIDE,$)}},[j,x]);const G=o.useMemo(()=>!v?.placeholder_image||I?null:o.createElement("img",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:v?.placeholder_image}),[I,v?.placeholder_image]);return o.useEffect(()=>{if(!a)return;const V=()=>{var $;s===e&&(!(($=t?.video)===null||$===void 0)&&$.url)&&a&&!r&&j("pause")()};return window.addEventListener("beforeunload",V),()=>{window.removeEventListener("beforeunload",V)}},[s,e,t,a,j,r]),t?.video?o.createElement(o.Fragment,null,E?o.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:j(),style:Object.assign({position:"relative",width:"100%",height:i,overflow:"hidden"},L)},!O&&o.createElement(Ne,{src:T,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},D)}),o.createElement("canvas",{ref:k,style:{display:"none"}}),o.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:"50%",transform:A,left:0,right:0}},o.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o.createElement("div",{className:"n-full-screen",ref:g,id:C,style:{width:"100%",height:"100%"}}),o.createElement("img",{hidden:!r,className:"clc-pb-video-pause",src:F}))),G):o.createElement("div",{className:"video-container",key:t?.video.itemId,style:{position:"relative",width:"100%",height:i,overflow:"hidden"},onClick:j()},o.createElement("div",{className:"n-full-screen",ref:g,id:C,style:{width:"100%",height:"100%"}}),G,o.createElement("img",{hidden:!r,className:"clc-pb-video-pause",src:F}))):null};var ia=o.memo(ta);const na=({defaultValue:t,activeIcon:e,unactiveIcon:i,onChange:n,style:l})=>{const[s,d]=o.useState(t),a=r=>{r.stopPropagation();const u=!s;d(u),n?.(u)};return o.createElement("button",{style:l,className:"pb-toggle-button",onClick:a},o.createElement("img",{className:"pb-toggle-button-icon",src:s?e:i}))};var cn=o.memo(na);const oa=({imageUrl:t,style:e})=>{const[i,n]=o.useState(!0);et(),o.useEffect(()=>{setTimeout(()=>{n(!1)},2e3)},[]);const l=He("/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png"),s=o.useMemo(()=>i?"pb-fadeIn":"pb-fadeOut",[i]);return o.createElement("div",{hidden:!i,className:`pb-finger-wrap ${s}`,style:e},o.createElement("img",{src:t||l}))},un=t=>{const{src:e,height:i,imgUrlsPostConfig:n,onShowFirstImage:l}=t,s=o.useMemo(()=>n?.mode==="2",[n]),d=o.useMemo(()=>{var c;return n?.mode==="2"?`translateY(-${50+((c=n?.offsetTop)!==null&&c!==void 0?c:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[n]),a=o.useMemo(()=>s?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[s]),r=o.useMemo(()=>n?.bgWay==="1",[n]),u=o.useMemo(()=>r&&n?.bgColor?{backgroundColor:n?.bgColor}:{},[n,r]);return o.createElement("div",{style:Object.assign({overflow:"hidden",height:i,width:"100%",position:"relative"},u)},(!s||!r)&&o.createElement(Ne,{src:e,style:Object.assign({height:"100%",width:"100%",objectFit:"cover"},a),onLoad:l}),s&&o.createElement(Ne,{src:e,style:{width:"100%",height:"100%",objectFit:"contain",position:"absolute",top:"50%",transform:d,left:0,right:0}}))},la=({imgUrls:t,width:e,height:i,rec:n,index:l,onReportViewImageEnd:s,onViewImageStartEvent:d,imgUrlsPostConfig:a})=>{var r;const u=o.useRef(),{isActive:c}=tn(),{sxpParameter:v,openHashtag:m}=ve(),[w,y]=o.useState(!1);o.useEffect(()=>{w&&c?(u?.current&&u.current.swiper.autoplay.start(),m?s(n):d(l)):u?.current&&u.current.swiper.autoplay.stop()},[n,c,s,m,l,d,w]);const S=o.useCallback(()=>{w||y(!0)},[w]);return o.createElement(ut,{ref:u,defaultValue:0,direction:"horizontal",modules:[kt,Dt],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet"},height:i,loop:!0,autoplay:{delay:((r=a?.delay)!==null&&r!==void 0?r:3)*1e3}},t?.map((I,p)=>o.createElement(Ke,{key:p},o.createElement(un,{src:!w&&p>0?"":I,height:i,imgUrlsPostConfig:a,onShowFirstImage:S}))))};var sa=o.memo(la);const aa=({tags:t,itemId:e,itemType:i,index:n,rec:l,hashTagStyle:s})=>{const[d,a]=o.useState(!1),{setWaterFallData:r,setOpenHashtag:u,setCacheActiveIndex:c,waterFallData:v,setIsFromHashtag:m}=ve(),w=y=>{v?m?.(!0):c?.(n),r?.(i?{hashTag:y,itemId:e,itemType:i,rec:l}:{hashTag:y,rec:l}),u?.(!0)};return o.useMemo(()=>t.length<=6?null:o.createElement("span",{style:{textDecoration:"underline",cursor:"pointer",color:"#fff"},onClick:()=>a(!d)},d?"show less":"show more"),[d,t]),o.createElement("div",{className:"clc-sxp-bottom-hashtag"},o.createElement(Lt,null,t?.map((y,S)=>o.createElement(Ke,{key:S,hidden:d?!1:S>=6,className:"clc-sxp-bottom-hashtag-item",style:s,onClick:()=>w(y)},`#${y}`))))};var pn=o.memo(aa),ra="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAbtJREFUeF7t2DFKxFAQxvHv6xTxCoKNiAuCna2X2NY7eAE9hYdwj2BjZ2ulYLW9pQcYDWyxBIK7ZN7MNyapk/D+v8zC20dM/OLE+zEDzBMwcYH5J1BpAMzsAMAJyU+vdZeZADN7AHAH4BjAC8kbD4QSAJv4+17wFcm3sQjyAGbWhXdff/takzwdG989Lw0wEN+te0ly9a8BIuJlJyAqXhIgMl4OIDpeCiAjXgYgK14CIDM+HSA7PhVgYHvrusnZZaOUshNUiU+ZAKX4cAC1+FAAxfgwANX4EADl+OYA6vFNASrENwOoEt8EoFK8O0C1eFcAMzsE8AXgqLcHdzvA3GVvv+89bv8FzOwcwEdvASuSy30XFXm/G0C3aDN7BXBdCcEb4ALAE4BFFQRXgM0UlEJwB6iG0ASgEkIzgCoITQEqIDQHUEcIAVBGCANQRQgFUEQIB1BDSAFQQkgDUEFIBVBASAfIRpAAyESQAchCkALIQJADiEaQBIhEkAWIQpAG+ANh8Xvk/j72CF0eYABhDeCS5PckALYQbgGcAXgm+Tg2vnu+xAR4hA69YwZoqVvh3fMEVPhKLdc4+Qn4AXwYBFBN2dYpAAAAAElFTkSuQmCC";function jt(t){return o.memo(function(e){const{$store:i}=Pn(),n=s=>{let d=s;const a=s.match(/{{.*?}}/g);return a?.length&&a.forEach(r=>{r.replace(/{{\s*([\w.]+)\s*}}/g,(u,c)=>{if(c){const v=xe.get(i,c);return d=d.replace(r,v),v}})}),d},l=o.useMemo(()=>{var s,d,a;const{bindDatas:r}=e,u=ke(e,["bindDatas"]);if((s=r?.forEach)===null||s===void 0||s.call(r,c=>{if(c?.propKey&&c?.dataPath){const{propKey:v,dataPath:m}=c;m.replace(/{{\s*([\w.]+)\s*}}/g,(w,y)=>{var S,I;if(y){const p=(I=(S=xe.get(i,y))!==null&&S!==void 0?S:e[v])!==null&&I!==void 0?I:"";return u[v]=p,p}})}}),u){u.eventMap={};const c=xe.cloneDeep(u.event)||{};for(const v in c)if(Object.prototype.hasOwnProperty.call(c,v))try{c[v].value=n(c[v].value),u.eventMap[v]=new Function(c[v].value)}catch{}}return!((a=(d=u?.event)===null||d===void 0?void 0:d.onClick)===null||a===void 0)&&a.linkType&&(u.style.cursor="pointer"),u},[i,e]);return o.createElement(t,Object.assign({},l,l.eventMap))})}const da=({rec:t,index:e,tempMap:i,resolver:n})=>{const{schema:l}=et(),s=o.useMemo(()=>{var d,a,r,u,c,v,m,w,y,S,I,p,b,f,x,k,h,P,C,g,E,A,T,D,O,L,z,F,B,N,R;if(!t?.video)return null;let j=null;!((a=(d=t?.video)===null||d===void 0?void 0:d.bindProducts)===null||a===void 0)&&a.length?j="\u591A\u5546\u54C1CTA":!((r=t?.video)===null||r===void 0)&&r.bindProduct?j="\u5546\u54C1CTA":j=(c=(u=t?.video)===null||u===void 0?void 0:u.bindCta)===null||c===void 0?void 0:c.itemId;const _=i?.[j];if(((v=_?.item)===null||v===void 0?void 0:v.type)==="CommodityDiro"&&!(!((m=t?.video)===null||m===void 0)&&m.bindProduct)||((w=_?.item)===null||w===void 0?void 0:w.type)==="Commodity"&&!(!((y=t?.video)===null||y===void 0)&&y.bindProduct)||((S=_?.item)===null||S===void 0?void 0:S.type)==="CommodityDiroNew"&&!(!((I=t?.video)===null||I===void 0)&&I.bindProduct)||((p=_?.item)===null||p===void 0?void 0:p.type)==="MultiCommodity"&&!(!((f=(b=t?.video)===null||b===void 0?void 0:b.bindProducts)===null||f===void 0)&&f.length)||((x=_?.item)===null||x===void 0?void 0:x.type)==="MultiCommodityDiro"&&!(!((h=(k=t?.video)===null||k===void 0?void 0:k.bindProducts)===null||h===void 0)&&h.length)||((P=_?.item)===null||P===void 0?void 0:P.type)==="MultiCommodityDiroNew"&&!(!((g=(C=t?.video)===null||C===void 0?void 0:C.bindProducts)===null||g===void 0)&&g.length))return null;if(_&&n){const G=n[(E=_?.item)===null||E===void 0?void 0:E.type],V=jt(G),$=(A=G?.extend)===null||A===void 0?void 0:A.defaulSetting,J=((O=(D=(T=_?.item)===null||T===void 0?void 0:T.event)===null||D===void 0?void 0:D.onClick)===null||O===void 0?void 0:O.linkType)==="externalLink";return o.createElement(V,Object.assign({style:Object.assign(Object.assign(Object.assign({},$?.style),(L=_?.item)===null||L===void 0?void 0:L.style),{zIndex:50,marginLeft:"20px",boxSizing:"border-box",transform:"translate3d(0px, 0px, 0px)"}),textStyle:Object.assign(Object.assign({},$?.textStyle),(z=_?.item)===null||z===void 0?void 0:z.textStyle),bindDatas:(B=(F=_?.item)===null||F===void 0?void 0:F.bindDatas)!==null&&B!==void 0?B:[]},$?.props,(N=_?.item)===null||N===void 0?void 0:N.props,{event:((R=_?.item)===null||R===void 0?void 0:R.event)||{},schema:l,id:_?.id,key:_?.id,recData:t,isExternalLink:J,index:e}))}else return null},[t,n,i,l]);return o.createElement(o.Fragment,null,s)};var vn=o.memo(da);const fn=({nudge:t})=>{var e,i,n,l,s,d,a;return o.createElement(o.Fragment,null,t?.isOpen&&o.createElement("div",{className:"clc-sxp-bottom-nudge",style:{marginBottom:(e=t?.marginBottom)!==null&&e!==void 0?e:5,width:(n=(i=t?.size)===null||i===void 0?void 0:i.width)!==null&&n!==void 0?n:212,height:(s=(l=t?.size)===null||l===void 0?void 0:l.height)!==null&&s!==void 0?s:38,backgroundColor:t?.backgroundColor,borderRadius:(d=t?.borderRadius)!==null&&d!==void 0?d:4}},t?.icon?o.createElement("img",{src:t.icon,style:{height:"100%",objectFit:"cover",flexShrink:0}}):null,o.createElement("p",{style:Object.assign(Object.assign({},t?.textStyle),{textWrap:"nowrap",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",flex:1,marginBottom:0})},(a=t?.content)!==null&&a!==void 0?a:"")))},gi="FOR U",ca=({tagList:t=[],setActiveIndex:e})=>{const[i,n]=o.useState(gi),{getRecommendVideos:l,setRtcList:s,setCacheRtcList:d,setCacheActiveIndex:a,setLoading:r,swiperRef:u,waterFallData:c,bffEventReport:v}=ve(),{backMainFeed:m}=Be(),w=o.useMemo(()=>[gi,...t],[t]),y=S=>()=>{if(S===i)return;S!=="FOR U"?v?.({eventInfo:{eventSubject:"clickThemeTagsViewContents",eventDescription:"click Theme Tags View Contents",themeTags:`[${S}]`}}):m("theme",i);let I;S!==gi&&(I=S),r?.(!0),l?.({themeTag:I}).then(p=>{var b,f,x,k;tt.emit($e.CHANGE_THEME_TAG,I),s?.((b=p?.recList)!==null&&b!==void 0?b:[]),d?.((f=p?.recList)!==null&&f!==void 0?f:[]),e?.(0),a?.(0),(k=(x=u?.current)===null||x===void 0?void 0:x.swiper)===null||k===void 0||k.slideTo(0)}).finally(()=>{r?.(!1)}),n(S)};return c||t.length<=0?null:o.createElement("div",{className:"clc-sxp-tagbar"},o.createElement("ul",{className:"clc-sxp-tagbar-list",style:{margin:"auto",gap:24}},w.map(S=>o.createElement("li",{className:`clc-sxp-tagbar-list-item ${S===i?"clc-sxp-tagbar-list-item-active":""}`,key:S,onClick:y(S)},S))))};var mn=o.memo(ca);const hn=({globalConfig:t,descStyle:e,containerHeight:i=window.innerHeight,containerWidth:n=window.innerWidth,tempMap:l,resolver:s,data:d=[],ctaType:a,tipText:r,nudge:u,_schema:c,hashTagStyle:v,tagList:m=[],licenseUrl:w})=>{var y,S,I,p,b,f,x,k,h,P;const{schema:C}=et(),[g,E]=o.useState(0),A=o.useRef(0),[T,D]=o.useState(!1),[O,L]=o.useState(!0),z=o.useRef(),[F,B]=o.useState(!1),[N,R]=o.useState(!1),{loadVideos:j,bffEventReport:_,loading:G,setPopupDetailData:V,ctaEvent:$,swiperRef:J,waterFallData:ee,setOpenHashtag:Y,appDomain:pe,openHashtag:W,loadingImage:oe,isFromHashtag:K,popupDetailData:Q,bffFbReport:me,curTime:Ce,h5EnterLink:Pe}=ve(),{backMainFeed:Ve}=Be(),[q,ce]=o.useState(null),fe=o.useRef(),{productView:te}=Be(),Ye=o.useMemo(()=>d.length>0&&!G&&jn(),[d,G]),De=o.useCallback(()=>{if(d.length<=0)return;Mn();const M=new Date;z.current=M,T&&Pe?.(),me?.({eventName:"PageView"}),D(!0)},[d.length,me,Pe,T]),Qe=o.useRef();o.useEffect(()=>{var M,ne,X,ae;if(!Qe.current&&!q&&fe?.current&&d?.length>0){Qe.current=!0;const de=TCPlayer("player-container-id",{licenseUrl:w,controls:!1,loop:!1,autoplay:!0,muted:!0,preload:"auto",posterImage:!1,bigPlayButton:!0,sources:!((ne=(M=d?.[0])===null||M===void 0?void 0:M.video)===null||ne===void 0)&&ne.url?[{src:(ae=(X=d?.[0])===null||X===void 0?void 0:X.video)===null||ae===void 0?void 0:ae.url}]:[]});de?.ready(()=>{ce(de)})}},[q,w,d]),o.useEffect(()=>{T||De()},[De,T]),o.useEffect(()=>{var M;const ne=d?.findIndex(X=>{var ae,de,le,Z,se,we,Oe,Me,ye;return a==="\u591A\u5546\u54C1CTA"?((ae=X?.video)===null||ae===void 0?void 0:ae.bindProducts)&&((le=(de=X?.video)===null||de===void 0?void 0:de.bindProducts)===null||le===void 0?void 0:le.length)>0:a==="\u5546\u54C1CTA"?(Z=X?.video)===null||Z===void 0?void 0:Z.bindProduct:((we=(se=X?.video)===null||se===void 0?void 0:se.bindCta)===null||we===void 0?void 0:we.itemId)===a&&(((Oe=X?.video)===null||Oe===void 0?void 0:Oe.url)||((ye=(Me=X?.video)===null||Me===void 0?void 0:Me.imgUrls)===null||ye===void 0?void 0:ye.length))})||0;(M=J?.current)===null||M===void 0||M.swiper.slideTo(ne)},[a,J]),o.useEffect(()=>{const M=d?.[g],ne=()=>{var X,ae,de,le,Z,se,we,Oe,Me,ye,Ie,at,rt,dt,nt,gt;if(document.visibilityState==="hidden"){tt.emit($e.PAGE_DID_HIDE,M),be(M),Se(M);let _e="";Q&&(!((ae=(X=M?.video)===null||X===void 0?void 0:X.bindProducts)===null||ae===void 0)&&ae.length||!((de=M?.video)===null||de===void 0)&&de.bindProduct)?_e="pdpPage":Q&&((we=l?.[(se=(Z=(le=M?.video)===null||le===void 0?void 0:le.bindCta)===null||Z===void 0?void 0:Z.itemId)!==null&&se!==void 0?se:""].item)===null||we===void 0?void 0:we.type)==="Appoint"?_e="formPage":K?_e="hashTagPage":!((Oe=M?.video)===null||Oe===void 0)&&Oe.url?_e="videoPage":!((Me=M?.video)===null||Me===void 0)&&Me.imgUrls&&(!((Ie=(ye=M?.video)===null||ye===void 0?void 0:ye.imgUrls)===null||Ie===void 0)&&Ie.length)?_e="imagePage":M?.product&&(_e="productPage"),_?.({eventInfo:{sessionDuration:Math.floor((new Date-Ce.current)/1e3)+"",eventSubject:"sessionCompleted",eventDescription:"Session completed",contentId:(at=M?.video)===null||at===void 0?void 0:at.itemId,productId:(rt=M?.product)===null||rt===void 0?void 0:rt.itemId,position:g+"",fromKName:_e,fromKPage:location?.href,ctatId:(gt=(nt=(dt=M?.video)===null||dt===void 0?void 0:dt.bindCta)===null||nt===void 0?void 0:nt.itemId)!==null&>!==void 0?gt:""}})}else document.visibilityState==="visible"&&(De(),ge(g),tt.emit($e.PAGE_DID_SHOW,M),Ve("external"))};return document.addEventListener("visibilitychange",ne),()=>{document.removeEventListener("visibilitychange",ne)}},[g,_,d,De,Q,K,l,Ce,Ve]),o.useEffect(()=>{const M=()=>{Ve("external")};return window.addEventListener("pageshow",M),()=>{window.removeEventListener("pageshow",M)}},[]);const qe=o.useMemo(()=>{let M=0;return m.length>0&&(M+=45,ee&&(M-=45)),M},[m,ee]),Ee=o.useMemo(()=>{let M=0;return t?.logoUrl&&t?.isShowLogo&&(M+=45),i-M-qe},[t,i,qe]),Nt=o.useMemo(()=>t?.logoUrl&&t?.isShowLogo?o.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:t?.color}},o.createElement("img",{src:t?.logoUrl,alt:"logo"})):null,[t]),mt=o.useCallback((M,ne)=>{var X,ae,de,le;return!((X=M?.video)===null||X===void 0)&&X.url?o.createElement(ia,{rec:M,index:ne,muted:O,data:d,height:Ee,activeIndex:g,videoPostConfig:t?.videoPost,videoRef:q}):!((ae=M?.video)===null||ae===void 0)&&ae.imgUrls?o.createElement(sa,{key:M?.video.itemId,imgUrls:M?.video.imgUrls,width:n,height:Ee,rec:M,index:ne,onReportViewImageEnd:be,onViewImageStartEvent:ge,imgUrlsPostConfig:t?.imgUrlsPost}):M.product&&Array.isArray(t?.productPost)&&((de=t?.productPost)===null||de===void 0?void 0:de.length)>0?(le=t?.productPost)===null||le===void 0?void 0:le.map((Z,se)=>{var we,Oe,Me,ye,Ie,at,rt,dt;const nt=s[(we=Z?.item)===null||we===void 0?void 0:we.type],gt=jt(nt),_e=(Oe=nt?.extend)===null||Oe===void 0?void 0:Oe.defaulSetting;return o.createElement(gt,Object.assign({key:`${ne}${se}`,textStyle:Object.assign(Object.assign({},_e?.textStyle),(Me=Z?.item)===null||Me===void 0?void 0:Me.textStyle),bindDatas:(Ie=(ye=Z?.item)===null||ye===void 0?void 0:ye.bindDatas)!==null&&Ie!==void 0?Ie:[]},_e?.props,(at=Z?.item)===null||at===void 0?void 0:at.props,{event:((rt=Z?.item)===null||rt===void 0?void 0:rt.event)||{},schema:C,id:Z?.id,viewTime:z.current,rec:M,isPost:!0,tipText:r,style:Object.assign(Object.assign(Object.assign({},_e?.style),(dt=Z?.item)===null||dt===void 0?void 0:dt.style),{height:"100%",overflow:"auto"}),index:ne}))}):null},[n,d,Ee,O,g,t?.productPost,z,r,s,C,q]),St=o.useCallback(M=>{R(M)},[]),H=o.useMemo(()=>N?{background:"linear-gradient( 180deg, rgba(129,129,129,0) 0%, rgba(121,121,121,0.5) 5%, #616161 100%)",paddingTop:20,paddingBottom:20}:{padding:"20px 0"},[N]),U=o.useCallback((M,ne)=>{var X,ae,de,le,Z,se,we;return M?.video?o.createElement(o.Fragment,null,((X=M?.video)===null||X===void 0?void 0:X.title)&&!N&&o.createElement("div",{className:"clc-sxp-bottom-shadow"}),o.createElement("div",{className:"clc-sxp-bottom"},o.createElement(fn,{nudge:u}),t?.isShowCTA===void 0||t?.isShowCTA?o.createElement("div",{className:"clc-sxp-bottom-card"},o.createElement(vn,{rec:M,index:ne,tempMap:l,resolver:s})):null,o.createElement("div",null,o.createElement(Mt,{className:"clc-sxp-bottom-text",isPost:!0,foldText:r?.foldText,unfoldText:r?.unfoldText,text:(de=(ae=M?.video)===null||ae===void 0?void 0:ae.title)!==null&&de!==void 0?de:"",style:Object.assign(Object.assign({},e),{textShadow:t?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none"}),onChange:St}),o.createElement(pn,{index:g,tags:(Z=(le=M?.video)===null||le===void 0?void 0:le.hashTags)!==null&&Z!==void 0?Z:[],itemId:(se=M?.video)===null||se===void 0?void 0:se.itemId,itemType:!((we=M?.video)===null||we===void 0)&&we.itemId?"VIDEO":null,rec:M,hashTagStyle:v})))):null},[e,g,l,s,r,u,v,t,St,N,H]),re=o.useCallback((M,ne)=>{var X,ae,de,le;if(!t?.isShowLike)return;let Z=(X=t?.likeIconY)!==null&&X!==void 0?X:400;return ee&&Z<40&&(Z+=40),M?.video?o.createElement(dn,{key:M.position,activeIcon:t?.likeIcon,unActicveIcon:t?.unlikeIcon,active:M.isCollected,recData:M,className:"clc-sxp-like-button",style:{[(ae=t.likeIconXPosit)!==null&&ae!==void 0?ae:"right"]:(de=t.likeIconX)!==null&&de!==void 0?de:0,[(le=t.likeIconYPosit)!==null&&le!==void 0?le:"bottom"]:Z},position:ne}):null},[t,ee]),be=M=>{var ne,X,ae,de,le,Z;if(!(!((ne=M?.video)===null||ne===void 0)&&ne.url)&&(!((X=M?.video)===null||X===void 0)&&X.imgUrls)){const se=Date.now(),we=(se-A.current)/1e3;_?.({eventInfo:{eventSubject:"viewImageCarouselEnd",eventDescription:"User end view the image carousel",contentId:(de=(ae=M?.video)===null||ae===void 0?void 0:ae.itemId)!==null&&de!==void 0?de:"",contentName:(le=M?.video.title)!==null&&le!==void 0?le:"",imageEndTime:`${se}`,playDuration:`${we}`,contentTags:JSON.stringify((Z=M?.video.tags)!==null&&Z!==void 0?Z:[]),position:g+"",contentFormat:"image",traceInfo:M?.video.traceInfo}})}},he=M=>{var ne,X,ae,de,le,Z,se,we,Oe,Me;z.current=new Date;const ye=d[M.previousIndex];if(!ye)return;M.previousIndex-M.activeIndex<0?(_?.({eventInfo:{eventSubject:"scrollDown",eventDescription:"User scroll down",contentId:(X=(ne=ye?.video)===null||ne===void 0?void 0:ne.itemId)!==null&&X!==void 0?X:"",productId:(de=(ae=ye?.product)===null||ae===void 0?void 0:ae.itemId)!==null&&de!==void 0?de:"",requestId:null}}),be(ye)):(_?.({eventInfo:{eventSubject:"scrollUp",eventDescription:"User scroll up",contentId:(Z=(le=ye?.video)===null||le===void 0?void 0:le.itemId)!==null&&Z!==void 0?Z:"",productId:(we=(se=ye.product)===null||se===void 0?void 0:se.itemId)!==null&&we!==void 0?we:"",requestId:null}}),be(ye)),Se(ye);const Ie=d[M.activeIndex];!(!((Oe=Ie?.video)===null||Oe===void 0)&&Oe.url)&&!(!((Me=Ie?.video)===null||Me===void 0)&&Me.imgUrls)&&Ie?.product&&me?.({eventName:"ProductView"})},Se=M=>{var ne,X,ae;!(!((ne=M?.video)===null||ne===void 0)&&ne.url)&&!(!((X=M?.video)===null||X===void 0)&&X.imgUrls)&&M?.product&&te(M,M.product,(ae=M?.product)===null||ae===void 0?void 0:ae.bindCta,z.current,g)};o.useEffect(()=>{const M=d[g];W&&Se(M)},[W,d,g]);const ge=M=>{var ne,X,ae,de,le,Z;const se=d[M];if(!(!((ne=se?.video)===null||ne===void 0)&&ne.url)&&(!((X=se?.video)===null||X===void 0)&&X.imgUrls)){const we=Date.now();A.current=we,_?.({eventInfo:{eventSubject:"viewImageCarouselStart",eventDescription:"User start view the image carousel",contentId:(de=(ae=se?.video)===null||ae===void 0?void 0:ae.itemId)!==null&&de!==void 0?de:"",contentName:(le=se?.video.title)!==null&&le!==void 0?le:"",imageStartTime:`${we}`,contentTags:JSON.stringify((Z=se?.video.tags)!==null&&Z!==void 0?Z:[]),position:M+"",contentFormat:"image",traceInfo:se?.video.traceInfo}}),me?.({eventName:"ViewContent"})}},Te=o.useMemo(()=>{const M=d?.map((ne,X)=>g===X||X-1===g||X+1===g?ne:null);return ee?M:M.concat([{loading:!0}])},[d,g,ee]),Ze=o.useMemo(()=>G?o.createElement("div",{style:{height:Ee,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},o.createElement("img",{width:64,height:64,src:oe,alt:"loading...",style:{objectFit:"contain"}})):Te?.map((M,ne)=>o.createElement(Ke,{key:ne,virtualIndex:ne},M&&o.createElement(o.Fragment,null,M?.loading?o.createElement("div",{style:{height:Ee,width:n,display:"flex",justifyContent:"center",alignItems:"center"}},o.createElement("img",{width:64,height:64,src:oe,alt:"loading...",style:{objectFit:"contain"}})):o.createElement(o.Fragment,null,mt(M,ne),U(M,ne),re(M,ne))))),[n,d,Ee,G,U,mt,Te,oe]),st=He("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png"),ht=He("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png");return o.createElement("div",{id:"sxp-render",className:"clc-sxp-container"},ee&&o.createElement(ln,{icon:ra,styles:{background:"rgba(0,0,0,.3)",color:"#fff"},onClose:()=>{Y?.(!0)}}),Nt,o.createElement(mn,{tagList:m,setActiveIndex:E}),Ye?o.createElement(oa,{imageUrl:t?.swipeTipIcon,style:{top:`${50+((y=t?.swipeTipOffset)!==null&&y!==void 0?y:0)}%`}}):null,o.createElement(ut,{style:{marginTop:qe},ref:J,onSlideChange:()=>{J.current.swiper.allowTouchMove=!1,setTimeout(()=>{J.current.swiper.allowTouchMove=!0},500)},onActiveIndexChange:M=>{E(M.activeIndex),!W&&(he(M),!ee&&M?.activeIndex+2>=d?.length&&(F||(B(!0),j?.(Math.ceil(g/10)+1).then(()=>{B(!1)}))))},direction:"vertical",height:Ee},o.createElement(cn,{style:{position:"fixed",visibility:!((I=(S=d?.[g])===null||S===void 0?void 0:S.video)===null||I===void 0)&&I.url?"visible":"hidden",zIndex:999,[(p=t?.muteIconXPosit)!==null&&p!==void 0?p:"right"]:(b=t?.muteIconX)!==null&&b!==void 0?b:0,[(f=t?.muteIconYPosit)!==null&&f!==void 0?f:"bottom"]:(x=t?.muteIconY)!==null&&x!==void 0?x:23},defaultValue:O,activeIcon:t?.unMuteIcon?t?.unMuteIcon:st,unactiveIcon:t?.muteIcon?t?.muteIcon:ht,onChange:L}),Ze),o.createElement(an,Object.assign({},(P=(h=(k=t?.hashTag)===null||k===void 0?void 0:k[0])===null||h===void 0?void 0:h.item)===null||P===void 0?void 0:P.props)),o.createElement("div",{style:{position:"absolute",zIndex:-100}},o.createElement("video",{ref:fe,id:"player-container-id",playsInline:!0,crossOrigin:"anonymous",style:{backgroundColor:"transparent",width:"100%",height:"100%",objectFit:"cover",pointerEvents:"none"}}),o.createElement("div",{id:"player-container-id-copy"})))},ua=({imgUrls:t,width:e,height:i,imgUrlsPostConfig:n,rec:l,index:s})=>o.createElement(ut,{defaultValue:0,direction:"horizontal",modules:[kt,Dt],pagination:{clickable:!0,bulletActiveClass:"swipe-item-active-bullet"},height:i,style:{width:e},loop:!0,autoplay:!1},t?.map(d=>o.createElement(Ke,{key:d},o.createElement(un,{src:d,height:i,imgUrlsPostConfig:n}))));var pa=o.memo(ua);const va=({rec:t,index:e,height:i,data:n,muted:l,activeIndex:s,videoPostConfig:d,width:a})=>{const[r,u]=o.useState(!1),c=o.useRef(null),{bffEventReport:v,sxpParameter:m,waterFallData:w,openHashtag:y}=ve(),S=o.useRef(0),[I,p]=o.useState(!1),[b,f]=o.useState(!0),x=o.useRef(null),[k,h]=o.useState("");o.useEffect(()=>{c.current&&(c.current.muted=l)},[l]);const P=o.useCallback(()=>{var N;(N=c.current)===null||N===void 0||N.play()},[]),C=He("/pb_static/06f28a2025c74c1cb49be6767316d827.png"),g=o.useCallback(()=>{var N,R,j,_,G,V,$,J,ee,Y,pe,W,oe;u(!1);const K=n[e];if(K&&(!((N=c?.current)===null||N===void 0)&&N.duration)){S.current=((R=c?.current)===null||R===void 0?void 0:R.currentTime)||0;const Q=((_=(j=c.current)===null||j===void 0?void 0:j.duration)!==null&&_!==void 0?_:0).toFixed(2),me=((V=(G=c.current)===null||G===void 0?void 0:G.currentTime)!==null&&V!==void 0?V:0).toFixed(2),Ce=b?"0":"1";v?.({eventInfo:{eventSubject:"playVideo",eventDescription:"User played the video",contentId:(J=($=K?.video)===null||$===void 0?void 0:$.itemId)!==null&&J!==void 0?J:"",contentName:(Y=(ee=K?.video)===null||ee===void 0?void 0:ee.title)!==null&&Y!==void 0?Y:"",playType:Ce,startTime:me,videoDuration:Q,contentTags:JSON.stringify((W=(pe=K?.video)===null||pe===void 0?void 0:pe.tags)!==null&&W!==void 0?W:[]),position:e+"",contentFormat:"video",traceInfo:(oe=K?.video)===null||oe===void 0?void 0:oe.traceInfo}}),f(!1)}},[v,n,e,b]),E=o.useCallback(()=>{p(!0)},[]),A=o.useCallback(N=>()=>{var R,j,_,G,V;if(!I)return;const $=(R=c.current)===null||R===void 0?void 0:R.paused;switch(N){case"start":if(!$)return;(j=c.current)===null||j===void 0||j.play(),u(!1);break;case"pause":if($)return;(_=c.current)===null||_===void 0||_.pause(),u(!0);break;default:$?(G=c.current)===null||G===void 0||G.play():(V=c.current)===null||V===void 0||V.pause(),u(!$);break}},[I]),T=o.useCallback(()=>{var N,R,j,_,G,V,$,J,ee,Y,pe,W,oe;const K=n[e],Q=((R=(N=c.current)===null||N===void 0?void 0:N.duration)!==null&&R!==void 0?R:0).toFixed(2),me=((_=(j=c.current)===null||j===void 0?void 0:j.currentTime)!==null&&_!==void 0?_:0).toFixed(2);if(!((G=c?.current)===null||G===void 0)&&G.duration){const Ce=(((V=c?.current)===null||V===void 0?void 0:V.currentTime)-S.current).toFixed(2);v?.({eventInfo:{eventSubject:"playOverVideo",eventDescription:"User finished playing the video",contentId:(J=($=K?.video)===null||$===void 0?void 0:$.itemId)!==null&&J!==void 0?J:"",contentName:(Y=(ee=K?.video)===null||ee===void 0?void 0:ee.title)!==null&&Y!==void 0?Y:"",endTime:me,videoDuration:Q,playDuration:Ce,contentTags:JSON.stringify((W=(pe=K?.video)===null||pe===void 0?void 0:pe.tags)!==null&&W!==void 0?W:[]),position:e+"",contentFormat:"video",traceInfo:(oe=K?.video)===null||oe===void 0?void 0:oe.traceInfo}})}},[n,e,v]),D=o.useMemo(()=>d?.mode==="2",[d]),O=o.useMemo(()=>{var N;return d?.mode==="2"?`translateY(-${50+((N=d?.offsetTop)!==null&&N!==void 0?N:0)}%) translate3d(0px, 0px, 0px)`:"translateY(-50%)"},[d]),L=o.useMemo(()=>{var N;return((N=t?.video)===null||N===void 0?void 0:N.cover)||k},[k,t]),z=o.useCallback(()=>{if(!x||!c||!c.current||!x.current)return;const N=c?.current,R=x?.current,j=R.getContext("2d"),_=window?.innerWidth,G=window?.innerHeight;R.height=G,R.width=_,j?.drawImage(N,0,0,R.width,R.height),h(R.toDataURL())},[]);o.useEffect(()=>{var N,R,j,_;if(c.current){if(u(!1),!c.current.src){const G=t?.video.url;if(G.includes(".m3u8"))if(typeof window<"u"&&window?.Hls.isSupported()){const V=new window.Hls;V.loadSource(G),V.attachMedia(c.current)}else c.current.canPlayType("application/vnd.apple.mpegurl"),c.current.src=G;else c.current.src=G;c.current.setAttribute("x5-playsinline","true"),c.current.setAttribute("webkit-playsinline","true")}return(N=c.current)===null||N===void 0||N.addEventListener("loadedmetadata",E),(R=c.current)===null||R===void 0||R.addEventListener("canplay",E),(j=c.current)===null||j===void 0||j.addEventListener("playing",g),(_=c.current)===null||_===void 0||_.addEventListener("loadeddata",z),()=>{var G,V,$,J;(G=c.current)===null||G===void 0||G.removeEventListener("loadedmetadata",E),(V=c.current)===null||V===void 0||V.removeEventListener("canplay",E),($=c.current)===null||$===void 0||$.removeEventListener("playing",g),(J=c.current)===null||J===void 0||J.removeEventListener("loadeddata",z)}}},[E,g,t?.video,z]);const F=o.useMemo(()=>!m?.placeholder_image||I?null:o.createElement("img",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",objectFit:"cover"},src:m?.placeholder_image}),[I,m?.placeholder_image]);o.useEffect(()=>{const N=()=>{var R,j;s===e&&(!((R=t?.video)===null||R===void 0)&&R.url)&&(!((j=c?.current)===null||j===void 0)&&j.src)&&!r&&A("pause")()};return window.addEventListener("beforeunload",N),()=>{window.removeEventListener("beforeunload",N)}},[s,e,t,c,A,r]);const B=o.useMemo(()=>D?{filter:"blur(10px)",transform:"translate3d(0px, 0px, 0px) scale(1.2)"}:{},[D]);return t?.video?o.createElement(o.Fragment,null,D?o.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:A(),style:{position:"relative",width:a,height:i,overflow:"hidden"}},o.createElement(Ne,{src:L,style:Object.assign({height:i,width:a,objectFit:"cover"},B)}),o.createElement("canvas",{ref:x,style:{display:"none"}}),o.createElement("div",{style:{position:"absolute",width:a,height:i,top:"50%",transform:O,left:0,right:0}},o.createElement("div",{style:{position:"relative",width:a,height:"100%"}},o.createElement("video",{id:`pb-video-${e}`,className:"clc-pb-video",ref:c,autoPlay:!0,crossOrigin:"anonymous",muted:!0,controls:!1,playsInline:!0,preload:"auto",onPause:T,onEnded:P,style:{width:"100%",height:i,objectFit:"contain"}}),o.createElement("img",{hidden:!r,className:"clc-pb-video-pause",src:C}))),F):o.createElement("div",{className:"video-container",key:t?.video.itemId,onClick:A(),style:{position:"relative",width:a,height:i,overflow:"hidden"}},o.createElement("video",{id:`pb-video-${e}`,className:"clc-pb-video",style:{width:"100%"},ref:c,crossOrigin:"anonymous",muted:!0,autoPlay:!0,controls:!1,playsInline:!0,preload:"auto",onPause:T,onEnded:P}),F,o.createElement("img",{hidden:!r,className:"clc-pb-video-pause",src:C}))):null};var fa=o.memo(va);const bi={};Object.values(hi).forEach(t=>{bi[t.extend.type]=t});const ma="/pb_static/f71266d2c64446c5ae6a5a7f5489cc0a.png",ha="/pb_static/f07900fe3f0f4ae188ea1611d4801a44.png",ga=({data:t=[],globalConfig:e,tipText:i,nudge:n,tempMap:l,descStyle:s,hashTagStyle:d,containerHeight:a=664,containerWidth:r=375,appDomain:u,tagList:c=[]})=>{const v=o.useMemo(()=>{let h=0;return e?.logoUrl&&e?.isShowLogo&&(h+=45),c.length>0&&(h+=45),a-h},[e,a,c]),m=(h,P)=>{var C,g,E,A;if(!((C=h?.video)===null||C===void 0)&&C.url)return o.createElement(fa,{rec:h,index:P,muted:!0,width:r,data:t??[],height:v,activeIndex:P,videoPostConfig:e?.videoPost});if(!((g=h?.video)===null||g===void 0)&&g.imgUrls)return o.createElement(pa,{key:h?.video.itemId,imgUrls:h?.video.imgUrls,width:r,height:v,rec:h,index:P,imgUrlsPostConfig:e?.imgUrlsPost});if(h.product&&h.product&&Array.isArray(e?.productPost)&&((E=e?.productPost)===null||E===void 0?void 0:E.length)>0)return(A=e?.productPost)===null||A===void 0?void 0:A.map((T,D)=>{var O,L,z,F,B,N,R,j;const _=bi[(O=T?.item)===null||O===void 0?void 0:O.type],G=jt(_),V=(L=_?.extend)===null||L===void 0?void 0:L.defaulSetting;return o.createElement(G,Object.assign({key:`${P}${D}`,textStyle:Object.assign(Object.assign({},V?.textStyle),(z=T?.item)===null||z===void 0?void 0:z.textStyle),bindDatas:(B=(F=T?.item)===null||F===void 0?void 0:F.bindDatas)!==null&&B!==void 0?B:[]},V?.props,(N=T?.item)===null||N===void 0?void 0:N.props,{event:((R=T?.item)===null||R===void 0?void 0:R.event)||{},id:T?.id,rec:h,isPost:!0,tipText:i,style:Object.assign(Object.assign(Object.assign({},V?.style),(j=T?.item)===null||j===void 0?void 0:j.style),{width:r,height:v,overflow:"auto"}),index:P}))})},w=o.useMemo(()=>e?.logoUrl&&e?.isShowLogo?o.createElement("div",{className:"clc-sxp-logo-banner",style:{backgroundColor:e?.color}},o.createElement("img",{src:e?.logoUrl,alt:"logo"})):null,[e]),y=(h,P)=>e?.isShowCTA===void 0||e?.isShowCTA?o.createElement("div",{className:"clc-sxp-bottom-card"},o.createElement(vn,{rec:h,index:P,tempMap:l,resolver:bi})):null,S=(h,P)=>{var C,g,E,A,T,D,O;return h?.video?o.createElement(o.Fragment,null,((C=h?.video)===null||C===void 0?void 0:C.title)&&o.createElement("div",{className:"clc-sxp-bottom-shadow"}),o.createElement("div",{className:"clc-sxp-bottom"},o.createElement(fn,{nudge:n}),y(h,P),o.createElement("div",null,o.createElement(Mt,{className:"clc-sxp-bottom-text",isPost:!0,foldText:i?.foldText,unfoldText:i?.unfoldText,text:(E=(g=h?.video)===null||g===void 0?void 0:g.title)!==null&&E!==void 0?E:"",style:Object.assign(Object.assign({},s),{textShadow:e?.isOpenTextShadow?"2px 2px 4px rgba(0, 0, 0, 0.5)":"none"})})),o.createElement(pn,{index:P,tags:(T=(A=h?.video)===null||A===void 0?void 0:A.hashTags)!==null&&T!==void 0?T:[],itemId:(D=h?.video)===null||D===void 0?void 0:D.itemId,itemType:!((O=h?.video)===null||O===void 0)&&O.itemId?"VIDEO":null,rec:h,hashTagStyle:d}))):null},I=He(ha,u),p=He(ma,u),b=(h,P)=>{var C,g,E,A;if(!e?.isShowLike)return;let T=(C=e?.likeIconY)!==null&&C!==void 0?C:400;return T<40&&(T+=40),h?.video?o.createElement(dn,{key:h.position,activeIcon:(g=e?.likeIcon)!==null&&g!==void 0?g:I,unActicveIcon:(E=e?.unlikeIcon)!==null&&E!==void 0?E:p,position:P,active:h.isCollected,recData:h,className:"clc-sxp-like-button",style:{top:T,right:(A=e?.likeIconX)!==null&&A!==void 0?A:0}}):null},f=He("/pb_static/5beaaa5ce7f3477b99db3838619cc471.png",u),x=He("/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png",u),k=(h,P)=>{var C,g,E,A;return o.createElement("div",{style:{position:"relative",border:"1px solid #e1e1e1"}},w,o.createElement(mn,{tagList:c}),o.createElement(cn,{style:{position:"absolute",right:(C=e?.muteIconX)!==null&&C!==void 0?C:0,visibility:!((E=(g=t?.[P])===null||g===void 0?void 0:g.video)===null||E===void 0)&&E.url?"visible":"hidden",bottom:(A=e?.muteIconY)!==null&&A!==void 0?A:23,zIndex:999},defaultValue:!0,activeIcon:e?.unMuteIcon?e?.unMuteIcon:f,unactiveIcon:e?.muteIcon?e?.muteIcon:x}),m(h,P),S(h,P),b(h,P))};return o.createElement("div",{className:ie.css({width:"100%",height:a,display:"flex",boxSizing:"border-box",gap:16,pointerEvents:"none",userSelect:"none",transform:"scale(0.7) translateX(-22%) translateY(-140px)"})},t?.map((h,P)=>k(h,P)))};var ba=o.memo(ga);const ya=()=>{const{schema:t,resolver:e,popup:i}=et(),{setPopupDetailData:n,popupDetailData:l,bffEventReport:s}=ve(),{productView:d}=Be(),[a,r]=o.useState(),u=o.useRef(null);o.useEffect(()=>{const m=()=>{u.current=new Date};return m(),window.addEventListener("pageshow",m),()=>{window.removeEventListener("pageshow",m)}},[]),o.useEffect(()=>{i&&i?.id&&i?.id!==""&&(u.current=new Date,r(i))},[i]);const c=()=>{var m,w,y,S;if(!i||i?.id===""||!a||new Date-u.current<((m=i?.duration)!==null&&m!==void 0?m:0))return;r(Object.assign(Object.assign({},i),{id:""}));const I=l,p=(w=I?.video)===null||w===void 0?void 0:w.bindProduct,b=(S=(y=I?.video)===null||y===void 0?void 0:y.bindProduct)===null||S===void 0?void 0:S.bindCta;p&&b&&d(I,p,b,u.current,l?.index),setTimeout(()=>{window?.sxpPopup(""),n?.(null)},i?.duration)},v=o.useMemo(()=>{var m,w,y;return(y=(w=(m=t?.sxpPageConf)===null||m===void 0?void 0:m.globalConfig)===null||w===void 0?void 0:w.popupList)===null||y===void 0?void 0:y.map((S,I)=>{var p,b,f,x,k,h,P,C,g,E,A,T,D,O,L;if(S?.id===i?.id){const z=e[(p=S?.item)===null||p===void 0?void 0:p.type],F=jt(z),B=((x=(f=(b=S?.item)===null||b===void 0?void 0:b.event)===null||f===void 0?void 0:f.onClick)===null||x===void 0?void 0:x.linkType)==="externalLink",N=((P=(h=(k=S?.item)===null||k===void 0?void 0:k.event)===null||h===void 0?void 0:h.onClick)===null||P===void 0?void 0:P.linkType)==="popup",R=(C=z?.extend)===null||C===void 0?void 0:C.defaulSetting;return o.createElement(F,Object.assign({key:I,style:Object.assign(Object.assign(Object.assign({},R?.style),(g=S?.item)===null||g===void 0?void 0:g.style),{width:(E=window.innerWidth)!==null&&E!==void 0?E:"100vw",height:"80vh",overflow:"auto"}),textStyle:Object.assign(Object.assign({},R?.textStyle),(A=S?.item)===null||A===void 0?void 0:A.textStyle),bindDatas:(D=(T=S?.item)===null||T===void 0?void 0:T.bindDatas)!==null&&D!==void 0?D:[]},R?.props,(O=S?.item)===null||O===void 0?void 0:O.props,{event:((L=S?.item)===null||L===void 0?void 0:L.event)||{},schema:t,id:S?.id,isExternalLink:B,isPopup:N,onClose:c}))}else return o.createElement(o.Fragment,null)})},[t,i,e,c]);return o.createElement(Ot,{popup:a,onClose:c,padding:0,modalStyle:{position:"fixed"}},v)},yi={};Object.values(hi).forEach(t=>{yi[t.extend.type]=t});const wa=({data:t,maxSize:e=10,defaultSize:i=10,hashTagSize:n=20,loadingImage:l,appDomain:s,licenseUrl:d,enabledMetaConversionApi:a})=>{var r,u,c,v,m,w,y,S,I,p,b;const f=o.useMemo(()=>{var x;return location?.search?(x=location?.search)===null||x===void 0?void 0:x.replace("?",""):""},[]);return o.createElement(ji,{resolver:yi,enableDataSource:!1,schema:t?.data,utmVal:f},o.createElement(Pi,{utmVal:f,dataSources:t?.data_sources,sxpParameter:t?.sxp_parameter,maxSize:(u=(r=t?.sxp_parameter)===null||r===void 0?void 0:r.personalized_recommend)!==null&&u!==void 0?u:e,defaultSize:(v=(c=t?.sxp_parameter)===null||c===void 0?void 0:c.default_recommend)!==null&&v!==void 0?v:i,hashTagSize:(w=(m=t?.sxp_parameter)===null||m===void 0?void 0:m.hash_tag_size)!==null&&w!==void 0?w:n,loadingImage:l,appDomain:s,enabledMetaConversionApi:a,isShowTag:(I=(S=(y=t?.data)===null||y===void 0?void 0:y.sxpPageConf)===null||S===void 0?void 0:S.globalConfig)===null||I===void 0?void 0:I.isShowTag,globalConfig:(b=(p=t?.data)===null||p===void 0?void 0:p.sxpPageConf)===null||b===void 0?void 0:b.globalConfig,render:({rtcList:x,tagList:k})=>{var h;return o.createElement(o.Fragment,null,o.createElement(hn,Object.assign({},(h=t?.data)===null||h===void 0?void 0:h.sxpPageConf,{tagList:k,data:x,resolver:yi,licenseUrl:d})),o.createElement(ya,null))}}))};var Sa=o.memo(wa);const gn=o.createContext({}),Ta=({children:t,data:e})=>{var i,n,l,s,d,a,r,u,c,v,m,w,y;const[S,I]=o.useState(!1),[p,b]=o.useState(!1);return o.createElement(gn.Provider,{value:{sxpPrameter:{bottomImage:(i=e?.sxp_parameter)===null||i===void 0?void 0:i.bottom_image,defaultRecommend:(n=e?.sxp_parameter)===null||n===void 0?void 0:n.default_recommend,personalizedRecommend:(l=e?.sxp_parameter)===null||l===void 0?void 0:l.personalized_recommend,placeholderImage:(s=e?.sxp_parameter)===null||s===void 0?void 0:s.placeholder_image,hashTagSize:(d=e?.sxp_parameter)===null||d===void 0?void 0:d.hash_tag_size,loadingImage:(a=e?.sxp_parameter)===null||a===void 0?void 0:a.loading_image,privacyContent:(r=e?.sxp_parameter)===null||r===void 0?void 0:r.privacy_context,privacyNecessity:(u=e?.sxp_parameter)===null||u===void 0?void 0:u.privacy_necessity,privacyPolicyTitle:(c=e?.sxp_parameter)===null||c===void 0?void 0:c.privacy_policy_title,privacyPolicyUrl:(v=e?.sxp_parameter)===null||v===void 0?void 0:v.privacy_policy_url,privacyTitle:(m=e?.sxp_parameter)===null||m===void 0?void 0:m.privacy_title,template:(w=e?.sxp_parameter)===null||w===void 0?void 0:w.template,industry:(y=e?.sxp_parameter)===null||y===void 0?void 0:y.industry},appDomain:e?.appDomain,openHashtag:S,setOpenHashtag:I,openConsent:p,setOpenConsent:b}},t)};function xa(){return o.useContext(gn)}exports.DiyPortalPreview=ba,exports.EditorDataProvider=Ta,exports.Modal=Ot,exports.SxpDataSourceProvider=Pi,exports.SxpPageCore=Sa,exports.SxpPageRender=hn,exports.core=Vn,exports.default=An,exports.defaultSetting=ze,exports.materials=hi,exports.useEditorDataProvider=xa;
|
7
7
|
//# sourceMappingURL=index.min.cjs.map
|