@salla.sa/twilight-components 1.6.0 → 1.6.1
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/cjs/Helper-8ae6a805.js +28 -0
- package/dist/cjs/arrow-right-3d137e4c.js +13 -0
- package/dist/cjs/cancel-ae668d91.js +13 -0
- package/dist/cjs/check-circle2-1aac98d1.js +13 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mail-2db058ee.js +13 -0
- package/dist/cjs/salla-add-product-button_13.cjs.entry.js +2870 -0
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +93 -0
- package/dist/cjs/salla-list-tile_2.cjs.entry.js +80 -0
- package/dist/cjs/salla-loyalty.cjs.entry.js +229 -0
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +52 -0
- package/dist/cjs/salla-quantity-input.cjs.entry.js +101 -0
- package/dist/cjs/salla-rating-modal.cjs.entry.js +169 -0
- package/dist/cjs/salla-social-share.cjs.entry.js +1447 -0
- package/dist/cjs/salla-swiper.cjs.entry.js +5023 -0
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +159 -0
- package/dist/cjs/star2-8288e6e1.js +13 -0
- package/dist/cjs/twilight-components.cjs.js +1 -1
- package/dist/collection/components/salla-login-modal/salla-login-modal.js +4 -3
- package/dist/components/salla-login-modal.js +4 -3
- package/dist/esm/Helper-e1d414a5.js +26 -0
- package/dist/esm/arrow-right-1c3e04f2.js +11 -0
- package/dist/esm/cancel-41a92070.js +11 -0
- package/dist/esm/check-circle2-f6e5f685.js +11 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mail-9d5204c6.js +11 -0
- package/dist/esm/salla-add-product-button_13.entry.js +2854 -0
- package/dist/esm/salla-infinite-scroll.entry.js +89 -0
- package/dist/esm/salla-list-tile_2.entry.js +75 -0
- package/dist/esm/salla-loyalty.entry.js +225 -0
- package/dist/esm/salla-product-size-guide.entry.js +48 -0
- package/dist/esm/salla-quantity-input.entry.js +97 -0
- package/dist/esm/salla-rating-modal.entry.js +165 -0
- package/dist/esm/salla-social-share.entry.js +1443 -0
- package/dist/esm/salla-swiper.entry.js +5019 -0
- package/dist/esm/salla-tab-content_3.entry.js +153 -0
- package/dist/esm/star2-b134fc74.js +11 -0
- package/dist/esm/twilight-components.js +1 -1
- package/dist/twilight-components/p-14f0ff17.entry.js +4 -0
- package/dist/twilight-components/p-2749c9d3.entry.js +4 -0
- package/dist/twilight-components/p-335abbbb.entry.js +4 -0
- package/dist/twilight-components/p-4cafb11b.entry.js +4 -0
- package/dist/twilight-components/p-5e63e308.entry.js +4 -0
- package/dist/twilight-components/p-648e74e5.entry.js +4 -0
- package/dist/twilight-components/p-897b2018.js +4 -0
- package/dist/twilight-components/p-93708e1e.js +4 -0
- package/dist/twilight-components/p-9d236cf4.entry.js +4 -0
- package/dist/twilight-components/p-9d2ca9c8.js +4 -0
- package/dist/twilight-components/p-af7d5660.js +4 -0
- package/dist/twilight-components/p-bdbd2386.entry.js +4 -0
- package/dist/twilight-components/p-cac3db69.entry.js +4 -0
- package/dist/twilight-components/p-d914a212.js +4 -0
- package/dist/twilight-components/p-dace8e6d.js +4 -0
- package/dist/twilight-components/p-f9253fda.entry.js +4 -0
- package/dist/twilight-components/twilight-components.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/salla-add-product-button.cjs.entry.js +0 -104
- package/dist/cjs/salla-button_24.cjs.entry.js +0 -10087
- package/dist/esm/salla-add-product-button.entry.js +0 -100
- package/dist/esm/salla-button_24.entry.js +0 -10060
- package/dist/twilight-components/p-30b2c5b0.entry.js +0 -4
- package/dist/twilight-components/p-76cb2574.entry.js +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import{r as a,h as l}from"./p-1503d976.js";import{S as t}from"./p-d914a212.js";import{C as s}from"./p-dace8e6d.js";const e=class{constructor(l){a(this,l),this.loyaltyProgram=void 0,this.buttonLoading=!1,this.selectedItem=void 0,this.askConfirmation=!1,this.is_loggedin=!1,this.prizePoints=void 0,this.customerPoints=void 0,this.prizeTitle=void 0,this.allowEmail=!0,this.allowMobile=!0,this.requireEmail=!1,salla.event.on("loyalty::open",(()=>this.open())),salla.auth.event.onLoggedIn((()=>{this.is_loggedin=!0})),salla.lang.onLoaded((()=>{this.translationLoaded=!0}))}setSelectedPrizeItem(a){this.selectedItem=this.selectedItem&&this.selectedItem.id==a.id?void 0:a}handleLongText(a){return a.length>150?a.substring(0,150)+"...":a}prizeItem(a){return l("div",{onClick:()=>this.setSelectedPrizeItem(a),class:{"s-loyalty-prize-item-selected":!!this.selectedItem&&this.selectedItem.id==a.id,"s-loyalty-prize-item":!0}},l("img",{class:"s-loyalty-prize-item-image",src:a.image,alt:a.name}),l("div",{class:"s-loyalty-prize-item-title"},a.name),l("div",{class:"s-loyalty-prize-item-subtitle"},this.handleLongText(a.description)),l("div",{class:"s-loyalty-prize-item-points"},a.cost_points," ",salla.lang.get("pages.loyalty_program.point"),l("div",{class:"s-loyalty-prize-item-check"},l("div",null))))}getConfirmationModal(){var a,t;return[l("salla-placeholder",{alignment:"center",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80">\n<title>star3</title>\n <defs>\n <style>\n .a {\n fill: none !important;\n }\n\n .b {\n fill: #ff9e01;\n }\n\n .c {\n fill: #fff;\n opacity: 0.1;\n }\n\n </style>\n </defs>\n <g transform="translate(-683 -269)">\n <rect class="a" width="80" height="80" transform="translate(683 269)" />\n <g transform="translate(684.539 261.216)">\n <path class="b"\n d="M110.117,37.062,90.024,35.2,82.043,16.665a1.61,1.61,0,0,0-2.958,0L71.1,35.2,51.011,37.062a1.61,1.61,0,0,0-.914,2.813l15.16,13.318L60.821,72.878a1.61,1.61,0,0,0,2.393,1.739l17.351-10.3,17.351,10.3a1.61,1.61,0,0,0,2.393-1.739L95.871,53.192l15.16-13.318A1.61,1.61,0,0,0,110.117,37.062Z"\n transform="translate(-42.104 -4.011)" />\n <g transform="translate(0 10.971)">\n <path class="b"\n d="M93.54,12.016c1.024,1.423,3.915,7.533,5.568,11.094a.559.559,0,0,1-.891.641c-2.853-2.7-7.73-7.377-8.754-8.8a2.512,2.512,0,0,1,4.077-2.935Z"\n transform="translate(-75.621 -10.971)" />\n <path class="b"\n d="M360.909,12.016c-1.024,1.423-3.915,7.533-5.568,11.094a.559.559,0,0,0,.891.641c2.853-2.7,7.73-7.377,8.754-8.8a2.512,2.512,0,0,0-4.077-2.935Z"\n transform="translate(-301.908 -10.971)" />\n <path class="b"\n d="M427.538,284.659c-1.667-.543-8.366-1.441-12.261-1.934a.559.559,0,0,0-.34,1.044c3.436,1.9,9.377,5.123,11.044,5.666a2.512,2.512,0,0,0,1.558-4.776Z"\n transform="translate(-352.351 -241.894)" />\n <path class="b"\n d="M1.734,284.659c1.667-.543,8.366-1.441,12.261-1.934a.559.559,0,0,1,.34,1.044c-3.436,1.9-9.377,5.123-11.044,5.666a2.512,2.512,0,0,1-1.558-4.776Z"\n transform="translate(0 -241.894)" />\n <path class="b"\n d="M239.794,412.414c0-1.753,1.224-8.4,1.963-12.257a.559.559,0,0,1,1.1,0c.739,3.855,1.963,10.5,1.963,12.257a2.512,2.512,0,0,1-5.023,0Z"\n transform="translate(-203.768 -341.301)" />\n </g>\n <path class="c"\n d="M84.945,23.4l-2.9-6.74a1.61,1.61,0,0,0-2.958,0L71.1,35.2,51.011,37.062a1.61,1.61,0,0,0-.914,2.813l15.16,13.318L60.821,72.878a1.61,1.61,0,0,0,2.393,1.739l2.309-1.371A125,125,0,0,1,84.945,23.4Z"\n transform="translate(-42.104 -4.011)" />\n </g>\n </g>\n</svg>\n',class:"s-loyalty-confirmation-modal-content"},l("div",{slot:"title",class:"s-loyalty-confirmation-title"},salla.lang.get("pages.loyalty_program.exchange_points")),l("div",{slot:"description"},salla.lang.get("pages.loyalty_program.are_you_sure_to_exchange")," ( ",l("strong",null,null===(a=this.selectedItem)||void 0===a?void 0:a.cost_points)," ) ",salla.lang.get("pages.loyalty_program.for")," ( ",l("strong",null,null===(t=this.selectedItem)||void 0===t?void 0:t.name)," )")),l("div",{class:"s-loyalty-confirmation-actions"},l("salla-button",{fill:"outline",width:"wide",onClick:()=>this.cancelProcess()},salla.lang.get("pages.loyalty_program.cancellation")),l("salla-button",{loading:this.buttonLoading,width:"wide",onClick:()=>this.exchangeLoyaltyPoint()},salla.lang.get("pages.loyalty_program.confirm")))]}getAfterExchangeUI(){return l("slot",{name:"points-applied-widget"},l("salla-list-tile",{class:"s-loyalty-after-exchange"},l("div",{slot:"title",class:"s-loyalty-after-exchange-title"},this.prizeTitle," - ",this.prizePoints),l("div",{slot:"action",class:"s-loyalty-after-exchange-action"},l("salla-button",{class:"s-loyalty-after-exchange-reset",shape:"icon",fill:"outline",color:"danger",size:"small",onClick:()=>this.resetExchange()},l("span",{innerHTML:s})))))}async open(){return this.is_loggedin?(this.modal.open(),await salla.loyalty.getProgram().then((a=>{this.loyaltyProgram=a.data})).catch((a=>console.log(a))).finally((()=>{this.modal.stopLoading()}))):salla.event.dispatch("login::open")}async close(){return this.modal.close()}async resetExchange(){return await salla.loyalty.reset().then((()=>{this.prizePoints=void 0,this.prizeTitle=void 0})).catch((a=>console.log(a)))}async openConfirmation(){return await this.modal.close().then((()=>this.confirmationModal.open())).catch((a=>console.log(a)))}async cancelProcess(){return await this.confirmationModal.close().then((()=>this.selectedItem=null)).catch((a=>console.log(a)))}async exchangeLoyaltyPoint(){return this.buttonLoading=!0,await salla.loyalty.exchange(this.selectedItem.id).then((a=>{this.loyaltyProgram=a.data})).catch((a=>console.log(a))).finally((()=>{this.buttonLoading=!1,this.cancelProcess()}))}render(){return this.prizePoints?this.getAfterExchangeUI():[l("slot",{name:"widget"},this.customerPoints?l("salla-list-tile",{class:"s-loyalty-widget"},l("div",{slot:"icon",class:"s-loyalty-widget-icon",innerHTML:t}),l("div",{slot:"subtitle"},this.is_loggedin?salla.lang.get("pages.loyalty_program.cart_total_point_summary",{balance:this.customerPoints}):this.guestMessage||salla.lang.get("pages.loyalty_program.guest_message"),l("salla-button",{shape:"link",color:"primary",onClick:()=>salla.event.dispatch("loyalty::open")},this.is_loggedin?salla.lang.get("pages.loyalty_program.cart_point_exchange_now"):salla.lang.get("blocks.header.login")))):""),l("salla-modal",{noPadding:!0,width:"sm",ref:a=>this.confirmationModal=a},this.getConfirmationModal()),l("salla-modal",{isLoading:!0,"has-skeleton":!0,width:"md",ref:a=>this.modal=a},l("div",{slot:"loading"},l("div",{class:"s-loyalty-skeleton"},l("salla-list-tile",{class:"s-loyalty-header"},l("div",{slot:"icon",class:"s-loyalty-header-icon"},l("salla-skeleton",{type:"circle",height:"6rem",width:"6rem"})),l("div",{slot:"title",class:"s-loyalty-header-title mb-5"},l("salla-skeleton",{height:"15px",width:"50%"})),l("div",{slot:"subtitle",class:"s-loyalty-header-subtitle"},l("salla-skeleton",{height:"10px"}),l("salla-skeleton",{height:"10px",width:"75%"}))),l("div",{class:"s-loyalty-skeleton-cards"},[...Array(3)].map((()=>l("div",{class:"s-loyalty-prize-item"},l("salla-skeleton",{height:"9rem"}),l("div",{class:"s-loyalty-prize-item-title"},l("salla-skeleton",{height:"15px",width:"75%"})),l("div",{class:"s-loyalty-prize-item-subtitle"},l("salla-skeleton",{height:"10px",width:"50%"}),l("salla-skeleton",{height:"10px",width:"25%"})),l("div",{class:"s-loyalty-prize-item-points"},l("salla-skeleton",{height:"15px",width:"100px"}),l("div",{class:"s-loyalty-prize-item-check"},l("salla-skeleton",{height:"1rem",width:"1rem",type:"circle"}))))))))),this.loyaltyProgram?[l("salla-list-tile",{id:"s-loyalty-header",class:"s-loyalty-header"},l("div",{slot:"icon",class:"s-loyalty-header-icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" width="54.079" height="53.191" viewBox="0 0 54.079 53.191"><defs><style>.a{fill:#ee9d0d;}.b{fill:#c7830b;}.c{fill:#ea2b2d;}.d{fill:#cb2527;}.e{fill:#6699ce;}.f{fill:#faa6b2;}.g{fill:#a6deff;}.h{fill:#eeb436;}.i{fill:#f72d2f;}</style></defs><path class="a" d="M40,248H77.3v25.88a2.1,2.1,0,0,1-2.1,2.1H42.1a2.1,2.1,0,0,1-2.1-2.1Z" transform="translate(-38.135 -222.787)"/><path class="b" d="M250.632,248.711v12.755L236.2,248h13.67Z" transform="translate(-211.463 -222.787)"/><path class="b" d="M333.957,336v3.207L330.52,336Z" transform="translate(-294.787 -300.528)"/><path class="c" d="M226.194,32.048l-.5.185a5.035,5.035,0,0,0-3.072,3.292l-.468,1.585-.759.414a5.035,5.035,0,0,0-2.422,3l8.865,8.271,5.09-5.456.262-6.205a5.191,5.191,0,0,0-7-5.083Z" transform="translate(-196.246 -31.722)"/><path class="c" d="M358.628,175.48l-.15.509a5.034,5.034,0,0,1-3.072,3.292l-1.55.577-.359.785a5.034,5.034,0,0,1-2.822,2.624L341.81,175l5.09-5.455,6.172-.69a5.191,5.191,0,0,1,5.555,6.629Z" transform="translate(-304.761 -152.837)"/><path class="d" d="M168,248h7.461v27.978H168Z" transform="translate(-151.213 -222.787)"/><path class="c" d="M40,336H77.3v7.461H40Z" transform="translate(-38.135 -300.528)"/><path class="d" d="M333.957,336v3.207L330.52,336Z" transform="translate(-294.787 -300.528)"/><path class="a" d="M2.1,0H40.8a2.1,2.1,0,0,1,2.1,2.1V9.326H0V2.1A2.1,2.1,0,0,1,2.1,0Z" transform="matrix(0.731, 0.682, -0.682, 0.731, 18.641, 4.976)"/><path class="d" d="M0,0H9.326V9.326H0Z" transform="matrix(0.731, 0.682, -0.682, 0.731, 30.912, 16.424)"/><path class="d" d="M286.857,79.389a.931.931,0,0,1-.74-.365l-.615-.8a12.516,12.516,0,0,1-2.528-9,.933.933,0,0,1,1.855.2,10.66,10.66,0,0,0,2.153,7.667l.615.8a.933.933,0,0,1-.739,1.5Z" transform="translate(-252.718 -64.113)"/><path class="c" d="M185.485,178.151l-.039.014a30.78,30.78,0,0,1-12.034,1.906l-2.381-.1,4.092,3.817-1.181,4,3.728-1.206a30.775,30.775,0,0,0,9.833-5.315l.71-.572Z" transform="translate(-153.891 -161.081)"/><path class="d" d="M363.834,194.779a12.51,12.51,0,0,1-6.93-2.1l-.843-.559a.933.933,0,1,1,1.031-1.554l.842.558a10.659,10.659,0,0,0,7.8,1.618.933.933,0,1,1,.328,1.836A12.663,12.663,0,0,1,363.834,194.779Z" transform="translate(-316.982 -171.914)"/><path class="c" d="M275,202.524l-.012.04a30.776,30.776,0,0,0-1.069,12.137l.265,2.369-4.092-3.817-3.909,1.455.945-3.8a30.776,30.776,0,0,1,4.622-10.177l.521-.748Z" transform="translate(-237.949 -180.364)"/><circle class="e" cx="1.865" cy="1.865" r="1.865" transform="translate(10.259 0.032)"/><circle class="f" cx="1.865" cy="1.865" r="1.865" transform="translate(0 21.482)"/><path class="g" d="M36.663,36.663a.933.933,0,0,1-.885-.638l-.048-.143a2.946,2.946,0,0,0-2.8-2.017.933.933,0,1,1,0-1.865A4.808,4.808,0,0,1,37.5,35.292l.048.143a.933.933,0,0,1-.885,1.228Z" transform="translate(-31.067 -31.968)"/><path class="g" d="M79.493,194.438a.929.929,0,0,1-.506-.15l-.185-.12a2.074,2.074,0,0,0-2.192-.047.933.933,0,0,1-.947-1.607,3.929,3.929,0,0,1,4.153.088l.185.12a.933.933,0,0,1-.508,1.716Z" transform="translate(-69.235 -173.283)"/><path class="h" d="M27.751,85.141l2.88,2.644,3.811-.874-1.624,3.556,2.008,3.354-3.884-.446-2.569,2.946L27.6,92.49,24,90.957l3.4-1.922Z" transform="translate(-24 -78.914)"/><path class="h" d="M82.174,227.375l-.959,3.772,2.564,2.928-3.884.254L77.9,237.673l-1.442-3.615-3.8-.862,2.993-2.488-.353-3.876,3.291,2.078Z" transform="translate(-66.992 -204.086)"/><path class="i" d="M300.471,141.9l-5.455-5.09,5.09-5.456a8.342,8.342,0,0,1,5.455,5.09Z" transform="translate(-263.422 -119.737)"/></svg>'}),l("div",{slot:"title",class:"s-loyalty-header-title"},this.loyaltyProgram.prize_promotion_title),l("div",{slot:"subtitle",class:"s-loyalty-header-subtitle"},this.loyaltyProgram.prize_promotion_description)),l("salla-tabs",null,this.loyaltyProgram.prizes.map((a=>l("salla-tab-header",{slot:"header",name:a.title},l("span",null,a.title)))),this.loyaltyProgram.prizes.map((a=>l("salla-tab-content",{slot:"content",name:a.title},l("salla-swiper",{"space-between-items":"20"},a.items.map((a=>this.prizeItem(a)))))))),l("salla-button",{disabled:!this.selectedItem,width:"wide",class:"s-loyalty-program-redeem-btn",onClick:()=>this.openConfirmation()},salla.lang.get("pages.loyalty_program.exchange_points"))]:l("salla-placeholder",{class:"s-loyalty-placeholder",alignment:"center"}))]}componentDidLoad(){this.is_loggedin=salla.config.isUser()}};e.style="#salla-loyalty-modal .s-swiper-button-prev button,#salla-loyalty-modal .s-swiper-button-next button{box-shadow:#32325d40 0px 6px 12px -2px, #0000004d 0px 3px 7px -3px}";export{e as salla_loyalty}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import{r as s,h as t,c as e,g as i}from"./p-1503d976.js";const a=class{constructor(t){s(this,t),this.isSelected=!1}async getChild(){return{selected:this.selected.bind(this),unselect:this.unselect.bind(this),name:this.name}}unselect(){this.isSelected=!1}selected(){this.isSelected=!0}render(){return t("div",{class:{"s-tabs-content":!0,"s-tabs-content-selected":this.isSelected}},t("slot",null))}};a.style="";const h=class{constructor(t){s(this,t),this.tabSelected=e(this,"tabSelected",7),this.id=Math.random().toString(36).slice(2,10),this.activeClass=void 0,this.height=void 0,this.centered=!1,this.isSelected=!1}async getChild(){return{selected:this.selected.bind(this),unselect:this.unselect.bind(this),name:this.name,id:this.id}}unselect(){this.isSelected=!1}selected(){this.isSelected=!0}onClick(){this.getChild().then((s=>{this.tabSelected.emit(s)}))}render(){return[t("div",{class:{"s-tabs-header-item":!0,"s-tabs-bg-normal":!0,"s-tabs-active":this.isSelected},onClick:this.onClick.bind(this)},t("slot",null))]}};h.style="";const n=class{constructor(t){s(this,t),this.backgroundColor=void 0,this.vertical=!1}componentWillLoad(){this.createGroup().then((()=>{const[s]=this.tabGroup;this.selectGroup(s)}))}onSelectedTab(s){const t=this.tabGroup.find((t=>t.header.id===s.detail.id));this.selectGroup(t)}async createGroup(){const s=Array.from(this.host.querySelectorAll("salla-tab-header"));this.tabsHeader=await Promise.all(s.map((s=>s.getChild())));const t=Array.from(this.host.querySelectorAll("salla-tab-content"));this.tabsContent=await Promise.all(t.map((s=>s.getChild()))),this.tabGroup=this.tabsHeader.map((s=>{const t=this.tabsContent.find((t=>t.name===s.name));return{header:s,content:t}}))}selectGroup(s){this.tabGroup.map((s=>{s.header.unselect(),s.content.unselect()})),s.header.selected(),s.content.selected()}render(){return[t("div",{class:"s-tabs"},t("div",{class:"s-tabs-header"},t("slot",{name:"header"})),t("div",{class:"s-tabs-content-wrapper"},t("slot",{name:"content"})))]}get host(){return i(this)}};n.style=".s-tabs-header{-ms-overflow-style:none;scrollbar-width:none;}.s-tabs-header::-webkit-scrollbar{display:none}";export{a as salla_tab_content,h as salla_tab_header,n as salla_tabs}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import{r as s,h as t,H as n,g as i}from"./p-1503d976.js";import{H as l}from"./p-9d2ca9c8.js";const e=class{constructor(t){s(this,t),this.nextPage="",this.autoload=!1,this.container="salla-infinite-scroll",this.item="salla-infinite-scroll > *",l.setHost(this.host),this.status=document.createElement("div"),this.status.className="s-infinite-scroll-wrapper",this.status.innerHTML=`<div class="s-infinite-scroll-status" style="display:none">\n <p class="s-infinite-scroll-last infinite-scroll-last"></p>\n <p class="s-infinite-scroll-error infinite-scroll-error"></p>\n </div>\n <a href="${this.nextPage}" class="s-infinite-scroll-btn s-button-btn s-button-primary">\n <span class="s-button-text s-infinite-scroll-btn-text">${salla.lang.get("common.elements.load_more")}</span>\n <span class="s-button-loader s-button-loader-center s-infinite-scroll-btn-loader" style="display: none"></span>\n </a>`,this.btnLoader=this.status.querySelector(".s-button-loader"),salla.lang.onLoaded((()=>{this.status.querySelector(".s-button-text").innerHTML=salla.lang.get("common.elements.load_more"),this.status.querySelector(".s-infinite-scroll-last").innerHTML=salla.lang.get("common.elements.end_of_content"),this.status.querySelector(".s-infinite-scroll-error").innerHTML=salla.lang.get("common.elements.failed_to_load_more")}))}loading(s=!0){let t=this.status.querySelector(".s-button-text");l.toggleElementClassIf(t,"s-button-hide","s-button-show",(()=>s)),this.btnLoader.style.display=s?"inherit":"none"}render(){return this.nextPage.length>1?t(n,{class:"s-infinite-scroll-container"},t("slot",null)):""}componentDidLoad(){if(0===this.nextPage.length)return;this.host.insertAdjacentElement("afterend",this.status);let s=this,t=salla.infiniteScroll.initiate(this.container,{history:!!this.autoload&&"push",scrollThreshold:!!this.autoload&&400,nextPage:this.nextPage,checkLastPage:'salla-infinite-scroll[next-page*=":"],salla-infinite-scroll[next-page*="."]',status:".s-infinite-scroll-status",button:this.status.querySelector(".s-button-btn"),append:this.item,path:function(){return s.nextPage.replace(/page\=(\d)/g,"page="+(this.loadCount+2))}}).on("request",(()=>this.loading())).on("load",(()=>{this.loading(!1),2==t.pageIndex&&t.option({loadOnScroll:!1}),3==t.pageIndex&&t.option({loadOnScroll:!0})})).on("error",(()=>this.loading(!1)))}get host(){return i(this)}};e.style="";export{e as salla_infinite_scroll}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import{r as e,h as s,H as l,g as t}from"./p-1503d976.js";import{H as a}from"./p-9d2ca9c8.js";const i=class{constructor(s){e(this,s),a.setHost(document),salla.event.on("size-guide::open",(e=>this.open(e)))}async open(e){return this.modal.setTitle(salla.lang.get("pages.products.size_guides")),this.modal.open(),await salla.product.getSizeGuides(e).then((e=>{this.guides=e.data})).catch((e=>console.log(e))).finally((()=>this.modal.stopLoading()))}async close(){return this.modal.close()}showPlaceholder(){return s("salla-placeholder",{alignment:"center",iconSize:"xl"},s("div",{slot:"title"},salla.lang.get("pages.products.size_guide_placeholder")),s("div",{slot:"description"},salla.lang.get("pages.products.size_guide_placeholder_info")))}render(){return s(l,{class:"s-product-size-guide-block"},s("salla-modal",{id:"salla-product-size-guide-modal",isLoading:!0,"has-skeleton":!0,width:"md",ref:e=>this.modal=e},s("div",{slot:"loading"},s("div",{class:"s-product-size-guide-skeleton"},s("salla-skeleton",{height:"15px",width:"25%"}),s("div",{class:"s-product-size-guide-skeleton-header"},s("salla-skeleton",{height:"40px"}),s("salla-skeleton",{height:"40px"}),s("salla-skeleton",{height:"40px"}),s("salla-skeleton",{height:"40px"})),s("div",{class:"s-product-size-guide-skeleton-content"},s("salla-skeleton",{height:"15px",width:"25%"}),s("salla-skeleton",{height:"10px",width:"75%"}),s("salla-skeleton",{height:"10px",width:"50%"}),s("salla-skeleton",{height:"10px",width:"75%"}),s("salla-skeleton",{height:"10px",width:"100%"}),s("salla-skeleton",{height:"10px",width:"25%"}),s("salla-skeleton",{height:"10px",width:"60%"}),s("salla-skeleton",{height:"10px",width:"45%"}),s("salla-skeleton",{height:"10px",width:"30%"})))),s("slot",{name:"header"}),this.guides?[s("div",{class:"container px-8"},s("salla-tabs",null,this.guides.map((e=>s("salla-tab-header",{slot:"header",name:e.name},s("span",null,e.name)))),this.guides.map((e=>s("salla-tab-content",{slot:"content",name:e.name},s("div",{innerHTML:e.description}))))))]:this.showPlaceholder(),s("slot",{name:"footer"})))}get host(){return t(this)}};i.style="";export{i as salla_product_size_guide}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
const t='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>arrow-right</title>\n<path d="M29.217 15.465c-0.019-0.044-0.056-0.077-0.080-0.119-0.067-0.116-0.139-0.227-0.236-0.317-0.011-0.009-0.013-0.024-0.024-0.033l-10.667-9.333c-0.553-0.484-1.396-0.429-1.881 0.125-0.484 0.555-0.428 1.396 0.127 1.881l7.996 6.997h-20.452c-0.737 0-1.333 0.597-1.333 1.333s0.596 1.333 1.333 1.333h20.452l-7.996 6.997c-0.555 0.485-0.611 1.327-0.127 1.881 0.264 0.3 0.633 0.455 1.004 0.455 0.312 0 0.625-0.109 0.877-0.331l10.667-9.333c0.011-0.009 0.015-0.024 0.024-0.033 0.097-0.091 0.169-0.201 0.236-0.317 0.024-0.041 0.060-0.075 0.080-0.119 0.073-0.163 0.116-0.343 0.116-0.533s-0.043-0.371-0.116-0.535z"></path>\n</svg>\n';export{t as A}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
const c='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>mail</title>\n<path d="M28 2.667h-24c-2.205 0-4 1.795-4 4v18.667c0 2.205 1.795 4 4 4h24c2.205 0 4-1.795 4-4v-18.667c0-2.205-1.795-4-4-4zM29.333 25.333c0 0.735-0.599 1.333-1.333 1.333h-24c-0.735 0-1.333-0.599-1.333-1.333v-12.685l10.54 4.865c0.888 0.409 1.84 0.613 2.793 0.613s1.907-0.204 2.793-0.615l10.54-4.864zM29.333 9.711l-11.657 5.38c-1.065 0.492-2.288 0.492-3.353 0l-11.656-5.38v-3.044c0-0.735 0.599-1.333 1.333-1.333h24c0.735 0 1.333 0.599 1.333 1.333z"></path>\n</svg>\n';export{c as e}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import{r as t,h as e}from"./p-1503d976.js";import{A as i}from"./p-897b2018.js";function n(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function r(t={},e={}){Object.keys(e).forEach((i=>{void 0===t[i]?t[i]=e[i]:n(e[i])&&n(t[i])&&Object.keys(e[i]).length>0&&r(t[i],e[i])}))}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function o(){const t="undefined"!=typeof document?document:{};return r(t,s),t}const a={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function l(){const t="undefined"!=typeof window?window:{};return r(t,a),t}class c extends Array{constructor(t){"number"==typeof t?super(t):(super(...t||[]),function(t){const e=t.__proto__;Object.defineProperty(t,"__proto__",{get:()=>e,set(t){e.__proto__=t}})}(this))}}function d(t=[]){const e=[];return t.forEach((t=>{Array.isArray(t)?e.push(...d(t)):e.push(t)})),e}function u(t,e){return Array.prototype.filter.call(t,e)}function f(t,e){const i=l(),n=o();let r=[];if(!e&&t instanceof c)return t;if(!t)return new c(r);if("string"==typeof t){const i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let t="div";0===i.indexOf("<li")&&(t="ul"),0===i.indexOf("<tr")&&(t="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(t="tr"),0===i.indexOf("<tbody")&&(t="table"),0===i.indexOf("<option")&&(t="select");const e=n.createElement(t);e.innerHTML=i;for(let t=0;t<e.childNodes.length;t+=1)r.push(e.childNodes[t])}else r=function(t,e){if("string"!=typeof t)return[t];const i=[],n=e.querySelectorAll(t);for(let t=0;t<n.length;t+=1)i.push(n[t]);return i}(t.trim(),e||n)}else if(t.nodeType||t===i||t===n)r.push(t);else if(Array.isArray(t)){if(t instanceof c)return t;r=t}return new c(function(t){const e=[];for(let i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}(r))}f.fn=c.prototype;const p={addClass:function(...t){const e=d(t.map((t=>t.split(" "))));return this.forEach((t=>{t.classList.add(...e)})),this},removeClass:function(...t){const e=d(t.map((t=>t.split(" "))));return this.forEach((t=>{t.classList.remove(...e)})),this},hasClass:function(...t){const e=d(t.map((t=>t.split(" "))));return u(this,(t=>e.filter((e=>t.classList.contains(e))).length>0)).length>0},toggleClass:function(...t){const e=d(t.map((t=>t.split(" "))));this.forEach((t=>{e.forEach((e=>{t.classList.toggle(e)}))}))},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(t,e);else for(const e in t)this[i][e]=t[e],this[i].setAttribute(e,t[e]);return this},removeAttr:function(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},transform:function(t){for(let e=0;e<this.length;e+=1)this[e].style.transform=t;return this},transition:function(t){for(let e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!=typeof t?`${t}ms`:t;return this},on:function(...t){let[e,i,n,r]=t;function s(t){const e=t.target;if(!e)return;const r=t.target.dom7EventData||[];if(r.indexOf(t)<0&&r.unshift(t),f(e).is(i))n.apply(e,r);else{const t=f(e).parents();for(let e=0;e<t.length;e+=1)f(t[e]).is(i)&&n.apply(t[e],r)}}function o(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),n.apply(this,e)}"function"==typeof t[1]&&([e,n,r]=t,i=void 0),r||(r=!1);const a=e.split(" ");let l;for(let t=0;t<this.length;t+=1){const e=this[t];if(i)for(l=0;l<a.length;l+=1){const t=a[l];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:n,proxyListener:s}),e.addEventListener(t,s,r)}else for(l=0;l<a.length;l+=1){const t=a[l];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:n,proxyListener:o}),e.addEventListener(t,o,r)}}return this},off:function(...t){let[e,i,n,r]=t;"function"==typeof t[1]&&([e,n,r]=t,i=void 0),r||(r=!1);const s=e.split(" ");for(let t=0;t<s.length;t+=1){const e=s[t];for(let t=0;t<this.length;t+=1){const s=this[t];let o;if(!i&&s.dom7Listeners?o=s.dom7Listeners[e]:i&&s.dom7LiveListeners&&(o=s.dom7LiveListeners[e]),o&&o.length)for(let t=o.length-1;t>=0;t-=1){const i=o[t];n&&i.listener===n||n&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===n?(s.removeEventListener(e,i.proxyListener,r),o.splice(t,1)):n||(s.removeEventListener(e,i.proxyListener,r),o.splice(t,1))}}}return this},trigger:function(...t){const e=l(),i=t[0].split(" "),n=t[1];for(let r=0;r<i.length;r+=1){const s=i[r];for(let i=0;i<this.length;i+=1){const r=this[i];if(e.CustomEvent){const i=new e.CustomEvent(s,{detail:n,bubbles:!0,cancelable:!0});r.dom7EventData=t.filter(((t,e)=>e>0)),r.dispatchEvent(i),r.dom7EventData=[],delete r.dom7EventData}}}return this},transitionEnd:function(t){const e=this;return t&&e.on("transitionend",(function i(n){n.target===this&&(t.call(this,n),e.off("transitionend",i))})),this},outerWidth:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const t=l();return this[0]?t.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const t=l(),e=o(),i=this[0],n=i.getBoundingClientRect(),r=e.body;return{top:n.top+(i===t?t.scrollY:i.scrollTop)-(i.clientTop||r.clientTop||0),left:n.left+(i===t?t.scrollX:i.scrollLeft)-(i.clientLeft||r.clientLeft||0)}}return null},css:function(t,e){const i=l();let n;if(1===arguments.length){if("string"!=typeof t){for(n=0;n<this.length;n+=1)for(const e in t)this[n].style[e]=t[e];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this},each:function(t){return t?(this.forEach(((e,i)=>{t.apply(e,[e,i])})),this):this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){const e=l(),i=o(),n=this[0];let r,s;if(!n||void 0===t)return!1;if("string"==typeof t){if(n.matches)return n.matches(t);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(t);if(n.msMatchesSelector)return n.msMatchesSelector(t);for(r=f(t),s=0;s<r.length;s+=1)if(r[s]===n)return!0;return!1}if(t===i)return n===i;if(t===e)return n===e;if(t.nodeType||t instanceof c){for(r=t.nodeType?[t]:t,s=0;s<r.length;s+=1)if(r[s]===n)return!0;return!1}return!1},index:function(){let t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;const e=this.length;if(t>e-1)return f([]);if(t<0){const i=e+t;return f(i<0?[]:[this[i]])}return f([this[t]])},append:function(...t){let e;const i=o();for(let n=0;n<t.length;n+=1){e=t[n];for(let t=0;t<this.length;t+=1)if("string"==typeof e){const n=i.createElement("div");for(n.innerHTML=e;n.firstChild;)this[t].appendChild(n.firstChild)}else if(e instanceof c)for(let i=0;i<e.length;i+=1)this[t].appendChild(e[i]);else this[t].appendChild(e)}return this},prepend:function(t){const e=o();let i,n;for(i=0;i<this.length;i+=1)if("string"==typeof t){const r=e.createElement("div");for(r.innerHTML=t,n=r.childNodes.length-1;n>=0;n-=1)this[i].insertBefore(r.childNodes[n],this[i].childNodes[0])}else if(t instanceof c)for(n=0;n<t.length;n+=1)this[i].insertBefore(t[n],this[i].childNodes[0]);else this[i].insertBefore(t,this[i].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&f(this[0].nextElementSibling).is(t)?f([this[0].nextElementSibling]):f([]):f(this[0].nextElementSibling?[this[0].nextElementSibling]:[]):f([])},nextAll:function(t){const e=[];let i=this[0];if(!i)return f([]);for(;i.nextElementSibling;){const n=i.nextElementSibling;t?f(n).is(t)&&e.push(n):e.push(n),i=n}return f(e)},prev:function(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&f(e.previousElementSibling).is(t)?f([e.previousElementSibling]):f([]):f(e.previousElementSibling?[e.previousElementSibling]:[])}return f([])},prevAll:function(t){const e=[];let i=this[0];if(!i)return f([]);for(;i.previousElementSibling;){const n=i.previousElementSibling;t?f(n).is(t)&&e.push(n):e.push(n),i=n}return f(e)},parent:function(t){const e=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?f(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return f(e)},parents:function(t){const e=[];for(let i=0;i<this.length;i+=1){let n=this[i].parentNode;for(;n;)t?f(n).is(t)&&e.push(n):e.push(n),n=n.parentNode}return f(e)},closest:function(t){let e=this;return void 0===t?f([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){const e=[];for(let i=0;i<this.length;i+=1){const n=this[i].querySelectorAll(t);for(let t=0;t<n.length;t+=1)e.push(n[t])}return f(e)},children:function(t){const e=[];for(let i=0;i<this.length;i+=1){const n=this[i].children;for(let i=0;i<n.length;i+=1)t&&!f(n[i]).is(t)||e.push(n[i])}return f(e)},filter:function(t){return f(u(this,t))},remove:function(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}};function h(t,e){return void 0===e&&(e=0),setTimeout(t,e)}function A(){return Date.now()}function w(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function v(t){return"undefined"!=typeof window&&void 0!==window.HTMLElement?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)}function g(){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(null!=n&&!v(n)){const i=Object.keys(Object(n)).filter((t=>e.indexOf(t)<0));for(let e=0,r=i.length;e<r;e+=1){const r=i[e],s=Object.getOwnPropertyDescriptor(n,r);void 0!==s&&s.enumerable&&(w(t[r])&&w(n[r])?n[r].__swiper__?t[r]=n[r]:g(t[r],n[r]):!w(t[r])&&w(n[r])?(t[r]={},n[r].__swiper__?t[r]=n[r]:g(t[r],n[r])):t[r]=n[r])}}}return t}function m(t,e,i){t.style.setProperty(e,i)}function b(t){let{swiper:e,targetPosition:i,side:n}=t;const r=l(),s=-e.translate;let o,a=null;const c=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const d=i>s?"next":"prev",u=(t,e)=>"next"===d&&t>=e||"prev"===d&&t<=e,f=()=>{o=(new Date).getTime(),null===a&&(a=o);const t=Math.max(Math.min((o-a)/c,1),0),l=.5-Math.cos(t*Math.PI)/2;let d=s+l*(i-s);if(u(d,i)&&(d=i),e.wrapperEl.scrollTo({[n]:d}),u(d,i))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:d})})),void r.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=r.requestAnimationFrame(f)};f()}let x,y,E;function M(){return x||(x=function(){const t=l(),e=o();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),passiveListener:function(){let e=!1;try{const i=Object.defineProperty({},"passive",{get(){e=!0}});t.addEventListener("testPassiveListener",null,i)}catch(t){}return e}(),gestures:"ongesturestart"in t}}()),x}Object.keys(p).forEach((t=>{Object.defineProperty(f.fn,t,{value:p[t],writable:!0})}));const B={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=i?"unshift":"push";return t.split(" ").forEach((t=>{n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][r](e)})),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;function r(){n.off(t,r),r.__emitterProxy&&delete r.__emitterProxy;for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];e.apply(n,s)}return r.__emitterProxy=e,n.on(t,r,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)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)return e;if(!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:i.eventsListeners?(t.split(" ").forEach((t=>{void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].forEach(((n,r)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[t].splice(r,1)}))})),i):i},emit(){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let e,i,n;for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return"string"==typeof s[0]||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((e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(n,[e,...i])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((t=>{t.apply(n,i)}))})),t}};function C(t){let{swiper:e,runCallbacks:i,direction:n,step:r}=t;const{activeIndex:s,previousIndex:o}=e;let a=n;if(a||(a=s>o?"next":s<o?"prev":"reset"),e.emit(`transition${r}`),i&&s!==o){if("reset"===a)return void e.emit(`slideResetTransition${r}`);e.emit(`slideChangeTransition${r}`),e.emit("next"===a?`slideNextTransition${r}`:`slidePrevTransition${r}`)}}function S(t){const e=this,i=o(),n=l(),r=e.touchEventsData,{params:s,touches:a,enabled:c}=e;if(!c)return;if(e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let d=t;d.originalEvent&&(d=d.originalEvent);let u=f(d.target);if("wrapper"===s.touchEventsTarget&&!u.closest(e.wrapperEl).length)return;if(r.isTouchEvent="touchstart"===d.type,!r.isTouchEvent&&"which"in d&&3===d.which)return;if(!r.isTouchEvent&&"button"in d&&d.button>0)return;if(r.isTouched&&r.isMoved)return;s.noSwipingClass&&""!==s.noSwipingClass&&d.target&&d.target.shadowRoot&&t.path&&t.path[0]&&(u=f(t.path[0]));const p=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`;if(s.noSwiping&&(d.target&&d.target.shadowRoot?function(t,e){return void 0===e&&(e=this),function e(i){if(!i||i===o()||i===l())return null;i.assignedSlot&&(i=i.assignedSlot);const n=i.closest(t);return n||i.getRootNode?n||e(i.getRootNode().host):null}(e)}(p,u[0]):u.closest(p)[0]))return void(e.allowClick=!0);if(s.swipeHandler&&!u.closest(s.swipeHandler)[0])return;a.currentX="touchstart"===d.type?d.targetTouches[0].pageX:d.pageX,a.currentY="touchstart"===d.type?d.targetTouches[0].pageY:d.pageY;const h=a.currentX,w=a.currentY,v=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,g=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(v&&(h<=g||h>=n.innerWidth-g)){if("prevent"!==v)return;t.preventDefault()}if(Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=w,r.touchStartTime=A(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==d.type){let t=!0;u.is(r.focusableElements)&&(t=!1,"SELECT"===u[0].nodeName&&(r.isTouched=!1)),i.activeElement&&f(i.activeElement).is(r.focusableElements)&&i.activeElement!==u[0]&&i.activeElement.blur();const n=t&&e.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!n||u[0].isContentEditable||d.preventDefault()}e.params.freeMode&&e.params.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",d)}function T(t){const e=o(),i=this,n=i.touchEventsData,{params:r,touches:s,rtlTranslate:a,enabled:l}=i;if(!l)return;let c=t;if(c.originalEvent&&(c=c.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",c));if(n.isTouchEvent&&"touchmove"!==c.type)return;const d="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),u="touchmove"===c.type?d.pageX:c.pageX,p="touchmove"===c.type?d.pageY:c.pageY;if(c.preventedByNestedSwiper)return s.startX=u,void(s.startY=p);if(!i.allowTouchMove)return f(c.target).is(n.focusableElements)||(i.allowClick=!1),void(n.isTouched&&(Object.assign(s,{startX:u,startY:p,currentX:u,currentY:p}),n.touchStartTime=A()));if(n.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(p<s.startY&&i.translate<=i.maxTranslate()||p>s.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(u<s.startX&&i.translate<=i.maxTranslate()||u>s.startX&&i.translate>=i.minTranslate())return;if(n.isTouchEvent&&e.activeElement&&c.target===e.activeElement&&f(c.target).is(n.focusableElements))return n.isMoved=!0,void(i.allowClick=!1);if(n.allowTouchCallbacks&&i.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;s.currentX=u,s.currentY=p;const h=s.currentX-s.startX,w=s.currentY-s.startY;if(i.params.threshold&&Math.sqrt(h**2+w**2)<i.params.threshold)return;if(void 0===n.isScrolling){let t;i.isHorizontal()&&s.currentY===s.startY||i.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:h*h+w*w>=25&&(t=180*Math.atan2(Math.abs(w),Math.abs(h))/Math.PI,n.isScrolling=i.isHorizontal()?t>r.touchAngle:90-t>r.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",c),void 0===n.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(n.startMoving=!0)),n.isScrolling)return void(n.isTouched=!1);if(!n.startMoving)return;i.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation(),n.isMoved||(r.loop&&!r.cssMode&&i.loopFix(),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!r.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",c)),i.emit("sliderMove",c),n.isMoved=!0;let v=i.isHorizontal()?h:w;s.diff=v,v*=r.touchRatio,a&&(v=-v),i.swipeDirection=v>0?"prev":"next",n.currentTranslate=v+n.startTranslate;let g=!0,m=r.resistanceRatio;if(r.touchReleaseOnEdges&&(m=0),v>0&&n.currentTranslate>i.minTranslate()?(g=!1,r.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+v)**m)):v<0&&n.currentTranslate<i.maxTranslate()&&(g=!1,r.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-v)**m)),g&&(c.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),i.allowSlidePrev||i.allowSlideNext||(n.currentTranslate=n.startTranslate),r.threshold>0){if(!(Math.abs(v)>r.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,void(s.diff=i.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&i.freeMode||r.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function $(t){const e=this,i=e.touchEventsData,{params:n,touches:r,rtlTranslate:s,slidesGrid:o,enabled:a}=e;if(!a)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const c=A(),d=c-i.touchStartTime;if(e.allowClick){const t=l.path||l.composedPath&&l.composedPath();e.updateClickedSlide(t&&t[0]||l.target),e.emit("tap click",l),d<300&&c-i.lastClickTime<300&&e.emit("doubleTap doubleClick",l)}if(i.lastClickTime=A(),h((()=>{e.destroyed||(e.allowClick=!0)})),!i.isTouched||!i.isMoved||!e.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let u;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,u=n.followFinger?s?e.translate:-e.translate:-i.currentTranslate,n.cssMode)return;if(e.params.freeMode&&n.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:u});let f=0,p=e.slidesSizesGrid[0];for(let t=0;t<o.length;t+=t<n.slidesPerGroupSkip?1:n.slidesPerGroup){const e=t<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==o[t+e]?u>=o[t]&&u<o[t+e]&&(f=t,p=o[t+e]-o[t]):u>=o[t]&&(f=t,p=o[o.length-1]-o[o.length-2])}let w=null,v=null;n.rewind&&(e.isBeginning?v=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(w=0));const g=(u-o[f])/p,m=f<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(d>n.longSwipesMs){if(!n.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(g>=n.longSwipesRatio?n.rewind&&e.isEnd?w:f+m:f),"prev"===e.swipeDirection&&(g>1-n.longSwipesRatio?e.slideTo(f+m):null!==v&&g<0&&Math.abs(g)>n.longSwipesRatio?e.slideTo(v):e.slideTo(f))}else{if(!n.shortSwipes)return void e.slideTo(e.activeIndex);!e.navigation||l.target!==e.navigation.nextEl&&l.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(null!==w?w:f+m),"prev"===e.swipeDirection&&e.slideTo(null!==v?v:f)):e.slideTo(l.target===e.navigation.nextEl?f+m:f)}}function k(){const t=this,{params:e,el:i}=t;if(i&&0===i.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:r,snapGrid:s}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),t.slideTo(("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slides.length-1:t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=r,t.allowSlideNext=n,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function G(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function O(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;let r;t.previousTranslate=t.translate,t.translate=t.isHorizontal()?-e.scrollLeft:-e.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const s=t.maxTranslate()-t.minTranslate();r=0===s?0:(t.translate-t.minTranslate())/s,r!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let I=!1;function Y(){}const P=(t,e)=>{const i=o(),{params:n,touchEvents:r,el:s,wrapperEl:a,device:l,support:c}=t,d=!!n.nested,u="on"===e?"addEventListener":"removeEventListener",f=e;if(c.touch){const e=!("touchstart"!==r.start||!c.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};s[u](r.start,t.onTouchStart,e),s[u](r.move,t.onTouchMove,c.passiveListener?{passive:!1,capture:d}:d),s[u](r.end,t.onTouchEnd,e),r.cancel&&s[u](r.cancel,t.onTouchEnd,e)}else s[u](r.start,t.onTouchStart,!1),i[u](r.move,t.onTouchMove,d),i[u](r.end,t.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&s[u]("click",t.onClick,!0),n.cssMode&&a[u]("scroll",t.onScroll),t[f](n.updateOnWindowResize?l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate":"observerUpdate",k,!0)},j=(t,e)=>t.grid&&e.grid&&e.grid.rows>1,z={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,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:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!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-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function D(t,e){return function(i){void 0===i&&(i={});const n=Object.keys(i)[0],r=i[n];"object"==typeof r&&null!==r?(["navigation","pagination","scrollbar"].indexOf(n)>=0&&!0===t[n]&&(t[n]={auto:!0}),n in t&&"enabled"in r?(!0===t[n]&&(t[n]={enabled:!0}),"object"!=typeof t[n]||"enabled"in t[n]||(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),g(e,i)):g(e,i)):g(e,i)}}const F={eventsEmitter:B,update:{updateSize:function(){const t=this;let e,i;const n=t.$el;e=null!=t.params.width?t.params.width:n[0].clientWidth,i=null!=t.params.height?t.params.height:n[0].clientHeight,0===e&&t.isHorizontal()||0===i&&t.isVertical()||(e=e-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10),i=i-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("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}))},updateSlides:function(){const t=this;function e(e){return t.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]}function i(t,i){return parseFloat(t.getPropertyValue(e(i))||0)}const n=t.params,{$wrapperEl:r,size:s,rtlTranslate:o,wrongRTL:a}=t,l=t.virtual&&n.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,d=r.children(`.${t.params.slideClass}`),u=l?t.virtual.slides.length:d.length;let f=[];const p=[],h=[];let A=n.slidesOffsetBefore;"function"==typeof A&&(A=n.slidesOffsetBefore.call(t));let w=n.slidesOffsetAfter;"function"==typeof w&&(w=n.slidesOffsetAfter.call(t));const v=t.snapGrid.length,g=t.slidesGrid.length;let b=n.spaceBetween,x=-A,y=0,E=0;if(void 0===s)return;"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*s),t.virtualSize=-b,d.css(o?{marginLeft:"",marginBottom:"",marginTop:""}:{marginRight:"",marginBottom:"",marginTop:""}),n.centeredSlides&&n.cssMode&&(m(t.wrapperEl,"--swiper-centered-offset-before",""),m(t.wrapperEl,"--swiper-centered-offset-after",""));const M=n.grid&&n.grid.rows>1&&t.grid;let B;M&&t.grid.initSlides(u);const C="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((t=>void 0!==n.breakpoints[t].slidesPerView)).length>0;for(let r=0;r<u;r+=1){B=0;const o=d.eq(r);if(M&&t.grid.updateSlide(r,o,u,e),"none"!==o.css("display")){if("auto"===n.slidesPerView){C&&(d[r].style[e("width")]="");const s=getComputedStyle(o[0]),a=o[0].style.transform,l=o[0].style.webkitTransform;if(a&&(o[0].style.transform="none"),l&&(o[0].style.webkitTransform="none"),n.roundLengths)B=t.isHorizontal()?o.outerWidth(!0):o.outerHeight(!0);else{const t=i(s,"width"),e=i(s,"padding-left"),n=i(s,"padding-right"),r=i(s,"margin-left"),a=i(s,"margin-right"),l=s.getPropertyValue("box-sizing");if(l&&"border-box"===l)B=t+r+a;else{const{clientWidth:i,offsetWidth:s}=o[0];B=t+e+n+r+a+(s-i)}}a&&(o[0].style.transform=a),l&&(o[0].style.webkitTransform=l),n.roundLengths&&(B=Math.floor(B))}else B=(s-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(B=Math.floor(B)),d[r]&&(d[r].style[e("width")]=`${B}px`);d[r]&&(d[r].swiperSlideSize=B),h.push(B),n.centeredSlides?(x=x+B/2+y/2+b,0===y&&0!==r&&(x=x-s/2-b),0===r&&(x=x-s/2-b),Math.abs(x)<.001&&(x=0),n.roundLengths&&(x=Math.floor(x)),E%n.slidesPerGroup==0&&f.push(x),p.push(x)):(n.roundLengths&&(x=Math.floor(x)),(E-Math.min(t.params.slidesPerGroupSkip,E))%t.params.slidesPerGroup==0&&f.push(x),p.push(x),x=x+B+b),t.virtualSize+=B+b,y=B,E+=1}}if(t.virtualSize=Math.max(t.virtualSize,s)+w,o&&a&&("slide"===n.effect||"coverflow"===n.effect)&&r.css({width:`${t.virtualSize+n.spaceBetween}px`}),n.setWrapperSize&&r.css({[e("width")]:`${t.virtualSize+n.spaceBetween}px`}),M&&t.grid.updateWrapperSize(B,f,e),!n.centeredSlides){const e=[];for(let i=0;i<f.length;i+=1){let r=f[i];n.roundLengths&&(r=Math.floor(r)),f[i]<=t.virtualSize-s&&e.push(r)}f=e,Math.floor(t.virtualSize-s)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-s)}if(0===f.length&&(f=[0]),0!==n.spaceBetween){const i=t.isHorizontal()&&o?"marginLeft":e("marginRight");d.filter(((t,e)=>!n.cssMode||e!==d.length-1)).css({[i]:`${b}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let t=0;h.forEach((e=>{t+=e+(n.spaceBetween?n.spaceBetween:0)})),t-=n.spaceBetween;const e=t-s;f=f.map((t=>t<0?-A:t>e?e+w:t))}if(n.centerInsufficientSlides){let t=0;if(h.forEach((e=>{t+=e+(n.spaceBetween?n.spaceBetween:0)})),t-=n.spaceBetween,t<s){const e=(s-t)/2;f.forEach(((t,i)=>{f[i]=t-e})),p.forEach(((t,i)=>{p[i]=t+e}))}}if(Object.assign(t,{slides:d,snapGrid:f,slidesGrid:p,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){m(t.wrapperEl,"--swiper-centered-offset-before",-f[0]+"px"),m(t.wrapperEl,"--swiper-centered-offset-after",t.size/2-h[h.length-1]/2+"px");const e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+e)),t.slidesGrid=t.slidesGrid.map((t=>t+i))}if(u!==c&&t.emit("slidesLengthChange"),f.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==g&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const e=`${n.containerModifierClass}backface-hidden`,i=t.$el.hasClass(e);u<=n.maxBackfaceHiddenSlides?i||t.$el.addClass(e):i&&t.$el.removeClass(e)}},updateAutoHeight:function(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let r,s=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);const o=t=>n?e.slides.filter((e=>parseInt(e.getAttribute("data-swiper-slide-index"),10)===t))[0]:e.slides.eq(t)[0];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||f([])).each((t=>{i.push(t)}));else for(r=0;r<Math.ceil(e.params.slidesPerView);r+=1){const t=e.activeIndex+r;if(t>e.slides.length&&!n)break;i.push(o(t))}else i.push(o(e.activeIndex));for(r=0;r<i.length;r+=1)if(void 0!==i[r]){const t=i[r].offsetHeight;s=t>s?t:s}(s||0===s)&&e.$wrapperEl.css("height",`${s}px`)},updateSlidesOffset:function(){const t=this,e=t.slides;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop},updateSlidesProgress:function(t){void 0===t&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:r,snapGrid:s}=e;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&e.updateSlidesOffset();let o=-t;r&&(o=t),n.removeClass(i.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let t=0;t<n.length;t+=1){const a=n[t];let l=a.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(l-=n[0].swiperSlideOffset);const c=(o+(i.centeredSlides?e.minTranslate():0)-l)/(a.swiperSlideSize+i.spaceBetween),d=(o-s[0]+(i.centeredSlides?e.minTranslate():0)-l)/(a.swiperSlideSize+i.spaceBetween),u=-(o-l),f=u+e.slidesSizesGrid[t];(u>=0&&u<e.size-1||f>1&&f<=e.size||u<=0&&f>=e.size)&&(e.visibleSlides.push(a),e.visibleSlidesIndexes.push(t),n.eq(t).addClass(i.slideVisibleClass)),a.progress=r?-c:c,a.originalProgress=r?-d:d}e.visibleSlides=f(e.visibleSlides)},updateProgress:function(t){const e=this;if(void 0===t){const i=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*i||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:s,isEnd:o}=e;const a=s,l=o;0===n?(r=0,s=!0,o=!0):(r=(t-e.minTranslate())/n,s=r<=0,o=r>=1),Object.assign(e,{progress:r,isBeginning:s,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),s&&!a&&e.emit("reachBeginning toEdge"),o&&!l&&e.emit("reachEnd toEdge"),(a&&!s||l&&!o)&&e.emit("fromEdge"),e.emit("progress",r)},updateSlidesClasses:function(){const t=this,{slides:e,params:i,$wrapperEl:n,activeIndex:r,realIndex:s}=t,o=t.virtual&&i.virtual.enabled;let a;e.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),a=o?t.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${r}"]`):e.eq(r),a.addClass(i.slideActiveClass),i.loop&&(a.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${s}"]`).addClass(i.slideDuplicateActiveClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${s}"]`).addClass(i.slideDuplicateActiveClass));let l=a.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=e.eq(0),l.addClass(i.slideNextClass));let c=a.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&0===c.length&&(c=e.eq(-1),c.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),c.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:n,snapGrid:r,params:s,activeIndex:o,realIndex:a,snapIndex:l}=e;let c,d=t;if(void 0===d){for(let t=0;t<n.length;t+=1)void 0!==n[t+1]?i>=n[t]&&i<n[t+1]-(n[t+1]-n[t])/2?d=t:i>=n[t]&&i<n[t+1]&&(d=t+1):i>=n[t]&&(d=t);s.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}if(r.indexOf(i)>=0)c=r.indexOf(i);else{const t=Math.min(s.slidesPerGroupSkip,d);c=t+Math.floor((d-t)/s.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),d===o)return void(c!==l&&(e.snapIndex=c,e.emit("snapIndexChange")));const u=parseInt(e.slides.eq(d).attr("data-swiper-slide-index")||d,10);Object.assign(e,{snapIndex:c,realIndex:u,previousIndex:o,activeIndex:d}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),a!==u&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")},updateClickedSlide:function(t){const e=this,i=e.params,n=f(t).closest(`.${i.slideClass}`)[0];let r,s=!1;if(n)for(let t=0;t<e.slides.length;t+=1)if(e.slides[t]===n){s=!0,r=t;break}if(!n||!s)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=n,e.clickedIndex=e.virtual&&e.params.virtual.enabled?parseInt(f(n).attr("data-swiper-slide-index"),10):r,i.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}},translate:{getTranslate:function(t){void 0===t&&(t=this.isHorizontal()?"x":"y");const{params:e,rtlTranslate:i,translate:n,$wrapperEl:r}=this;if(e.virtualTranslate)return i?-n:n;if(e.cssMode)return n;let s=function(t,e){void 0===e&&(e="x");const i=l();let n,r,s;const o=function(t){const e=l();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}(t);return i.WebKitCSSMatrix?(r=o.transform||o.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map((t=>t.replace(",","."))).join(", ")),s=new i.WebKitCSSMatrix("none"===r?"":r)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=s.toString().split(",")),"x"===e&&(r=i.WebKitCSSMatrix?s.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(r=i.WebKitCSSMatrix?s.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}(r[0],t);return i&&(s=-s),s||0},setTranslate:function(t,e){const i=this,{rtlTranslate:n,params:r,$wrapperEl:s,wrapperEl:o,progress:a}=i;let l,c=0,d=0;i.isHorizontal()?c=n?-t:t:d=t,r.roundLengths&&(c=Math.floor(c),d=Math.floor(d)),r.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-d:r.virtualTranslate||s.transform(`translate3d(${c}px, ${d}px, 0px)`),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:d;const u=i.maxTranslate()-i.minTranslate();l=0===u?0:(t-i.minTranslate())/u,l!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t,e,i,n,r){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0),void 0===n&&(n=!0);const s=this,{params:o,wrapperEl:a}=s;if(s.animating&&o.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let d;if(d=n&&t>l?l:n&&t<c?c:t,s.updateProgress(d),o.cssMode){const t=s.isHorizontal();if(0===e)a[t?"scrollLeft":"scrollTop"]=-d;else{if(!s.support.smoothScroll)return b({swiper:s,targetPosition:-d,side:t?"left":"top"}),!0;a.scrollTo({[t?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===e?(s.setTransition(0),s.setTranslate(d),i&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(d),i&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(t){s&&!s.destroyed&&t.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,i&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(t,e){const i=this;i.params.cssMode||i.$wrapperEl.transition(t),i.emit("setTransition",t,e)},transitionStart:function(t,e){void 0===t&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),C({swiper:i,runCallbacks:t,direction:e,step:"Start"}))},transitionEnd:function(t,e){void 0===t&&(t=!0);const i=this,{params:n}=i;i.animating=!1,n.cssMode||(i.setTransition(0),C({swiper:i,runCallbacks:t,direction:e,step:"End"}))}},slide:{slideTo:function(t,e,i,n,r){if(void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0),"number"!=typeof t&&"string"!=typeof t)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof t}] given.`);if("string"==typeof t){const e=parseInt(t,10);if(!isFinite(e))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${t}] given.`);t=e}const s=this;let o=t;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:f,wrapperEl:p,enabled:h}=s;if(s.animating&&a.preventInteractionOnTransition||!h&&!n&&!r)return!1;const A=Math.min(s.params.slidesPerGroupSkip,o);let w=A+Math.floor((o-A)/s.params.slidesPerGroup);w>=l.length&&(w=l.length-1),(u||a.initialSlide||0)===(d||0)&&i&&s.emit("beforeSlideChangeStart");const v=-l[w];if(s.updateProgress(v),a.normalizeSlideIndex)for(let t=0;t<c.length;t+=1){const e=-Math.floor(100*v),i=Math.floor(100*c[t]),n=Math.floor(100*c[t+1]);void 0!==c[t+1]?e>=i&&e<n-(n-i)/2?o=t:e>=i&&e<n&&(o=t+1):e>=i&&(o=t)}if(s.initialized&&o!==u){if(!s.allowSlideNext&&v<s.translate&&v<s.minTranslate())return!1;if(!s.allowSlidePrev&&v>s.translate&&v>s.maxTranslate()&&(u||0)!==o)return!1}let g;if(g=o>u?"next":o<u?"prev":"reset",f&&-v===s.translate||!f&&v===s.translate)return s.updateActiveIndex(o),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==a.effect&&s.setTranslate(v),"reset"!==g&&(s.transitionStart(i,g),s.transitionEnd(i,g)),!1;if(a.cssMode){const t=s.isHorizontal(),i=f?v:-v;if(0===e){const e=s.virtual&&s.params.virtual.enabled;e&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),p[t?"scrollLeft":"scrollTop"]=i,e&&requestAnimationFrame((()=>{s.wrapperEl.style.scrollSnapType="",s._swiperImmediateVirtual=!1}))}else{if(!s.support.smoothScroll)return b({swiper:s,targetPosition:i,side:t?"left":"top"}),!0;p.scrollTo({[t?"left":"top"]:i,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(v),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,n),s.transitionStart(i,g),0===e?s.transitionEnd(i,g):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(t){s&&!s.destroyed&&t.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(i,g))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(t,e,i,n){if(void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0),"string"==typeof t){const e=parseInt(t,10);if(!isFinite(e))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${t}] given.`);t=e}const r=this;let s=t;return r.params.loop&&(s+=r.loopedSlides),r.slideTo(s,e,i,n)},slideNext:function(t,e,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);const n=this,{animating:r,enabled:s,params:o}=n;if(!s)return n;let a=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<o.slidesPerGroupSkip?1:a;if(o.loop){if(r&&o.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}return n.slideTo(o.rewind&&n.isEnd?0:n.activeIndex+l,t,e,i)},slidePrev:function(t,e,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);const n=this,{params:r,animating:s,snapGrid:o,slidesGrid:a,rtlTranslate:l,enabled:c}=n;if(!c)return n;if(r.loop){if(s&&r.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}function d(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const u=d(l?n.translate:-n.translate),f=o.map((t=>d(t)));let p=o[f.indexOf(u)-1];if(void 0===p&&r.cssMode){let t;o.forEach(((e,i)=>{u>=e&&(t=i)})),void 0!==t&&(p=o[t>0?t-1:t])}let h=0;return void 0!==p&&(h=a.indexOf(p),h<0&&(h=n.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(h=h-n.slidesPerViewDynamic("previous",!0)+1,h=Math.max(h,0))),n.slideTo(r.rewind&&n.isBeginning?n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1:h,t,e,i)},slideReset:function(t,e,i){return void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(t,e,i,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),void 0===n&&(n=.5);const r=this;let s=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){const t=r.snapGrid[a];l-t>(r.snapGrid[a+1]-t)*n&&(s+=r.params.slidesPerGroup)}else{const t=r.snapGrid[a-1];l-t<=(r.snapGrid[a]-t)*n&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,t,e,i)},slideToClickedSlide:function(){const t=this,{params:e,$wrapperEl:i}=t,n="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let r,s=t.clickedIndex;if(e.loop){if(t.animating)return;r=parseInt(f(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?s<t.loopedSlides-n/2||s>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),s=i.children(`.${e.slideClass}[data-swiper-slide-index="${r}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),h((()=>{t.slideTo(s)}))):t.slideTo(s):s>t.slides.length-n?(t.loopFix(),s=i.children(`.${e.slideClass}[data-swiper-slide-index="${r}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),h((()=>{t.slideTo(s)}))):t.slideTo(s)}else t.slideTo(s)}},loop:{loopCreate:function(){const t=this,e=o(),{params:i,$wrapperEl:n}=t,r=n.children().length>0?f(n.children()[0].parentNode):n;r.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let s=r.children(`.${i.slideClass}`);if(i.loopFillGroupWithBlank){const t=i.slidesPerGroup-s.length%i.slidesPerGroup;if(t!==i.slidesPerGroup){for(let n=0;n<t;n+=1){const t=f(e.createElement("div")).addClass(`${i.slideClass} ${i.slideBlankClass}`);r.append(t)}s=r.children(`.${i.slideClass}`)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=s.length),t.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10)),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>s.length&&t.params.loopedSlidesLimit&&(t.loopedSlides=s.length);const a=[],l=[];s.each(((t,e)=>{f(t).attr("data-swiper-slide-index",e)}));for(let e=0;e<t.loopedSlides;e+=1){const t=e-Math.floor(e/s.length)*s.length;l.push(s.eq(t)[0]),a.unshift(s.eq(s.length-t-1)[0])}for(let t=0;t<l.length;t+=1)r.append(f(l[t].cloneNode(!0)).addClass(i.slideDuplicateClass));for(let t=a.length-1;t>=0;t-=1)r.prepend(f(a[t].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:i,loopedSlides:n,allowSlidePrev:r,allowSlideNext:s,snapGrid:o,rtlTranslate:a}=t;let l;t.allowSlidePrev=!0,t.allowSlideNext=!0;const c=-o[e]-t.getTranslate();e<n?(l=i.length-3*n+e,l+=n,t.slideTo(l,0,!1,!0)&&0!==c&&t.setTranslate((a?-t.translate:t.translate)-c)):e>=i.length-n&&(l=-i.length+e+n,l+=n,t.slideTo(l,0,!1,!0)&&0!==c&&t.setTranslate((a?-t.translate:t.translate)-c)),t.allowSlidePrev=r,t.allowSlideNext=s,t.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:t,params:e,slides:i}=this;t.children(`.${e.slideClass}.${e.slideDuplicateClass},.${e.slideClass}.${e.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(t){const e=this;if(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;i.style.cursor="move",i.style.cursor=t?"grabbing":"grab"},unsetGrabCursor:function(){const t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){const t=this,e=o(),{params:i,support:n}=t;t.onTouchStart=S.bind(t),t.onTouchMove=T.bind(t),t.onTouchEnd=$.bind(t),i.cssMode&&(t.onScroll=O.bind(t)),t.onClick=G.bind(t),n.touch&&!I&&(e.addEventListener("touchstart",Y),I=!0),P(t,"on")},detachEvents:function(){P(this,"off")}},breakpoints:{setBreakpoint:function(){const t=this,{activeIndex:e,initialized:i,loopedSlides:n=0,params:r,$el:s}=t,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=t.getBreakpoint(o,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const l=(a in o?o[a]:void 0)||t.originalParams,c=j(t,r),d=j(t,l),u=r.enabled;c&&!d?(s.removeClass(`${r.containerModifierClass}grid ${r.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(s.addClass(`${r.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===r.grid.fill)&&s.addClass(`${r.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((e=>{const i=r[e]&&r[e].enabled,n=l[e]&&l[e].enabled;i&&!n&&t[e].disable(),!i&&n&&t[e].enable()}));const f=l.direction&&l.direction!==r.direction,p=r.loop&&(l.slidesPerView!==r.slidesPerView||f);f&&i&&t.changeDirection(),g(t.params,l);const h=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),u&&!h?t.disable():!u&&h&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",l),p&&i&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-n+t.loopedSlides,0,!1)),t.emit("breakpoint",l)},getBreakpoint:function(t,e,i){if(void 0===e&&(e="window"),!t||"container"===e&&!i)return;let n=!1;const r=l(),s="window"===e?r.innerHeight:i.clientHeight,o=Object.keys(t).map((t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:s*e,point:t}}return{value:t,point:t}}));o.sort(((t,e)=>parseInt(t.value,10)-parseInt(e.value,10)));for(let t=0;t<o.length;t+=1){const{point:s,value:a}=o[t];"window"===e?r.matchMedia(`(min-width: ${a}px)`).matches&&(n=s):a<=i.clientWidth&&(n=s)}return n||"max"}},checkOverflow:{checkOverflow:function(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const e=t.slides.length-1;t.isLocked=t.size>t.slidesGrid[e]+t.slidesSizesGrid[e]+2*n}else t.isLocked=1===t.snapGrid.length;!0===i.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===i.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const t=this,{classNames:e,params:i,rtl:n,$el:r,device:s,support:o}=t,a=function(t,e){const i=[];return t.forEach((t=>{"object"==typeof t?Object.keys(t).forEach((n=>{t[n]&&i.push(e+n)})):"string"==typeof t&&i.push(e+t)})),i}(["initialized",i.direction,{"pointer-events":!o.touch},{"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&&"column"===i.grid.fill},{android:s.android},{ios:s.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),r.addClass([...e].join(" ")),t.emitContainerClasses()},removeClasses:function(){const{$el:t,classNames:e}=this;t.removeClass(e.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(t,e,i,n,r,s){const o=l();let a;function c(){s&&s()}f(t).parent("picture")[0]||t.complete&&r?c():e?(a=new o.Image,a.onload=c,a.onerror=c,n&&(a.sizes=n),i&&(a.srcset=i),e&&(a.src=e)):c()},preloadImages:function(){const t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(let i=0;i<t.imagesToLoad.length;i+=1){const n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}}},L={};class N{constructor(){let t,e;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];if(1===n.length&&n[0].constructor&&"Object"===Object.prototype.toString.call(n[0]).slice(8,-1)?e=n[0]:[t,e]=n,e||(e={}),e=g({},e),t&&!e.el&&(e.el=t),e.el&&f(e.el).length>1){const t=[];return f(e.el).each((i=>{const n=g({},e,{el:i});t.push(new N(n))})),t}const s=this;var o;s.__swiper__=!0,s.support=M(),s.device=(void 0===(o={userAgent:e.userAgent})&&(o={}),y||(y=function(t){let{userAgent:e}=void 0===t?{}:t;const i=M(),n=l(),r=n.navigator.platform,s=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,c=n.screen.height,d=s.match(/(Android);?[\s\/]+([\d.]+)?/);let u=s.match(/(iPad).*OS\s([\d_]+)/);const f=s.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===r;let A="MacIntel"===r;return!u&&A&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${c}`)>=0&&(u=s.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),A=!1),d&&!h&&(o.os="android",o.android=!0),(u||p||f)&&(o.os="ios",o.ios=!0),o}(o)),y),s.browser=(E||(E=function(){const t=l();return{isSafari:function(){const e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),E),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],e.modules&&Array.isArray(e.modules)&&s.modules.push(...e.modules);const a={};s.modules.forEach((t=>{t({swiper:s,extendParams:D(e,a),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})}));const c=g({},z,a);return s.params=g({},c,L,e),s.originalParams=g({},s.params),s.passedParams=g({},e),s.params&&s.params.on&&Object.keys(s.params.on).forEach((t=>{s.on(t,s.params.on[t])})),s.params&&s.params.onAny&&s.onAny(s.params.onAny),s.$=f,Object.assign(s,{enabled:s.params.enabled,el:t,classNames:[],slides:f(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEvents:function(){const t=["touchstart","touchmove","touchend","touchcancel"],e=["pointerdown","pointermove","pointerup"];return s.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]},s.touchEventsDesktop={start:e[0],move:e[1],end:e[2]},s.support.touch||!s.params.simulateTouch?s.touchEventsTouch:s.touchEventsDesktop}(),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:s.params.focusableElements,lastClickTime:A(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,e){const i=this;t=Math.min(Math.max(t,0),1);const n=i.minTranslate(),r=i.maxTranslate();i.translateTo((r-n)*t+n,void 0===e?0:e),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=t.el.className.split(" ").filter((e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass)));t.emit("_containerClasses",e.join(" "))}getSlideClasses(t){const e=this;return e.destroyed?"":t.className.split(" ").filter((t=>0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass))).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=[];t.slides.each((i=>{const n=t.getSlideClasses(i);e.push({slideEl:i,classNames:n}),t.emit("_slideClass",i,n)})),t.emit("_slideClasses",e)}slidesPerViewDynamic(t,e){void 0===t&&(t="current"),void 0===e&&(e=!1);const{params:i,slides:n,slidesGrid:r,slidesSizesGrid:s,size:o,activeIndex:a}=this;let l=1;if(i.centeredSlides){let t,e=n[a].swiperSlideSize;for(let i=a+1;i<n.length;i+=1)n[i]&&!t&&(e+=n[i].swiperSlideSize,l+=1,e>o&&(t=!0));for(let i=a-1;i>=0;i-=1)n[i]&&!t&&(e+=n[i].swiperSlideSize,l+=1,e>o&&(t=!0))}else if("current"===t)for(let t=a+1;t<n.length;t+=1)(e?r[t]+s[t]-r[a]<o:r[t]-r[a]<o)&&(l+=1);else for(let t=a-1;t>=0;t-=1)r[a]-r[t]<o&&(l+=1);return l}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:i}=t;function n(){const e=Math.min(Math.max(t.rtlTranslate?-1*t.translate:t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}let r;i.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode&&t.params.freeMode.enabled?(n(),t.params.autoHeight&&t.updateAutoHeight()):(r=t.slideTo(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slides.length-1:t.activeIndex,0,!1,!0),r||n()),i.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e){void 0===e&&(e=!0);const i=this,n=i.params.direction;return t||(t="horizontal"===n?"vertical":"horizontal"),t===n||"horizontal"!==t&&"vertical"!==t||(i.$el.removeClass(`${i.params.containerModifierClass}${n}`).addClass(`${i.params.containerModifierClass}${t}`),i.emitContainerClasses(),i.params.direction=t,i.slides.each((e=>{"vertical"===t?e.style.width="":e.style.height=""})),i.emit("changeDirection"),e&&i.update()),i}changeLanguageDirection(t){const e=this;e.rtl&&"rtl"===t||!e.rtl&&"ltr"===t||(e.rtl="rtl"===t,e.rtlTranslate="horizontal"===e.params.direction&&e.rtl,e.rtl?(e.$el.addClass(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.$el.removeClass(`${e.params.containerModifierClass}rtl`),e.el.dir="ltr"),e.update())}mount(t){const e=this;if(e.mounted)return!0;const i=f(t||e.params.el);if(!(t=i[0]))return!1;t.swiper=e;const n=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=(()=>{if(t&&t.shadowRoot&&t.shadowRoot.querySelector){const e=f(t.shadowRoot.querySelector(n()));return e.children=t=>i.children(t),e}return i.children?i.children(n()):f(i).children(n())})();if(0===r.length&&e.params.createElements){const t=o().createElement("div");r=f(t),t.className=e.params.wrapperClass,i.append(t),i.children(`.${e.params.slideClass}`).each((t=>{r.append(t)}))}return Object.assign(e,{$el:i,el:t,$wrapperEl:r,wrapperEl:r[0],mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===r.css("display")}),!0}init(t){const e=this;return e.initialized||!1===e.mount(t)||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.slideTo(e.params.loop?e.params.initialSlide+e.loopedSlides:e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.attachEvents(),e.initialized=!0,e.emit("init"),e.emit("afterInit")),e}destroy(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);const i=this,{params:n,$el:r,$wrapperEl:s,slides:o}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),e&&(i.removeClasses(),r.removeAttr("style"),s.removeAttr("style"),o&&o.length&&o.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((t=>{i.off(t)})),!1!==t&&(i.$el[0].swiper=null,function(t){const e=t;Object.keys(e).forEach((t=>{try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}}))}(i)),i.destroyed=!0),null}static extendDefaults(t){g(L,t)}static get extendedDefaults(){return L}static get defaults(){return z}static installModule(t){N.prototype.__modules__||(N.prototype.__modules__=[]);const e=N.prototype.__modules__;"function"==typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?(t.forEach((t=>N.installModule(t))),N):(N.installModule(t),N)}}Object.keys(F).forEach((t=>{Object.keys(F[t]).forEach((e=>{N.prototype[e]=F[t][e]}))})),N.use([function(t){let{swiper:e,on:i,emit:n}=t;const r=l();let s=null,o=null;const a=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},c=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};i("init",(()=>{e.params.resizeObserver&&void 0!==r.ResizeObserver?e&&!e.destroyed&&e.initialized&&(s=new ResizeObserver((t=>{o=r.requestAnimationFrame((()=>{const{width:i,height:n}=e;let r=i,s=n;t.forEach((t=>{let{contentBoxSize:i,contentRect:n,target:o}=t;o&&o!==e.el||(r=n?n.width:(i[0]||i).inlineSize,s=n?n.height:(i[0]||i).blockSize)})),r===i&&s===n||a()}))})),s.observe(e.el)):(r.addEventListener("resize",a),r.addEventListener("orientationchange",c))})),i("destroy",(()=>{o&&r.cancelAnimationFrame(o),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",c)}))},function(t){let{swiper:e,extendParams:i,on:n,emit:r}=t;const s=[],o=l(),a=function(t,e){void 0===e&&(e={});const i=new(o.MutationObserver||o.WebkitMutationObserver)((t=>{if(1===t.length)return void r("observerUpdate",t[0]);const e=function(){r("observerUpdate",t[0])};o.requestAnimationFrame?o.requestAnimationFrame(e):o.setTimeout(e,0)}));i.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),s.push(i)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",(()=>{if(e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e<t.length;e+=1)a(t[e])}a(e.$el[0],{childList:e.params.observeSlideChildren}),a(e.$wrapperEl[0],{attributes:!1})}})),n("destroy",(()=>{s.forEach((t=>{t.disconnect()})),s.splice(0,s.length)}))}]);const R=class{constructor(e){t(this,e),this.loop=!1,this.speed=300,this.itemPerView="auto",this.spaceBetweenItems=8,this.currentIndex=void 0,this.isLastSlideItem=!1,this.isFirstSlideItem=!0}componentDidLoad(){this.initSwiper()}initSwiper(){for(const t of this.swiperWrapper.children)t.classList.add("swiper-slide");this.swiper=new N(this.swiperContainer,{loop:this.loop,speed:this.speed,slidesPerView:this.itemPerView,spaceBetween:this.spaceBetweenItems})}update(){this.swiper.update()}render(){var t,n;return e("div",{class:"s-swiper"},e("div",{class:"s-swiper-button-prev"},e("salla-button",{disabled:null===(t=this.swiper)||void 0===t?void 0:t.isBeginning,shape:"icon",color:"light",onClick:()=>this.swiper.slidePrev()},e("span",{class:"s-swiper-button-icon",innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>arrow-left</title>\n<path d="M28 14.667h-20.452l7.996-6.997c0.555-0.485 0.611-1.327 0.125-1.881-0.485-0.553-1.327-0.611-1.881-0.125l-10.667 9.333c-0.011 0.009-0.015 0.024-0.025 0.033-0.096 0.089-0.167 0.199-0.232 0.313-0.025 0.043-0.063 0.076-0.081 0.121-0.073 0.165-0.116 0.345-0.116 0.536s0.043 0.371 0.116 0.535c0.020 0.045 0.057 0.079 0.081 0.121 0.067 0.115 0.136 0.224 0.232 0.313 0.011 0.009 0.015 0.024 0.025 0.033l10.667 9.333c0.253 0.221 0.567 0.331 0.879 0.331 0.371 0 0.74-0.155 1.004-0.455 0.485-0.555 0.429-1.396-0.125-1.881l-7.997-6.997h20.452c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333z"></path>\n</svg>\n'}))),e("div",{class:"s-swiper-button-next"},e("salla-button",{disabled:null===(n=this.swiper)||void 0===n?void 0:n.isEnd,shape:"icon",color:"light",onClick:()=>this.swiper.slideNext()},e("span",{class:"s-swiper-button-icon",innerHTML:i}))),e("div",{class:"swiper"},e("div",{class:"swiper-container s-swiper-container",ref:t=>this.swiperContainer=t},e("div",{class:"swiper-wrapper s-swiper-wrapper",ref:t=>this.swiperWrapper=t},e("slot",null)))))}};R.style='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px, 0, 0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform, height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper::before{content:"";flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;height:var(--swiper-centered-offset-after)}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center}.s-swiper{position:relative}';export{R as salla_swiper}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
salla.event.setMaxListeners(20);class t extends salla.AppHelpers{setHost(t){this.host=t}getElement(t){return this.host.querySelector(t)}getAttribute(t,e){var s;return null===(s=this.getElement(t))||void 0===s?void 0:s.getAttribute(e)}val(t){return this.getAttribute(t,"value")}isUser(){return"user"===salla.config.get("user.type")}}const e=new t;export{e as H}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
const c='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>check-circle2</title>\n<path d="M29.333 14.133c-0.8 0-1.333 0.533-1.333 1.333v1.2c0 6.667-5.333 12-12 12 0 0 0 0 0 0-6.667 0-12-5.333-12-12s5.333-12 12-12c0 0 0 0 0 0 1.733 0 3.333 0.4 4.933 1.067 0.667 0.267 1.467 0 1.733-0.667s0-1.467-0.667-1.733c-1.867-0.8-3.867-1.333-6-1.333 0 0 0 0 0 0-8.133 0-14.667 6.533-14.667 14.667s6.533 14.667 14.667 14.667c0 0 0 0 0 0 8.133 0 14.667-6.533 14.667-14.667v-1.2c0-0.8-0.533-1.333-1.333-1.333zM12.933 14.4c-0.533-0.533-1.333-0.533-1.867 0s-0.533 1.333 0 1.867l4 4c0.267 0.267 0.533 0.4 0.933 0.4s0.667-0.133 0.933-0.4l13.333-13.333c0.533-0.533 0.533-1.333 0-1.867s-1.333-0.533-1.867 0l-12.4 12.4-3.067-3.067z"></path>\n</svg>\n';export{c as C}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import{r as s,h as t,H as l}from"./p-1503d976.js";const e=class{constructor(t){s(this,t),this.href=void 0,this.target="_self"}generateClass(){return{"s-list-tile-item":!0,"s-list-tile-item-href":!!this.href}}render(){return t(l,null,t("a",{class:this.generateClass(),href:this.href,target:this.target},t("div",{class:"s-list-tile-item-icon"},t("slot",{name:"icon"})),t("div",{class:"s-list-tile-item-content"},t("div",{class:"s-list-tile-item-title"},t("slot",{name:"title"})),t("div",{class:"s-list-tile-item-subtitle"},t("slot",{name:"subtitle"}))),t("div",{class:"s-list-tile-item-action"},t("slot",{name:"action"}))))}};e.style="";const i=class{constructor(t){s(this,t),this.translationLoaded=!1,this.icon='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>inbox</title>\n<path d="M31.984 19.797l-2.667-17.333c-0.1-0.651-0.659-1.131-1.317-1.131h-24c-0.659 0-1.217 0.48-1.317 1.131l-2.667 17.333c-0.011 0.067-0.016 0.135-0.016 0.203v6.667c0 2.205 1.795 4 4 4h24c2.205 0 4-1.795 4-4v-6.667c0-0.068-0.005-0.136-0.016-0.203zM5.144 4h21.712l2.256 14.667h-9.112c-0.736 0-1.333 0.596-1.333 1.333 0 1.471-1.196 2.667-2.667 2.667s-2.667-1.196-2.667-2.667c0-0.737-0.597-1.333-1.333-1.333h-9.112zM29.333 26.667c0 0.736-0.599 1.333-1.333 1.333h-24c-0.735 0-1.333-0.597-1.333-1.333v-5.333h8.168c0.593 2.299 2.684 4 5.165 4s4.571-1.701 5.165-4h8.168z"></path>\n</svg>\n',this.alignment="left",this.iconSize="md",salla.lang.onLoaded((()=>{this.translationLoaded=!0}))}alignmentClass(){return{"s-placeholder-wrapper":!0,"s-placeholder-align-left":"left"==this.alignment,"s-placeholder-align-center":"center"==this.alignment,"s-placeholder-align-right":"right"==this.alignment}}render(){return t(l,{class:this.alignmentClass()},t("div",{class:`s-placeholder-icon s-placeholder-icon-${this.iconSize}`,innerHTML:this.icon}),t("div",{class:"s-placeholder-title"},t("slot",{name:"title"},t("span",null,salla.lang.get("common.elements.no_options")))),t("div",{class:"s-placeholder-description"},t("slot",{name:"description"},t("span",null,salla.lang.get("common.errors.empty_results")))))}};i.style="";export{e as salla_list_tile,i as salla_placeholder}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import{r as t,h as s,H as n,g as i}from"./p-1503d976.js";import{H as e}from"./p-9d2ca9c8.js";const a=class{constructor(s){t(this,s),this.hostAttributes={},this.hasIncrementSlot=!1,this.hasDecrementSlot=!1,this.didLoaded=!1,this.quantity=1}watchPropHandler(){this.didLoaded&&e.debounce((()=>salla.document.event.fireEvent(this.textInput,"change",{bubbles:!0})))}componentWillLoad(){this.quantity=parseInt(this.host.getAttribute("value"))||1,this.hasIncrementSlot=!!this.host.querySelector('[slot="increment-button"]'),this.hasDecrementSlot=!!this.host.querySelector('[slot="decrement-button"]')}componentDidLoad(){this.didLoaded=!0,this.textInput.addEventListener("input",(t=>salla.helpers.inputDigitsOnly(t.target)))}getInputAttributes(){for(let t=0;t<this.host.attributes.length;t++)["id","value","min","class"].includes(this.host.attributes[t].name)||(this.hostAttributes[this.host.attributes[t].name]=this.host.attributes[t].value);return this.hostAttributes}async decrease(){return this.setValue(this.quantity-1)}async increase(){return this.setValue(Number(this.quantity)+1)}async setValue(t){let s=parseInt(this.host.getAttribute("max"));return s&&t>s&&(t=s),t<=1&&(t=1),this.quantity=t,this.host}render(){return s(n,{class:"s-quantity-input"},s("div",{class:"s-quantity-input-container"},s("button",{onClick:()=>this.increase(),class:"s-quantity-input-increase-button s-quantity-input-button",type:"button"},this.hasIncrementSlot?"":s("span",{innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>add</title>\n<path d="M26.667 14.667h-9.333v-9.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333v9.333h-9.333c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333h9.333v9.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-9.333h9.333c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333z"></path>\n</svg>\n'}),s("slot",{name:"increment-button"})),s("input",Object.assign({class:"s-quantity-input-input"},this.getInputAttributes(),{ref:t=>this.textInput=t,onInput:t=>this.setValue(t.target.value),min:"1",value:this.quantity})),s("button",{class:"s-quantity-input-decrease-button s-quantity-input-button",onClick:()=>this.decrease(),type:"button"},this.hasDecrementSlot?"":s("span",{innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>minus</title>\n<path d="M26.667 14.667h-21.333c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333h21.333c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333z"></path>\n</svg>\n'}),s("slot",{name:"decrement-button"}))))}get host(){return i(this)}static get watchers(){return{quantity:["watchPropHandler"]}}};a.style="";export{a as salla_quantity_input}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
const t='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="30" height="32" viewBox="0 0 30 32">\n<title>star2</title>\n<path d="M29.714 11.839c0 0.321-0.232 0.625-0.464 0.857l-6.482 6.321 1.536 8.929c0.018 0.125 0.018 0.232 0.018 0.357 0 0.464-0.214 0.893-0.732 0.893-0.25 0-0.5-0.089-0.714-0.214l-8.018-4.214-8.018 4.214c-0.232 0.125-0.464 0.214-0.714 0.214-0.518 0-0.75-0.429-0.75-0.893 0-0.125 0.018-0.232 0.036-0.357l1.536-8.929-6.5-6.321c-0.214-0.232-0.446-0.536-0.446-0.857 0-0.536 0.554-0.75 1-0.821l8.964-1.304 4.018-8.125c0.161-0.339 0.464-0.732 0.875-0.732s0.714 0.393 0.875 0.732l4.018 8.125 8.964 1.304c0.429 0.071 1 0.286 1 0.821z"></path>\n</svg>\n';export{t as S}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
const t='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>cancel</title>\n<path d="M17.885 16l7.057-7.057c0.521-0.521 0.521-1.364 0-1.885s-1.364-0.521-1.885 0l-7.057 7.057-7.057-7.057c-0.521-0.521-1.364-0.521-1.885 0s-0.521 1.364 0 1.885l7.057 7.057-7.057 7.057c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l7.057-7.057 7.057 7.057c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.521 0.521-1.364 0-1.885z"></path>\n</svg>\n';export{t as C}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import{r as n,h as t}from"./p-1503d976.js";import{e as r}from"./p-93708e1e.js";import{C as e}from"./p-dace8e6d.js";var a={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},c={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},i=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],u={CSS:{},springs:{}};function o(n,t,r){return Math.min(Math.max(n,t),r)}function f(n,t){return n.indexOf(t)>-1}function l(n,t){return n.apply(null,t)}var s={arr:function(n){return Array.isArray(n)},obj:function(n){return f(Object.prototype.toString.call(n),"Object")},pth:function(n){return s.obj(n)&&n.hasOwnProperty("totalLength")},svg:function(n){return n instanceof SVGElement},inp:function(n){return n instanceof HTMLInputElement},dom:function(n){return n.nodeType||s.svg(n)},str:function(n){return"string"==typeof n},fnc:function(n){return"function"==typeof n},und:function(n){return void 0===n},nil:function(n){return s.und(n)||null===n},hex:function(n){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(n)},rgb:function(n){return/^rgb/.test(n)},hsl:function(n){return/^hsl/.test(n)},col:function(n){return s.hex(n)||s.rgb(n)||s.hsl(n)},key:function(n){return!a.hasOwnProperty(n)&&!c.hasOwnProperty(n)&&"targets"!==n&&"keyframes"!==n}};function v(n){var t=/\(([^)]+)\)/.exec(n);return t?t[1].split(",").map((function(n){return parseFloat(n)})):[]}function h(n,t){var r=v(n),e=o(s.und(r[0])?1:r[0],.1,100),a=o(s.und(r[1])?100:r[1],.1,100),c=o(s.und(r[2])?10:r[2],.1,100),i=o(s.und(r[3])?0:r[3],.1,100),f=Math.sqrt(a/e),l=c/(2*Math.sqrt(a*e)),h=l<1?f*Math.sqrt(1-l*l):0,d=l<1?(l*f-i)/h:-i+f;function p(n){var r=t?t*n/1e3:n;return r=l<1?Math.exp(-r*l*f)*(1*Math.cos(h*r)+d*Math.sin(h*r)):(1+d*r)*Math.exp(-r*f),0===n||1===n?n:1-r}return t?p:function(){var t=u.springs[n];if(t)return t;for(var r=1/6,e=0,a=0;;)if(1===p(e+=r)){if(++a>=16)break}else a=0;var c=e*r*1e3;return u.springs[n]=c,c}}function d(n){return void 0===n&&(n=10),function(t){return Math.ceil(o(t,1e-6,1)*n)*(1/n)}}var p,g,m=function(){var n=.1;function t(n,t){return 1-3*t+3*n}function r(n,t){return 3*t-6*n}function e(n){return 3*n}function a(n,a,c){return((t(a,c)*n+r(a,c))*n+e(a))*n}function c(n,a,c){return 3*t(a,c)*n*n+2*r(a,c)*n+e(a)}return function(t,r,e,i){if(0<=t&&t<=1&&0<=e&&e<=1){var u=new Float32Array(11);if(t!==r||e!==i)for(var o=0;o<11;++o)u[o]=a(o*n,t,e);return function(o){return t===r&&e===i||0===o||1===o?o:a(function(r){for(var i=0,o=1;10!==o&&u[o]<=r;++o)i+=n;--o;var f=i+(r-u[o])/(u[o+1]-u[o])*n,l=c(f,t,e);return l>=.001?function(n,t,r,e){for(var i=0;i<4;++i){var u=c(t,r,e);if(0===u)return t;t-=(a(t,r,e)-n)/u}return t}(r,f,t,e):0===l?f:function(n,t,r,e,c){var i,u,o=0;do{(i=a(u=t+(r-t)/2,e,c)-n)>0?r=u:t=u}while(Math.abs(i)>1e-7&&++o<10);return u}(r,i,i+n,t,e)}(o),r,i)}}}}(),w=(p={linear:function(){return function(n){return n}}},g={Sine:function(){return function(n){return 1-Math.cos(n*Math.PI/2)}},Circ:function(){return function(n){return 1-Math.sqrt(1-n*n)}},Back:function(){return function(n){return n*n*(3*n-2)}},Bounce:function(){return function(n){for(var t,r=4;n<((t=Math.pow(2,--r))-1)/11;);return 1/Math.pow(4,3-r)-7.5625*Math.pow((3*t-2)/22-n,2)}},Elastic:function(n,t){void 0===n&&(n=1),void 0===t&&(t=.5);var r=o(n,1,10),e=o(t,.1,2);return function(n){return 0===n||1===n?n:-r*Math.pow(2,10*(n-1))*Math.sin((n-1-e/(2*Math.PI)*Math.asin(1/r))*(2*Math.PI)/e)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(n,t){g[n]=function(){return function(n){return Math.pow(n,t+2)}}})),Object.keys(g).forEach((function(n){var t=g[n];p["easeIn"+n]=t,p["easeOut"+n]=function(n,r){return function(e){return 1-t(n,r)(1-e)}},p["easeInOut"+n]=function(n,r){return function(e){return e<.5?t(n,r)(2*e)/2:1-t(n,r)(-2*e+2)/2}},p["easeOutIn"+n]=function(n,r){return function(e){return e<.5?(1-t(n,r)(1-2*e))/2:(t(n,r)(2*e-1)+1)/2}}})),p);function M(n,t){if(s.fnc(n))return n;var r=n.split("(")[0],e=w[r],a=v(n);switch(r){case"spring":return h(n,t);case"cubicBezier":return l(m,a);case"steps":return l(d,a);default:return l(e,a)}}function y(n){try{return document.querySelectorAll(n)}catch(n){return}}function b(n,t){for(var r=n.length,e=arguments.length>=2?arguments[1]:void 0,a=[],c=0;c<r;c++)if(c in n){var i=n[c];t.call(e,i,c,n)&&a.push(i)}return a}function x(n){return n.reduce((function(n,t){return n.concat(s.arr(t)?x(t):t)}),[])}function z(n){return s.arr(n)?n:(s.str(n)&&(n=y(n)||n),n instanceof NodeList||n instanceof HTMLCollection?[].slice.call(n):[n])}function I(n,t){return n.some((function(n){return n===t}))}function k(n){var t={};for(var r in n)t[r]=n[r];return t}function F(n,t){var r=k(n);for(var e in n)r[e]=t.hasOwnProperty(e)?t[e]:n[e];return r}function B(n,t){var r=k(n);for(var e in t)r[e]=s.und(n[e])?t[e]:n[e];return r}function C(n){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(n);if(t)return t[1]}function j(n,t){return s.fnc(n)?n(t.target,t.id,t.total):n}function O(n,t){return n.getAttribute(t)}function $(n,t,r){if(I([r,"deg","rad","turn"],C(t)))return t;var e=u.CSS[t+r];if(!s.und(e))return e;var a=document.createElement(n.tagName),c=n.parentNode&&n.parentNode!==document?n.parentNode:document.body;c.appendChild(a),a.style.position="absolute",a.style.width=100+r;var i=100/a.offsetWidth;c.removeChild(a);var o=i*parseFloat(t);return u.CSS[t+r]=o,o}function A(n,t,r){if(t in n.style){var e=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=n.style[t]||getComputedStyle(n).getPropertyValue(e)||"0";return r?$(n,a,r):a}}function L(n,t){return s.dom(n)&&!s.inp(n)&&(!s.nil(O(n,t))||s.svg(n)&&n[t])?"attribute":s.dom(n)&&I(i,t)?"transform":s.dom(n)&&"transform"!==t&&A(n,t)?"css":null!=n[t]?"object":void 0}function S(n){if(s.dom(n)){for(var t,r=n.style.transform||"",e=/(\w+)\(([^)]*)\)/g,a=new Map;t=e.exec(r);)a.set(t[1],t[2]);return a}}function E(n,t,r,e){switch(L(n,t)){case"transform":return function(n,t,r,e){var a=f(t,"scale")?1:0+function(n){return f(n,"translate")||"perspective"===n?"px":f(n,"rotate")||f(n,"skew")?"deg":void 0}(t),c=S(n).get(t)||a;return r&&(r.transforms.list.set(t,c),r.transforms.last=t),e?$(n,c,e):c}(n,t,e,r);case"css":return A(n,t,r);case"attribute":return O(n,t);default:return n[t]||0}}function Y(n,t){var r=/^(\*=|\+=|-=)/.exec(n);if(!r)return n;var e=C(n)||0,a=parseFloat(t),c=parseFloat(n.replace(r[0],""));switch(r[0][0]){case"+":return a+c+e;case"-":return a-c+e;case"*":return a*c+e}}function G(n,t){if(s.col(n))return function(n){return s.rgb(n)?(r=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=n))?"rgba("+r[1]+",1)":t:s.hex(n)?function(n){var t=n.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(n,t,r,e){return t+t+r+r+e+e})),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(r[1],16)+","+parseInt(r[2],16)+","+parseInt(r[3],16)+",1)"}(n):s.hsl(n)?function(n){var t,r,e,a=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(n)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(n),c=parseInt(a[1],10)/360,i=parseInt(a[2],10)/100,u=parseInt(a[3],10)/100,o=a[4]||1;function f(n,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?n+6*(t-n)*r:r<.5?t:r<2/3?n+(t-n)*(2/3-r)*6:n}if(0==i)t=r=e=u;else{var l=u<.5?u*(1+i):u+i-u*i,s=2*u-l;t=f(s,l,c+1/3),r=f(s,l,c),e=f(s,l,c-1/3)}return"rgba("+255*t+","+255*r+","+255*e+","+o+")"}(n):void 0;var t,r}(n);if(/\s/g.test(n))return n;var r=C(n),e=r?n.substr(0,n.length-r.length):n;return t?e+t:e}function N(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function _(n){for(var t,r=n.points,e=0,a=0;a<r.numberOfItems;a++){var c=r.getItem(a);a>0&&(e+=N(t,c)),t=c}return e}function H(n){if(n.getTotalLength)return n.getTotalLength();switch(n.tagName.toLowerCase()){case"circle":return function(n){return 2*Math.PI*O(n,"r")}(n);case"rect":return function(n){return 2*O(n,"width")+2*O(n,"height")}(n);case"line":return function(n){return N({x:O(n,"x1"),y:O(n,"y1")},{x:O(n,"x2"),y:O(n,"y2")})}(n);case"polyline":return _(n);case"polygon":return function(n){var t=n.points;return _(n)+N(t.getItem(t.numberOfItems-1),t.getItem(0))}(n)}}function Z(n,t){var r=t||{},e=r.el||function(n){for(var t=n.parentNode;s.svg(t)&&s.svg(t.parentNode);)t=t.parentNode;return t}(n),a=e.getBoundingClientRect(),c=O(e,"viewBox"),i=a.width,u=a.height,o=r.viewBox||(c?c.split(" "):[0,0,i,u]);return{el:e,viewBox:o,x:o[0]/1,y:o[1]/1,w:i,h:u,vW:o[2],vH:o[3]}}function q(n,t,r){function e(r){return void 0===r&&(r=0),n.el.getPointAtLength(t+r>=1?t+r:0)}var a=Z(n.el,n.svg),c=e(),i=e(-1),u=e(1),o=r?1:a.w/a.vW,f=r?1:a.h/a.vH;switch(n.property){case"x":return(c.x-a.x)*o;case"y":return(c.y-a.y)*f;case"angle":return 180*Math.atan2(u.y-i.y,u.x-i.x)/Math.PI}}function T(n,t){var r=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,e=G(s.pth(n)?n.totalLength:n,t)+"";return{original:e,numbers:e.match(r)?e.match(r).map(Number):[0],strings:s.str(n)||t?e.split(r):[]}}function X(n){return b(n?x(s.arr(n)?n.map(z):z(n)):[],(function(n,t,r){return r.indexOf(n)===t}))}function D(n){var t=X(n);return t.map((function(n,r){return{target:n,id:r,total:t.length,transforms:{list:S(n)}}}))}function Q(n,t){var r=k(t);if(/^spring/.test(r.easing)&&(r.duration=h(r.easing)),s.arr(n)){var e=n.length;2!==e||s.obj(n[0])?s.fnc(t.duration)||(r.duration=t.duration/e):n={value:n}}var a=s.arr(n)?n:[n];return a.map((function(n,r){var e=s.obj(n)&&!s.pth(n)?n:{value:n};return s.und(e.delay)&&(e.delay=r?0:t.delay),s.und(e.endDelay)&&(e.endDelay=r===a.length-1?t.endDelay:0),e})).map((function(n){return B(n,r)}))}var P={css:function(n,t,r){return n.style[t]=r},attribute:function(n,t,r){return n.setAttribute(t,r)},object:function(n,t,r){return n[t]=r},transform:function(n,t,r,e,a){if(e.list.set(t,r),t===e.last||a){var c="";e.list.forEach((function(n,t){c+=t+"("+n+") "})),n.style.transform=c}}};function V(n,t){D(n).forEach((function(n){for(var r in t){var e=j(t[r],n),a=n.target,c=C(e),i=E(a,r,c,n),u=Y(G(e,c||C(i)),i),o=L(a,r);P[o](a,r,u,n.transforms,!0)}}))}function W(n,t){return b(x(n.map((function(n){return t.map((function(t){return function(n,t){var r=L(n.target,t.name);if(r){var e=function(n,t){var r;return n.tweens.map((function(e){var a=function(n,t){var r={};for(var e in n){var a=j(n[e],t);s.arr(a)&&1===(a=a.map((function(n){return j(n,t)}))).length&&(a=a[0]),r[e]=a}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}(e,t),c=a.value,i=s.arr(c)?c[1]:c,u=C(i),o=E(t.target,n.name,u,t),f=r?r.to.original:o,l=s.arr(c)?c[0]:f,v=C(l)||C(o),h=u||v;return s.und(i)&&(i=f),a.from=T(l,h),a.to=T(Y(i,l),h),a.start=r?r.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=M(a.easing,a.duration),a.isPath=s.pth(c),a.isPathTargetInsideSVG=a.isPath&&s.svg(t.target),a.isColor=s.col(a.from.original),a.isColor&&(a.round=1),r=a,a}))}(t,n),a=e[e.length-1];return{type:r,property:t.name,animatable:n,tweens:e,duration:a.end,delay:e[0].delay,endDelay:a.endDelay}}}(n,t)}))}))),(function(n){return!s.und(n)}))}function J(n,t){var r=n.length,e=function(n){return n.timelineOffset?n.timelineOffset:0},a={};return a.duration=r?Math.max.apply(Math,n.map((function(n){return e(n)+n.duration}))):t.duration,a.delay=r?Math.min.apply(Math,n.map((function(n){return e(n)+n.delay}))):t.delay,a.endDelay=r?a.duration-Math.max.apply(Math,n.map((function(n){return e(n)+n.duration-n.endDelay}))):t.endDelay,a}var K,R=0,U=[],nn=function(){var n;function t(r){for(var e=U.length,a=0;a<e;){var c=U[a];c.paused?(U.splice(a,1),e--):(c.tick(r),a++)}n=a>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){rn.suspendWhenDocumentHidden&&(tn()?n=cancelAnimationFrame(n):(U.forEach((function(n){return n._onDocumentVisibility()})),nn()))})),function(){n||tn()&&rn.suspendWhenDocumentHidden||!(U.length>0)||(n=requestAnimationFrame(t))}}();function tn(){return!!document&&document.hidden}function rn(n){void 0===n&&(n={});var t,r=0,e=0,i=0,u=0,f=null;function l(n){var t=window.Promise&&new Promise((function(n){return f=n}));return n.finished=t,t}var v=function(n){var t=F(a,n),r=F(c,n),e=function(n,t){var r=[],e=t.keyframes;for(var a in e&&(t=B(function(n){for(var t=b(x(n.map((function(n){return Object.keys(n)}))),(function(n){return s.key(n)})).reduce((function(n,t){return n.indexOf(t)<0&&n.push(t),n}),[]),r={},e=function(e){var a=t[e];r[a]=n.map((function(n){var t={};for(var r in n)s.key(r)?r==a&&(t.value=n[r]):t[r]=n[r];return t}))},a=0;a<t.length;a++)e(a);return r}(e),t)),t)s.key(a)&&r.push({name:a,tweens:Q(t[a],n)});return r}(r,n),i=D(n.targets),u=W(i,e),o=J(u,r),f=R;return R++,B(t,{id:f,children:[],animatables:i,animations:u,duration:o.duration,delay:o.delay,endDelay:o.endDelay})}(n);function h(){var n=v.direction;"alternate"!==n&&(v.direction="normal"!==n?"normal":"reverse"),v.reversed=!v.reversed,t.forEach((function(n){return n.reversed=v.reversed}))}function d(n){return v.reversed?v.duration-n:n}function p(){r=0,e=d(v.currentTime)*(1/rn.speed)}function g(n,t){t&&t.seek(n-t.timelineOffset)}function m(n){for(var t=0,r=v.animations,e=r.length;t<e;){var a=r[t],c=a.animatable,i=a.tweens,u=i.length-1,f=i[u];u&&(f=b(i,(function(t){return n<t.end}))[0]||f);for(var l=o(n-f.start-f.delay,0,f.duration)/f.duration,s=isNaN(l)?1:f.easing(l),h=f.to.strings,d=f.round,p=[],g=f.to.numbers.length,m=void 0,w=0;w<g;w++){var M=void 0,y=f.to.numbers[w],x=f.from.numbers[w]||0;M=f.isPath?q(f.value,s*y,f.isPathTargetInsideSVG):x+s*(y-x),d&&(f.isColor&&w>2||(M=Math.round(M*d)/d)),p.push(M)}var z=h.length;if(z){m=h[0];for(var I=0;I<z;I++){var k=h[I+1],F=p[I];isNaN(F)||(m+=k?F+k:F+" ")}}else m=p[0];P[a.type](c.target,a.property,m,c.transforms),a.currentValue=m,t++}}function w(n){v[n]&&!v.passThrough&&v[n](v)}function M(n){var a=v.duration,c=v.delay,s=a-v.endDelay,p=d(n);v.progress=o(p/a*100,0,100),v.reversePlayback=p<v.currentTime,t&&function(n){if(v.reversePlayback)for(var r=u;r--;)g(n,t[r]);else for(var e=0;e<u;e++)g(n,t[e])}(p),!v.began&&v.currentTime>0&&(v.began=!0,w("begin")),!v.loopBegan&&v.currentTime>0&&(v.loopBegan=!0,w("loopBegin")),p<=c&&0!==v.currentTime&&m(0),(p>=s&&v.currentTime!==a||!a)&&m(a),p>c&&p<s?(v.changeBegan||(v.changeBegan=!0,v.changeCompleted=!1,w("changeBegin")),w("change"),m(p)):v.changeBegan&&(v.changeCompleted=!0,v.changeBegan=!1,w("changeComplete")),v.currentTime=o(p,0,a),v.began&&w("update"),n>=a&&(e=0,v.remaining&&!0!==v.remaining&&v.remaining--,v.remaining?(r=i,w("loopComplete"),v.loopBegan=!1,"alternate"===v.direction&&h()):(v.paused=!0,v.completed||(v.completed=!0,w("loopComplete"),w("complete"),!v.passThrough&&"Promise"in window&&(f(),l(v)))))}return l(v),v.reset=function(){var n=v.direction;v.passThrough=!1,v.currentTime=0,v.progress=0,v.paused=!0,v.began=!1,v.loopBegan=!1,v.changeBegan=!1,v.completed=!1,v.changeCompleted=!1,v.reversePlayback=!1,v.reversed="reverse"===n,v.remaining=v.loop;for(var r=u=(t=v.children).length;r--;)v.children[r].reset();(v.reversed&&!0!==v.loop||"alternate"===n&&1===v.loop)&&v.remaining++,m(v.reversed?v.duration:0)},v._onDocumentVisibility=p,v.set=function(n,t){return V(n,t),v},v.tick=function(n){i=n,r||(r=i),M((i+(e-r))*rn.speed)},v.seek=function(n){M(d(n))},v.pause=function(){v.paused=!0,p()},v.play=function(){v.paused&&(v.completed&&v.reset(),v.paused=!1,U.push(v),p(),nn())},v.reverse=function(){h(),v.completed=!v.reversed,p()},v.restart=function(){v.reset(),v.play()},v.remove=function(n){an(X(n),v)},v.reset(),v.autoplay&&v.play(),v}function en(n,t){for(var r=t.length;r--;)I(n,t[r].animatable.target)&&t.splice(r,1)}function an(n,t){var r=t.animations,e=t.children;en(n,r);for(var a=e.length;a--;){var c=e[a],i=c.animations;en(n,i),i.length||c.children.length||e.splice(a,1)}r.length||e.length||t.pause()}rn.version="3.2.1",rn.speed=1,rn.suspendWhenDocumentHidden=!0,rn.running=U,rn.remove=function(n){for(var t=X(n),r=U.length;r--;)an(t,U[r])},rn.get=E,rn.set=V,rn.convertPx=$,rn.path=function(n,t){var r=s.str(n)?y(n)[0]:n,e=t||100;return function(n){return{property:n,el:r,svg:Z(r),totalLength:H(r)*(e/100)}}},rn.setDashoffset=function(n){var t=H(n);return n.setAttribute("stroke-dasharray",t),t},rn.stagger=function(n,t){void 0===t&&(t={});var r=t.direction||"normal",e=t.easing?M(t.easing):null,a=t.grid,c=t.axis,i=t.from||0,u="first"===i,o="center"===i,f="last"===i,l=s.arr(n),v=l?parseFloat(n[0]):parseFloat(n),h=l?parseFloat(n[1]):0,d=C(l?n[1]:n)||0,p=t.start||0+(l?v:0),g=[],m=0;return function(n,t,s){if(u&&(i=0),o&&(i=(s-1)/2),f&&(i=s-1),!g.length){for(var w=0;w<s;w++){if(a){var M=o?(a[0]-1)/2:i%a[0],y=o?(a[1]-1)/2:Math.floor(i/a[0]),b=M-w%a[0],x=y-Math.floor(w/a[0]),z=Math.sqrt(b*b+x*x);"x"===c&&(z=-b),"y"===c&&(z=-x),g.push(z)}else g.push(Math.abs(i-w));m=Math.max.apply(Math,g)}e&&(g=g.map((function(n){return e(n/m)*m}))),"reverse"===r&&(g=g.map((function(n){return c?n<0?-1*n:-n:Math.abs(m-n)})))}return p+(l?(h-v)/m:v)*(Math.round(100*g[t])/100)+d}},rn.timeline=function(n){void 0===n&&(n={});var t=rn(n);return t.duration=0,t.add=function(r,e){var a=U.indexOf(t),i=t.children;function u(n){n.passThrough=!0}a>-1&&U.splice(a,1);for(var o=0;o<i.length;o++)u(i[o]);var f=B(r,F(c,n));f.targets=f.targets||n.targets;var l=t.duration;f.autoplay=!1,f.direction=t.direction,f.timelineOffset=s.und(e)?l:Y(e,l),u(t),t.seek(f.timelineOffset);var v=rn(f);u(v),i.push(v);var h=J(i,n);return t.delay=h.delay,t.endDelay=h.endDelay,t.duration=h.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},rn.easing=M,rn.penner=w,rn.random=function(n,t){return Math.floor(Math.random()*(t-n+1))+n},function(n){n.FACEBOOK="facebook",n.TWITTER="twitter",n.WHATSAPP="whatsapp",n.EMAIL="email",n.COPY_LINK="copy_link"}(K||(K={}));const cn=class{constructor(t){n(this,t),this.opened=!1,this.allPlatforms=[K.WHATSAPP,K.FACEBOOK,K.TWITTER,K.EMAIL,K.COPY_LINK],this.platformIcons=[{icon:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>whatsapp</title>\n<path d="M16 32c-0.008 0-0.018 0-0.028 0-3.1 0-5.993-0.887-8.439-2.421l0.066 0.039-7.2 2.3 2.336-6.964c-1.713-2.492-2.736-5.575-2.736-8.897 0-0.020 0-0.040 0-0.060v0.003c0.009-8.833 7.167-15.991 15.999-16h0.001c8.837 0 16 7.163 16 16s-7.163 16-16 16v0zM7.906 27.424l0.4 0.264c2.169 1.449 4.837 2.312 7.707 2.312 7.732 0 14-6.268 14-14s-6.268-14-14-14c-0.004 0-0.009 0-0.013 0h0.001c-7.729 0.008-13.992 6.271-14 13.999v0.001c-0 0.010-0 0.021-0 0.032 0 3.072 1 5.909 2.693 8.206l-0.027-0.038 0.304 0.416-1.4 4.2zM20.716 24.958c-1.684-0.131-3.237-0.574-4.641-1.271l0.073 0.033c-3.098-1.456-5.634-3.668-7.438-6.405l-0.042-0.067c-1.102-1.357-1.819-3.067-1.962-4.938l-0.002-0.030c-0.001-0.036-0.001-0.078-0.001-0.12 0-1.575 0.66-2.995 1.719-4l0.002-0.002c0.547-0.52 1.289-0.839 2.105-0.839 0.033 0 0.066 0.001 0.099 0.002l-0.005-0c0.2 0 0.378 0 0.542 0.018 0.016-0.001 0.035-0.001 0.054-0.001 0.815 0 1.502 0.549 1.711 1.298l0.003 0.012 0.324 0.782c0.376 0.906 0.858 2.068 0.942 2.244 0.144 0.251 0.23 0.552 0.23 0.873 0 0.286-0.068 0.557-0.188 0.797l0.005-0.010c-0.149 0.307-0.332 0.57-0.55 0.802l0.002-0.002c-0.148 0.168-0.248 0.274-0.346 0.378s-0.172 0.18-0.26 0.284c0.575 0.92 1.237 1.713 1.992 2.406l0.008 0.008c0.829 0.758 1.802 1.373 2.872 1.8l0.064 0.022c0.369-0.266 0.672-0.6 0.896-0.985l0.008-0.015 0.174-0.232c0.328-0.484 0.875-0.798 1.495-0.798 0.249 0 0.487 0.051 0.703 0.142l-0.012-0.004c0.492 0.168 2.922 1.372 2.946 1.384l0.228 0.11c0.415 0.149 0.758 0.417 0.996 0.763l0.004 0.007c0.107 0.349 0.169 0.75 0.169 1.166 0 0.591-0.125 1.153-0.349 1.661l0.010-0.026c-0.702 1.368-1.983 2.353-3.511 2.637l-0.031 0.005c-0.309 0.071-0.663 0.112-1.028 0.112-0.004 0-0.007 0-0.011 0h0.001zM10.632 9.318c-0.028-0.002-0.062-0.004-0.095-0.004-0.245 0-0.472 0.076-0.659 0.206l0.004-0.002c-0.726 0.651-1.18 1.591-1.18 2.638 0 0.044 0.001 0.087 0.002 0.13l-0-0.006c0.122 1.404 0.662 2.662 1.495 3.671l-0.009-0.011 0.12 0.168c1.627 2.491 3.865 4.46 6.504 5.723l0.096 0.041c3.136 1.288 3.916 1.124 4.426 1.014 0.87-0.159 1.601-0.656 2.067-1.347l0.007-0.011c0.12-0.316 0.204-0.682 0.237-1.063l0.001-0.015-0.040-0.018-0.256-0.124c-0.8-0.4-2.46-1.2-2.734-1.292l-0.058 0.184c-0.346 0.501-0.684 0.934-1.045 1.347l0.015-0.017c-0.344 0.349-0.821 0.565-1.349 0.565-0.28 0-0.546-0.061-0.785-0.17l0.012 0.005c-1.403-0.547-2.609-1.301-3.646-2.239l0.010 0.009c-0.975-0.891-1.81-1.912-2.486-3.039l-0.034-0.061c-0.152-0.244-0.242-0.54-0.242-0.857 0-0.463 0.191-0.88 0.499-1.178l0-0c0.13-0.162 0.264-0.302 0.4-0.444l0.236-0.256c0.091-0.096 0.177-0.201 0.254-0.311l0.006-0.009c-0.158-0.36-0.622-1.472-0.988-2.352l-0.322-0.772-0.038-0.086c-0.188-0.010-0.302-0.016-0.426-0.016zM12.462 12.442v0.012z"></path>\n</svg>\n',name:K.WHATSAPP},{icon:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>facebook</title>\n<path d="M19 32h-6c-0.552 0-1-0.448-1-1v0-13h-3c-0.552 0-1-0.448-1-1v0-5c0-0.552 0.448-1 1-1v0h3v-4c0-3.866 3.134-7 7-7v0h4c0.552 0 1 0.448 1 1v0 5c0 0.552-0.448 1-1 1v0h-2c-0.552 0-1 0.448-1 1v0 3h5c0.552 0 1 0.448 1 1 0 0.134-0.026 0.262-0.074 0.379l0.002-0.007-2 5c-0.152 0.371-0.51 0.628-0.928 0.628h-3v13c0 0.552-0.448 1-1 1v0zM14 30h4v-13c0-0.552 0.448-1 1-1v0h3.324l1.2-3h-4.524c-0.552 0-1-0.448-1-1v0-4c0-1.657 1.343-3 3-3v0h1v-3h-3c-2.761 0-5 2.239-5 5v0 5c0 0.552-0.448 1-1 1v0h-3v3h3c0.552 0 1 0.448 1 1v0z"></path>\n</svg>\n',name:K.FACEBOOK},{icon:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>twitter</title>\n<path d="M10.436 30c-0.012 0-0.026 0-0.041 0-3.691 0-7.129-1.088-10.009-2.961l0.071 0.043c-0.279-0.181-0.46-0.49-0.46-0.842 0-0.123 0.022-0.24 0.063-0.349l-0.002 0.007c0.148-0.387 0.516-0.657 0.948-0.657 0.042 0 0.083 0.003 0.123 0.007l-0.005-0c0.399 0.049 0.86 0.077 1.328 0.077 1.836 0 3.57-0.432 5.108-1.199l-0.066 0.030c-1.941-0.823-3.42-2.412-4.079-4.377l-0.015-0.051c-0.033-0.095-0.053-0.205-0.053-0.32 0-0.255 0.096-0.488 0.253-0.665l-0.001 0.001 0.062-0.062c-1.511-1.323-2.46-3.254-2.462-5.408v-0c0-0 0-0.001 0-0.001 0-0.374 0.194-0.703 0.488-0.89l0.004-0.003c0.115-0.070 0.25-0.121 0.393-0.145l0.007-0.001c-0.534-0.978-0.848-2.141-0.848-3.379 0-1.329 0.362-2.574 0.994-3.641l-0.018 0.033c0.176-0.301 0.498-0.501 0.866-0.501 0.312 0 0.591 0.143 0.774 0.367l0.001 0.002c2.627 3.213 6.397 5.405 10.682 5.953l0.082 0.009c0-0.098 0-0.2 0-0.302 0-0.001 0-0.002 0-0.002 0-3.949 3.201-7.15 7.15-7.15 1.852 0 3.54 0.704 4.81 1.86l-0.006-0.005c1.165-0.288 2.19-0.719 3.127-1.282l-0.051 0.028c0.146-0.088 0.323-0.141 0.512-0.141 0.552 0 1 0.448 1 1 0 0.109-0.017 0.214-0.050 0.312l0.002-0.007c-0.151 0.464-0.324 0.861-0.531 1.237l0.019-0.037c0.117-0.052 0.253-0.082 0.396-0.082 0.552 0 1 0.448 1 1 0 0.208-0.064 0.401-0.172 0.561l0.002-0.004c-0.812 1.212-1.772 2.247-2.87 3.114l-0.028 0.022c0 0.1 0 0.2 0 0.306 0 0.051 0.001 0.111 0.001 0.171 0 10.12-8.204 18.324-18.324 18.324-0.062 0-0.124-0-0.186-0.001l0.009 0zM5 27.084c1.616 0.58 3.481 0.916 5.424 0.916 0.004 0 0.008 0 0.013 0h-0.001c0.048 0 0.104 0.001 0.161 0.001 9.027 0 16.344-7.317 16.344-16.344 0-0.055-0-0.11-0.001-0.165l0 0.008c0-0.256 0-0.502-0.022-0.746-0.001-0.014-0.001-0.031-0.001-0.049 0-0.335 0.165-0.632 0.418-0.813l0.003-0.002q0.312-0.222 0.6-0.466l-0.364 0.052c-0.038 0.005-0.082 0.008-0.126 0.008-0.552 0-1-0.448-1-1 0-0.363 0.193-0.68 0.482-0.856l0.004-0.003q0.222-0.134 0.428-0.286c-0.3 0.082-0.6 0.154-0.912 0.214-0.059 0.012-0.127 0.020-0.197 0.020-0.286 0-0.544-0.12-0.727-0.313l-0-0c-0.943-1.007-2.28-1.634-3.764-1.634-2.845 0-5.152 2.307-5.152 5.152 0 0.001 0 0.002 0 0.002v-0c-0 0.020-0 0.043-0 0.066 0 0.395 0.043 0.781 0.125 1.151l-0.007-0.035c0.017 0.069 0.027 0.148 0.027 0.23 0 0.242-0.086 0.463-0.228 0.636l0.001-0.002c-0.177 0.219-0.445 0.358-0.746 0.358-0.024 0-0.047-0.001-0.071-0.003l0.003 0c-4.85-0.253-9.167-2.342-12.31-5.577l-0.004-0.005c-0.098 0.376-0.155 0.808-0.155 1.253 0 1.778 0.902 3.345 2.272 4.27l0.018 0.012c0.27 0.182 0.446 0.487 0.446 0.832 0 0.552-0.448 1-1 1-0.008 0-0.015-0-0.023-0l0.001 0c-0.548-0.010-1.074-0.082-1.577-0.21l0.047 0.010c0.554 1.812 2.029 3.181 3.866 3.574l0.034 0.006c0.458 0.097 0.797 0.499 0.797 0.979 0 0.456-0.305 0.841-0.722 0.961l-0.007 0.002c-0.412 0.117-0.89 0.198-1.383 0.225l-0.017 0.001c0.926 1.304 2.415 2.156 4.105 2.2l0.007 0c0.546 0.009 0.984 0.453 0.984 1 0 0.319-0.15 0.603-0.382 0.787l-0.002 0.002c-1.596 1.249-3.522 2.154-5.625 2.568l-0.085 0.014z"></path>\n</svg>\n',name:K.TWITTER},{icon:r,name:K.EMAIL},{icon:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>link</title>\n<path d="M19.247 23.019l-4.189 4.189c-2.831 2.831-7.435 2.831-10.265 0-1.371-1.372-2.125-3.193-2.125-5.132s0.755-3.761 2.125-5.133l4.189-4.191c0.521-0.521 0.521-1.364 0-1.885s-1.364-0.521-1.885 0l-4.189 4.191c-1.875 1.875-2.907 4.367-2.907 7.019s1.032 5.143 2.907 7.017 4.368 2.907 7.019 2.907 5.143-1.032 7.017-2.908l4.189-4.189c0.521-0.521 0.521-1.364 0-1.885s-1.364-0.52-1.885 0.001zM22.276 9.724c-0.521-0.521-1.364-0.521-1.885 0l-10.667 10.667c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l10.667-10.667c0.521-0.521 0.521-1.364 0-1.885zM29.093 2.908c-1.875-1.876-4.368-2.908-7.019-2.908s-5.143 1.032-7.017 2.908l-4.189 4.188c-0.521 0.521-0.521 1.364 0 1.885s1.364 0.521 1.885 0l4.189-4.189c2.831-2.831 7.435-2.831 10.265 0 1.371 1.372 2.125 3.193 2.125 5.132s-0.755 3.761-2.125 5.133l-4.189 4.191c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l4.189-4.191c1.875-1.875 2.907-4.367 2.907-7.019s-1.032-5.143-2.907-7.016z"></path>\n</svg>\n',name:K.COPY_LINK}],this.url="",this.urlName="",this.platforms=this.allPlatforms}componentWillLoad(){let n=this;if(document.getElementById("a2a-script"))return;const t=document.createElement("script");t.src="https://static.addtoany.com/menu/page.js",t.setAttribute("id","a2a-script"),t.async=!0,t.onload=function(){window.a2a_config=window.a2a_config||{},window.a2a_config.linkurl=n.url?n.url:window.location.href,window.a2a_config.linkname=n.urlName?n.urlName:document.title},document.body.appendChild(t),salla.lang.onLoaded((()=>{window.a2a_config.locale=salla.lang.locale}))}async open(){this.opened=!this.opened,this.opened?this.shareMenu.classList.add("opened"):this.shareMenu.classList.remove("opened"),(new rn.timeline).add({targets:this.shareMenu,translateY:[-50,0],opacity:[0,1],duration:300,podding:"0",easing:"easeInOutSine"}).add({targets:this.platformItem,translateZ:0,translateY:[-30,0],scaleY:[0,1],opacity:[0,1],duration:1200,delay:rn.stagger(100)},"-=200")}render(){return t("div",{class:"s-social-share-wrapper"},t("slot",{name:"widget"},t("salla-button",{"aria-label":"Share",onClick:()=>this.open(),class:"s-social-share-btn",shape:"icon",fill:"outline",color:"light"},t("span",{innerHTML:this.opened?e:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>share-alt</title>\n<path d="M26.667 21.333c-1.699 0-3.196 0.812-4.173 2.052l-11.912-5.211c0.044-0.276 0.085-0.553 0.085-0.841 0-0.472-0.081-0.923-0.197-1.359l12.361-6.952c0.971 1.009 2.328 1.644 3.836 1.644 2.941 0 5.333-2.392 5.333-5.333s-2.392-5.333-5.333-5.333-5.333 2.392-5.333 5.333c0 0.472 0.081 0.923 0.197 1.359l-12.361 6.952c-0.971-1.009-2.328-1.644-3.836-1.644-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c1.699 0 3.196-0.812 4.173-2.052l11.912 5.211c-0.044 0.276-0.085 0.553-0.085 0.841 0 2.941 2.392 5.333 5.333 5.333s5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM26.667 2.667c1.471 0 2.667 1.196 2.667 2.667s-1.196 2.667-2.667 2.667-2.667-1.196-2.667-2.667 1.196-2.667 2.667-2.667zM5.333 20c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667zM26.667 29.333c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z"></path>\n</svg>\n'}))),t("ul",{ref:n=>this.shareMenu=n,class:"s-social-share-list a2a_kit share"},this.platforms.map((n=>t("li",{ref:n=>this.platformItem=n},t("a",{class:`a2a_button_${n}`,"aria-label":`Share Via ${n}`},this.platformIcons.map((r=>{if(r.name===n)return t("span",{class:"s-social-share-icon",innerHTML:r.icon})}))))))))}};cn.style="";export{cn as salla_social_share}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import{p as e,b as a}from"./p-1503d976.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((e=>a([["p-
|
|
4
|
+
import{p as e,b as a}from"./p-1503d976.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((e=>a([["p-335abbbb",[[4,"salla-loyalty",{prizePoints:[8,"prize-points"],customerPoints:[2,"customer-points"],prizeTitle:[1,"prize-title"],allowEmail:[4,"allow-email"],allowMobile:[4,"allow-mobile"],requireEmail:[4,"require-email"],guestMessage:[1,"guest-message"],loyaltyProgram:[32],buttonLoading:[32],selectedItem:[32],askConfirmation:[32],is_loggedin:[32],translationLoaded:[32],open:[64],close:[64],resetExchange:[64],exchangeLoyaltyPoint:[64]}]]],["p-648e74e5",[[4,"salla-product-size-guide",{guides:[32],productId:[32],open:[64],close:[64]}]]],["p-5fb32395",[[4,"salla-scopes",{selection:[1],searchDisplayLimit:[2,"search-display-limit"],translationLoaded:[32],mode:[32],current_scope:[32],scopes:[32],originalScopesList:[32],selected_scope:[32],isOpenedBefore:[32],close:[64],open:[64],handleSubmit:[64]}]]],["p-14f0ff17",[[0,"salla-rating-modal",{orderId:[2,"order-id"],order:[32],translationLoaded:[32],open:[64],close:[64]}]]],["p-f9253fda",[[4,"salla-social-share",{url:[513],urlName:[513,"url-name"],platforms:[16],opened:[32],allPlatforms:[32],platformIcons:[32],open:[64]}]]],["p-019bb315",[[4,"salla-conditional-fields",null,[[0,"change","changeHandler"]]]]],["p-5e63e308",[[4,"salla-infinite-scroll",{nextPage:[1,"next-page"],autoload:[1028],container:[1],item:[1],loadMore:[32],noMore:[32],failedToLoad:[32]}]]],["p-639d5426",[[0,"salla-installment",{price:[1],language:[1],currency:[1],tamaraIsActive:[32],tabbyIsActive:[32],spotiiIsActive:[32]}]]],["p-cac3db69",[[4,"salla-quantity-input",{quantity:[32],decrease:[64],increase:[64],setValue:[64]}]]],["p-4cafb11b",[[4,"salla-tab-content",{name:[1],isSelected:[32],getChild:[64]}],[4,"salla-tab-header",{name:[1],activeClass:[1,"active-class"],height:[8],centered:[4],isSelected:[32],getChild:[64]}],[4,"salla-tabs",{backgroundColor:[1,"background-color"],vertical:[4]},[[0,"tabSelected","onSelectedTab"]]]]],["p-2749c9d3",[[4,"salla-add-product-button",{channels:[513],quantity:[514],donatingAmount:[514,"donating-amount"],productId:[520,"product-id"],productStatus:[513,"product-status"],productType:[513,"product-type"]}],[4,"salla-login-modal",{isEmailAllowed:[1028,"is-email-allowed"],isMobileAllowed:[1028,"is-mobile-allowed"],isEmailRequired:[1028,"is-email-required"],translationLoaded:[32],title:[32],emailErrorMsg:[32],firstNameErrorMsg:[32],lastNameErrorMsg:[32],open:[64]},[[8,"verified","onVerified"]]],[0,"salla-localization-modal",{language:[1537],currency:[1537],translationLoaded:[32],languages:[32],currencies:[32],isLoading:[32],open:[64],close:[64],submit:[64]}],[0,"salla-offer-modal",{offer:[32],offer_name:[32],offer_message:[32],translationLoaded:[32],open:[64],showOffer:[64]}],[0,"salla-search",{inline:[4],oval:[4],height:[2],translationLoaded:[32],results:[32],loading:[32],typing:[32],debounce:[32],search_term:[32]},[[0,"keydown","handleKeyDown"]]],[0,"salla-product-availability",{channels:[1],productId:[2,"product-id"],isSubscribed:[1028,"is-subscribed"],translationLoaded:[32],title_:[32],isVisitorSubscribed:[32]}],[4,"salla-verify",{display:[1],type:[1025],autoReload:[4,"auto-reload"],translationLoaded:[32],title:[32],resendAfter:[32],isProfileVerify:[32],getCode:[64],open:[64]}],[0,"salla-rating-stars",{name:[1],size:[1],value:[2]}],[0,"salla-tel-input",{phone:[1025],name:[1],countryCode:[1025,"country-code"],mobileRequired:[32],countryCodeLabel:[32],mobileLabel:[32],tooShort:[32],tooLong:[32],invalidCountryCode:[32],invalidNumber:[32],errorMap:[32],getValues:[64],isValid:[64]}],[0,"salla-skeleton",{type:[1],width:[1],height:[1]}],[4,"salla-modal",{isClosable:[1028,"is-closable"],width:[513],position:[513],visible:[516],hasSkeleton:[516,"has-skeleton"],isLoading:[1540,"is-loading"],subTitleFirst:[4,"sub-title-first"],noPadding:[4,"no-padding"],subTitle:[1,"sub-title"],centered:[4],iconStyle:[1,"icon-style"],modalTitle:[32],open:[64],close:[64],setTitle:[64],loading:[64],stopLoading:[64]}],[4,"salla-button",{shape:[513],color:[513],fill:[513],size:[513],width:[513],loading:[516],disabled:[516],loaderPosition:[1,"loader-position"],href:[1],load:[64],stop:[64],setText:[64],disable:[64],enable:[64]}],[0,"salla-loading",{size:[8],width:[8],color:[1],bgColor:[1,"bg-color"]}]]],["p-9d236cf4",[[4,"salla-swiper",{loop:[4],speed:[2],itemPerView:[8,"item-per-view"],spaceBetweenItems:[2,"space-between-items"],currentIndex:[32],isLastSlideItem:[32],isFirstSlideItem:[32]}]]],["p-bdbd2386",[[4,"salla-list-tile",{href:[1],target:[1]}],[4,"salla-placeholder",{icon:[1],alignment:[1],iconSize:[1,"icon-size"],translationLoaded:[32]}]]]],e)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salla.sa/twilight-components",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Salla Team <support@salla.dev> (https://salla.dev)",
|
|
6
6
|
"bugs": {
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"intl-tel-input": "^17.0.13",
|
|
79
79
|
"swiper": "^8.3.1"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "92fa8b1f89b1940447dc333ac8e0ec4fea450fea"
|
|
82
82
|
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
|
-
|
|
8
|
-
const index = require('./index-0d0167d5.js');
|
|
9
|
-
|
|
10
|
-
const sallaAddProductButtonCss = ":host{display:block}salla-add-product-button[width=wide]{width:100%}";
|
|
11
|
-
|
|
12
|
-
const SallaAddProductButton = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.success = index.createEvent(this, "success", 7);
|
|
16
|
-
this.failed = index.createEvent(this, "failed", 7);
|
|
17
|
-
this.hostAttributes = {};
|
|
18
|
-
this.hasLabel = false;
|
|
19
|
-
/**
|
|
20
|
-
* Channels.
|
|
21
|
-
*/
|
|
22
|
-
this.channels = null;
|
|
23
|
-
/**
|
|
24
|
-
* Product Quantity
|
|
25
|
-
*/
|
|
26
|
-
this.quantity = 0;
|
|
27
|
-
/**
|
|
28
|
-
* Donating amount.
|
|
29
|
-
*/
|
|
30
|
-
this.donatingAmount = 0;
|
|
31
|
-
/**
|
|
32
|
-
* Product Status.Defaults to `sale`
|
|
33
|
-
*/
|
|
34
|
-
this.productStatus = 'sale';
|
|
35
|
-
/**
|
|
36
|
-
* Product type. Defaults to `product`
|
|
37
|
-
*/
|
|
38
|
-
this.productType = 'product';
|
|
39
|
-
}
|
|
40
|
-
getLabel() {
|
|
41
|
-
if (this.productStatus === 'sale') {
|
|
42
|
-
return salla.lang.get('pages.cart.add_to_cart');
|
|
43
|
-
}
|
|
44
|
-
if (this.productType !== 'donating') {
|
|
45
|
-
return salla.lang.get('pages.products.out_of_stock');
|
|
46
|
-
}
|
|
47
|
-
// donating
|
|
48
|
-
return salla.lang.get('pages.products.donation_exceed');
|
|
49
|
-
}
|
|
50
|
-
addProductToCart(event) {
|
|
51
|
-
// we want to ignore the click action when the type of button is submit a form
|
|
52
|
-
if (this.hostAttributes['type'] === 'submit') {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
event.preventDefault();
|
|
56
|
-
/**
|
|
57
|
-
* by default the quick add is just an alias for add item function
|
|
58
|
-
* but its work only when the id is the only value is passed via the object
|
|
59
|
-
* so we will filter the object entities to remove null and zero values in case we don't want the normal add item action
|
|
60
|
-
*/
|
|
61
|
-
const data = Object.entries({
|
|
62
|
-
id: this.productId,
|
|
63
|
-
donating_amount: this.donatingAmount,
|
|
64
|
-
quantity: this.quantity
|
|
65
|
-
}).reduce((a, [k, v]) => (v ? (a[k] = v, a) : a), {});
|
|
66
|
-
return salla.cart.quickAdd(data)
|
|
67
|
-
.then((response) => {
|
|
68
|
-
return this.success.emit(response);
|
|
69
|
-
})
|
|
70
|
-
.catch((error) => {
|
|
71
|
-
return this.failed.emit(error);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
getBtnAttributes() {
|
|
75
|
-
for (let i = 0; i < this.host.attributes.length; i++) {
|
|
76
|
-
if (!['id', 'class'].includes(this.host.attributes[i].name)) {
|
|
77
|
-
this.hostAttributes[this.host.attributes[i].name] = this.host.attributes[i].value;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return this.hostAttributes;
|
|
81
|
-
}
|
|
82
|
-
componentWillLoad() {
|
|
83
|
-
this.hasLabel = !!this.host.innerHTML.replace('<!---->', '').trim();
|
|
84
|
-
}
|
|
85
|
-
render() {
|
|
86
|
-
return (index.h(index.Host, null, this.productStatus === 'out-and-notify' && this.channels ?
|
|
87
|
-
index.h("salla-product-availability", Object.assign({}, this.getBtnAttributes()), index.h("slot", null)) :
|
|
88
|
-
index.h("salla-button", Object.assign({ ref: el => this.btn = el, onClick: event => this.addProductToCart(event), type: "button", fill: this.productStatus === 'sale' ? 'solid' : 'outline', color: this.productStatus === 'sale' ? 'primary' : 'light', "loader-position": "center" }, this.getBtnAttributes(), { disabled: this.productStatus !== 'sale' }), index.h("slot", null))));
|
|
89
|
-
}
|
|
90
|
-
componentDidRender() {
|
|
91
|
-
//if label not passed, get label
|
|
92
|
-
if (this.hasLabel) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
this.btn.setText(this.getLabel() || 'اضافة للسلة');
|
|
96
|
-
salla.lang.onLoaded(() => {
|
|
97
|
-
this.btn.setText(this.getLabel() || 'اضافة للسلة');
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
get host() { return index.getElement(this); }
|
|
101
|
-
};
|
|
102
|
-
SallaAddProductButton.style = sallaAddProductButtonCss;
|
|
103
|
-
|
|
104
|
-
exports.salla_add_product_button = SallaAddProductButton;
|