PageSourceSearch

https://www.paulsmith.co.jp/_nuxt/BsZMC02j.js

js paulsmith.co.jp collected 2026-10-02 07:04:41 UTC 7,452 bytes, 1 lines download raw bytes

1import{d as L,a9 as te,u as d,s as b,c as $,A as le,o as r,a as h,b as m,C as F,r as oe,t as T,n as E,aa as ne,_ as U,av as D,p as ae,l as se,aw as re,B as ie,a8 as ce,e as S,E as f,ad as ue,F as P,f as N,G as de,D as pe,h as fe,$ as me}from"./BoIX-Qb1.js";import{u as ge}from"./B2cubn88.js";import{o as ye}from"./DZ6T17G_.js";import{_ as be,a as he}from"./B2ZrqRj5.js";import{_ as xe}from"./Cd80WHbQ.js";import{_ as _e}from"./h1X2AHEO.js";import"./9UOZEFMz.js";import"./DSVr3Uhu.js";import"./B21Y8VVe.js";import"./DSsdBC2s.js";import"./CTZr2DJU.js";import"./C61imoum.js";import"./7PUygt0w.js";const ke={key:1},ve=L({__name:"Tooltip",props:{text:{type:String,default:""},width:{type:Number,default:180},placement:{type:String,default:"top"},sectionTheme:{type:String,default:"default"}},setup(i){te(u=>({"96b3e32c":d(_),"707ff465":d(x)}));const V=i,n=b(!1),c=b(null),C=b(null),x=b(null),g=b(null),{isTouchScreen:p}=ge(),_=$(()=>`${V.width}px`),A=()=>{var y;const u=(y=c.value)==null?void 0:y.clientHeight,k=18;x.value=`${-(k/2)}px`,g.value=`${-u}px`},w=()=>{p.value&&(n.value=!n.value)};return ye(C,u=>{n.value=!1}),le(()=>{A()}),(u,k)=>{const y=ne;return r(),h("div",{ref_key:"refTooltipWrapper",ref:C,class:"tooltip group relative flex h-min items-center"},[m("div",{class:"flex h-[18px] w-[18px] items-center justify-center",onClick:w},[F(y,{key:"help-icon",class:"p-sm",direction:"right","full-size":!0,"icon-name":"new-info"})]),m("div",{ref_key:"refTooltipText",ref:c,class:E(["tooltip-text body-b3-regular absolute z-100 hidden whitespace-normal p-md text-left transition-opacity noTouch:group-hover:block",[d(n)?"touch:block":"touch:hidden",i.placement,i.sectionTheme]])},[u.$slots.default?oe(u.$slots,"default",{key:0},void 0,!0):(r(),h("span",ke,T(i.text),1))],2)],512)}}}),Fe=U(ve,[["__scopeId","data-v-ff70e013"]]),Ce={class:"relative h-fill"},we={class:"functional-f1-medium"},Se={class:"functional-f1-medium"},$e={class:"flex flex-col"},Te=L({__name:"FiltersSidePanel",props:D({filters:{type:Array,required:!0},openedFilters:{type:Array,default:()=>[]},appliedFilters:{type:Array,default:()=>[]},preSelectedFilters:{type:Array,default:()=>[]},resultsCounter:{type:Number,default:0}},{modelValue:{},modelModifiers:{}}),emits:D(["closeFilters","applyFilters","clearAllFilters","clearIndividualFilter","selectFilters"],["update:modelValue"]),setup(i,{emit:V}){const n=i,c=V,C=ae(),x=se(),g=re(i,"modelValue"),p=b([]),_={"50デニム":"#235a97",その他:"linear-gradient(135deg, #111111 0 25%, #d71920 25% 50%, #f4d44d 50% 75%, #235a97 75%)",イエロー系:"#f4d44d",オレンジ系:"#e87524",カーキ系:"#6f6a3a",クリーム系:"#f1e7cf",ゴールド:"#c9a24d",ゴールド系:"#c9a24d",グリーン系:"#2f6f4e",グレー系:"#8a8a8a",シルバー:"#c0c0c0",シルバー系:"#c0c0c0",ネイビー系:"#1b2f4a",パープル系:"#7752a8",ピンク系:"#e9a0bd",ブラウン系:"#7a5230",ブラック系:"#111111",ブルー系:"#235a97",ベージュ系:"#d8c7ad",ホワイト系:"#ffffff",レッド系:"#d71920",beige:"#d8c7ad",black:"#111111",blue:"#235a97",brown:"#7a5230",green:"#2f6f4e",grey:"#8a8a8a",gray:"#8a8a8a",multi:"linear-gradient(135deg, #111111 0 25%, #d71920 25% 50%, #f4d44d 50% 75%, #235a97 75%)",navy:"#1b2f4a","navy blue":"#1b2f4a",orange:"#e87524",pink:"#e9a0bd",purple:"#7752a8",red:"#d71920",other:"linear-gradient(135deg, #111111 0 25%, #d71920 25% 50%, #f4d44d 50% 75%, #235a97 75%)",white:"#ffffff",yellow:"#f4d44d"},A={カーキ:"#6f6a3a",クリーム:"#f1e7cf",ゴールド:"#c9a24d",シルバー:"#c0c0c0",マルチ:_.other,金:"#c9a24d",銀:"#c0c0c0"},w=$(()=>C.activeEls.sidePanel==="filters"),u=$(()=>{const e=["0","1"];return n.filters.filter(t=>t.options.filter(o=>e.includes(o.name)).length>1)}),k=$(()=>{const e=["0","1"];return n.filters.filter(t=>t.options.filter(o=>!e.includes(o.name)).length)}),y=(e="")=>String(e).trim().toLowerCase().replace(/[\s_-]+/g," "),W=(e="")=>{const t=String(e).trim();return/^[0-9a-f]{6}$/i.test(t)||/^[0-9a-f]{3}$/i.test(t)?`#${t}`:t},z=(e="")=>{const t=y(e),o=_[t];if(o)return o;const s=Object.entries(A).find(([v])=>String(e).includes(v));return s?s[1]:String(e).includes("デニム")?_.blue:""},j=(e="")=>{const t=String(e).trim();return/^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i.test(t)||/^rgba?\(/i.test(t)||/^hsla?\(/i.test(t)||/^linear-gradient\(/i.test(t)||/^var\(/i.test(t)},G=e=>[z(e.value),z(e.name),e.swatch,e.hex,e.colour,e.color,e.value,e.name].map(W).find(j)||"",K=e=>
1["colour_group","color_group","colour","color"].includes(e.key),B=(e,t)=>x.settings.filterTooltips?x.settings.filterTooltips.find(s=>{const v=s.filterTooltipOption.split("_")[0],O=s.filterTooltipOption.split("_")[1];return v===e.key&&O===t.value.toLowerCase()}):null,q=e=>["size","colour_group","color_group","colour","color"].includes(e.key)?"grid-cols-2":"grid-cols-1",H=(e,t)=>{if(!n.preSelectedFilters.length)return!1;const o=n.preSelectedFilters.find(s=>s.key===e.key);return!!(o&&!o.options.find(s=>s.value===t.value))},I=e=>n.appliedFilters.filter(t=>t.key===e.key),M=e=>{c("selectFilters",e)},Q=()=>{c("closeFilters")},R=()=>{c("applyFilters")},J=()=>{c("clearAllFilters")},X=e=>{c("clearIndividualFilter",e)};return ie(w,()=>{ce(()=>{p.value=n.openedFilters.length?n.openedFilters:k.value.map(e=>e.key)})}),(e,t)=>{const o=me,s=Fe,v=be,O=xe,Y=he,Z=_e;return r(),S(Z,{"bg-colour":"var(--colour-grey-0)","is-active":d(w),"overlay-index":170,"panel-position":"float-right","panel-width":"44.3vw","text-colour":"var(--colour-text-grey-1000)",onClosePanel:Q},{title:f(()=>[ue(T(e.$t("Filters")),1)]),footer:f(()=>[m("div",$e,[F(o,{"btn-type":"block",label:i.resultsCounter>0?`${e.$t("View results")} (${i.resultsCounter})`:e.$t("View results"),"section-theme":"light",onClick:R},null,8,["label"]),F(o,{"btn-type":"block",label:e.$t("Clear all"),"section-theme":"dark",onClick:J},null,8,["label"])])]),default:f(()=>[m("div",Ce,[(r(!0),h(P,null,N(d(k),l=>(r(),S(O,{key:l.key,modelValue:d(p),"onUpdate:modelValue":t[1]||(t[1]=a=>de(p)?p.value=a:null),class:"min-h-[52px] border-t-[0.5px] border-grey-1000 px-lg last:border-b-[0.5px] sm:px-xl md:px-2lg lg:px-xl",code:l.key,"is-active":d(p).includes(l.key)},pe({title:f(()=>[m("p",we,T(l.label),1)]),default:f(()=>[m("div",{class:E(["grid gap-x-lg pb-3xl md:gap-x-xl",q(l)])},[(r(!0),h(P,null,N(l.options,a=>(r(),S(v,{key:a.value,modelValue:g.value,"onUpdate:modelValue":[t[0]||(t[0]=ee=>g.value=ee),M],class:"filter-checkbox flex min-h-[44px] items-center md:min-h-[32px]","custom-colour":K(l)?G(a):"",disabled:H(l,a),label:a.name,value:{key:l.key,value:a.value}},{default:f(()=>[B(l,a)?(r(),S(s,{key:0,text:B(l,a).text},null,8,["text"])):fe("",!0)]),_:2},1032,["modelValue","custom-colour","disabled","label","value"]))),128))],2)]),_:2},[I(l).length>0?{name:"right",fn:f(()=>[F(o,{"btn-size":"default","btn-type":"anchor",label:`${e.$t("Clear")} ${I(l).length}`,onClick:a=>X(l)},null,8,["label","onClick"])]),key:"0"}:void 0]),1032,["modelValue","code","is-active"]))),128)),(r(!0),h(P,null,N(d(u),l=>(r(),h("div",{key:l.key,class:"flex h-min min-h-[52px] items-center gap-x-lg border-t-[0.5px] border-textPrimary px-lg py-lg last:border-b-[0.5px] sm:px-xl md:px-2lg lg:px-xl"},[F(Y,{modelValue:g.value,"onUpdate:modelValue":[t[2]||(t[2]=a=>g.value=a),M],"toggle-key":l.key},null,8,["modelValue","toggle-key"]),m("p",Se,T(l.label),1)]))),128))])]),_:1},8,["is-active"])}}}),We=U(Te,[["__scopeId","data-v-d5d9db9d"]]);export{We as default};

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