PageSourceSearch

https://andplants.jp/cdn/shop/t/6/assets/chunk-U4D2Y3W3.js

js andplants.jp collected 2026-09-25 05:13:23 UTC 2,824 bytes, 14 lines download raw bytes

1import{d as g,g as h}from"./chunk-6IYT25MS.js";import{q as f,r as m}from"./chunk-DZHASOJD.js";import{a as i}from"./chunk-UZBVRWYB.js";import"./chunk-DTSKIINY.js";import{c as l,d as s}from"./chunk-UIRQVMWT.js";s();s();var n=l(i(),1),v=5e3,C="h-12",I=`
2.js-scheduled-banner-rotator .swiper {
3  position: relative;
4  overflow: hidden;
5}
6.js-scheduled-banner-rotator .swiper-fade .swiper-slide {
7  pointer-events: none;
8  transition-property: opacity;
9}
10.js-scheduled-banner-rotator .swiper-fade .swiper-slide-active {
11  pointer-events: auto;
12}
13`,k=e=>{if(e.desktopBackgroundColor!=="")return{backgroundColor:e.desktopBackgroundColor}},u=e=>e.desktopImageUrl!=="";function R({banner:e,variant:t,rotating:o}){if(o){let c=t==="pc"&&u(e)?e.desktopImageUrl:e.imageUrl;return(0,n.jsx)("img",{src:c,loading:"lazy",alt:"",className:"h-full w-full object-contain"})}return t==="pc"?u(e)?(0,n.jsx)("img",{src:e.desktopImageUrl,loading:"lazy",alt:"",className:"block max-h-12 w-full object-contain"}):(0,n.jsx)("img",{src:e.imageUrl,loading:"lazy",alt:"",className:"block w-90"}):(0,n.jsx)("img",{src:e.imageUrl,loading:"lazy",alt:"",className:"block w-full"})}function y(e){let t=(0,n.jsx)(R,{...e});if(e.banner.link==="")return t;let o=e.rotating?"block h-full w-full":e.variant==="pc"&&!u(e.banner)?"block w-90":"block w-full";return(0,n.jsx)("a",{href:e.banner.link,className:o,children:t})}function d({banners:e,variant:t,slotAspectRatio:o,autoplay:c}){if(e.length===0)return null;let p=t==="sp"?"mb-1 md:hidden":"mb-1 hidden md:block";if(e.length===1){let[r]=e;return(0,n.jsx)("div",{className:`${p} flex justify-center`,style:k(r),children:(0,n.jsx)(y,{banner:r,variant:t,rotating:!1})})}let B=t==="pc"?C:"",w=t==="sp"?{aspectRatio:String(o)}:void 0;return(0,n.jsxs)("div",{className:`${p} js-scheduled-banner-rotator`,children:[(0,n.jsx)("style",{children:I}),(0,n.jsx)(f,{modules:[g,h],effect:"fade",fadeEffect:{crossFade:!0},loop:!0,autoplay:c?{delay:v,disableOnInteraction:!1,pauseOnMouseEnter:!0}:!1,children:e.map((r,b)=>
13(0,n.jsx)(m,{children:(0,n.jsx)("div",{className:`flex justify-center ${B}`,style:{...k(r),...w},children:(0,n.jsx)(y,{banner:r,variant:t,rotating:!0})})},`${r.imageUrl}-${b}`))})]})}var a=l(i(),1),U=e=>e.filter(t=>t.showOnDesktop),N=6,S=e=>{let[t]=e;return!t||t.imageWidth<=0||t.imageHeight<=0?N:t.imageWidth/t.imageHeight},x=()=>typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function P({banners:e}){if(e.length===0)return null;let t=U(e),o=!x();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d,{banners:e,variant:"sp",slotAspectRatio:S(e),autoplay:o}),(0,a.jsx)(d,{banners:t,variant:"pc",slotAspectRatio:S(t),autoplay:o})]})}export{P as default,N as defaultSlotAspectRatio,U as getDesktopBanners,S as getSlotAspectRatio};
14//# sourceMappingURL=chunk-U4D2Y3W3.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.