PageSourceSearch

https://www.totallyworkwear.com.au/_next/static/chunks/8975-49947ddafa3ff2ce.js

js totallyworkwear.com.au collected 2026-09-28 05:59:11 UTC 17,041 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8975],{45162:(e,t,a)=>{a.d(t,{A:()=>B});var s,l,i=a(26514),n=a(90402),r=a(49255),c=a(58201),d=a(93682),o=a.n(d),x=a(27765),m=a(52346),u=a(77569),f=a.n(u),p=a(75834),h=a(55892),b=a(67192),j=a(89146),g=a.n(j);let v=e=>{let{algoliaIndex:t}=(0,c.mL)(),[a,s]=(0,p.useState)(!1),l=(0,b.J)(e);if((0,p.useEffect)(()=>{if(e.filtersOpen&&e.filtersOpen.includes(e.uuid)&&l.items.length>0&&!a){let a=l.items.map(t=>`${e.attribute}:${t.value}`);(0,m.uM)(a,10).forEach((e,a)=>{0!==e.length&&g()("viewedFilters",{index:t,eventName:"Filters expanded",filters:e})}),s(!0)}},[e.filtersOpen,e.uuid,t,e.attribute,a]),!l.items||l.items.length<1)return(0,i.jsx)(i.Fragment,{});let n=(0,x._d)(e.attribute,l.items);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(h.As,{uuid:e.uuid,className:f()("refinementAccordion px-24 accordion-item border-b border-lightGray"),children:[(0,i.jsx)(h.IZ,{children:(0,i.jsx)(h.SR,{children:(0,i.jsxs)("div",{className:"jsx-ce40216383d2b77c flex flex-col",children:[(0,i.jsx)("div",{className:"jsx-ce40216383d2b77c text-13 uppercase leading-24 font-klavikaM !text-dark",children:e.title}),e.currentRefinement?.length>0&&!e.filtersOpen.includes(e.uuid)&&(0,i.jsx)("div",{className:"jsx-ce40216383d2b77c appliedFilters text-13 leading-20 text-disabledV2 font-normal normal-case",children:l.items.filter(e=>e.isRefined).map(e=>e.label).join(", ")})]})})}),(0,i.jsx)(h.IT,{className:"accordion-panel pt-8",children:(0,i.jsx)("ul",{className:"jsx-ce40216383d2b77c "+(f()("ais-RefinementList-list")||""),children:n.map(a=>(0,i.jsx)("li",{className:"jsx-ce40216383d2b77c "+(f()("ais-RefinementList-item ",{"ais-RefinementList-item--selected":a.isRefined})||""),children:(0,i.jsxs)("label",{onClick:s=>{s.preventDefault(),l.refine(a.value),l.createURL(a.value),g()("clickedFilters",{index:t,eventName:"Filters item clicked",filters:[`${e.attribute}:${a.value}`]})},className:"jsx-ce40216383d2b77c ais-RefinementList-label",children:[(0,i.jsx)("input",{type:"checkbox",value:a.value,checked:a.isRefined,onChange:()=>{},className:"jsx-ce40216383d2b77c ais-RefinementList-checkbox"}),(0,i.jsx)("span",{className:"jsx-ce40216383d2b77c ais-RefinementList-labelText",children:a.label}),(0,i.jsxs)("span",{className:"jsx-ce40216383d2b77c ais-RefinementList-count-v2",children:["(",a.count,")"]})]})},a.value))})})]},e.uuid),(0,i.jsx)(o(),{id:"5028e73476c8d537",children:'.refinementAccordion .accordion__button{position:relative;display:flex;align-items:center;width:100%;text-align:left;padding:16px 0;transition:color.2s linear;cursor:pointer;text-transform:uppercase;color:rgb(0,0,0)}.refinementAccordion .accordion__button:focus{outline:none}.refinementAccordion .accordion__button:before{content:"";position:absolute;right:0px;top:50%;width:10px;height:10px;margin-top:-6px;border-style:solid;border-width:1px 1px 0 0;border-color:rgb(0,0,0)}.refinementAccordion .accordion__button:before{-webkit-transform:rotate(135deg);transform:rotate(135deg);transition:-webkit-transform.35s cubic-bezier(.65,.05,.36,1);transition:transform.35s cubic-bezier(.65,.05,.36,1),-webkit-transform.35s cubic-bezier(.65,.05,.36,1)}.refinementAccordion .accordion__button[aria-expanded="true"]:before{-webkit-transform:rotate(315deg);transform:rotate(315deg)}'}),(0,i.jsx)(o(),{id:"3116399d538dc6d",children:".ais-RefinementList-count-v2.jsx-ce40216383d2b77c{margin-left:auto}.accordion-item.jsx-ce40216383d2b77c{padding-top:9px}.accordion-panel.jsx-ce40216383d2b77c{margin-bottom:23px}.categories.jsx-ce40216383d2b77c .ais-RefinementList-labelText.jsx-ce40216383d2b77c:before{display:none}"})]})},w=e=>{let{items:t,refine:a,createURL:s}=(0,b.J)(e);return t.length<1?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"jsx-660f335f97bad248 mt-16 px-24 pt-20 pb-12 border border-standard",children:(0,i.jsx)("ul",{className:`jsx-660f335f97bad248 ais-RefinementList-list ${e.className}`,children:t.map(e=>(0,i.jsx)("li",{className:"jsx-660f335f97bad248 "+(f()("ais-RefinementList-item ",{"ais-RefinementList-item--selected":e.isRefined})||""),children:(0,i.jsxs)("label",{onClick:t=>{t.preventDefault(),a(e.value),s(e.value)},className:"jsx-660f335f97bad248 ais-RefinementList-label",children:[(0,i.jsx)("input",{type:"checkbox",value:e.value,checked:e.isRefined,onChange:()=>{},className:"jsx-660f335f97bad248 ais-RefinementList-checkbox"}),(0,i.jsx)("span",{className:"jsx-660f335f97bad248 ais-RefinementList-labelText",children:e.label}),(0,i.jsxs)("span",{className:"jsx-660f335f97bad248 ais-RefinementList-count-v2",children:["(",e.count,")"]})]})},e.value))})}),(0,i.jsx)(o(),{id:"660f335f97bad248",children:".ais-RefinementList-count-v2.jsx-660f335f97bad248{margin-left:auto}"})]})};var N=a(91866);let y=(s=e=>
1{let[t,a]=(0,p.useState)(!1),s=t=>{let a=t.target.value;t.preventDefault(),e.refine(a)},l=e.items.filter(t=>t.value===e.currentRefinement)[0]?.label;return(0,p.useEffect)(()=>{l&&e.setCurrentSortItem(l)},[l]),(0,i.jsxs)("div",{className:"jsx-1d5468c524addb4c flex flex-col relative sortByContainer bg-white ",children:[(0,i.jsx)("div",{className:"jsx-1d5468c524addb4c",children:e.items.map(t=>(0,i.jsx)("div",{className:"jsx-1d5468c524addb4c my-4",children:(0,i.jsxs)("label",{className:"jsx-1d5468c524addb4c ais-RefinementList-container",children:[t.label,(0,i.jsx)("input",{type:"radio",name:"sortBy",value:t.value,checked:t.value===e.currentRefinement,onChange:s,className:"jsx-1d5468c524addb4c checkbox"}),(0,i.jsx)("span",{className:"jsx-1d5468c524addb4c ais-checkmark"})]})},t.value))}),(0,i.jsx)(o(),{id:"1d5468c524addb4c",children:".sortByContainer.jsx-1d5468c524addb4c{min-width:100px;padding-left:3px}.options.jsx-1d5468c524addb4c{padding-left:5px;left:-3px;top:17px;min-width:103px}"})]})},e=>{let t=(0,N.l)(e);return(0,i.jsx)(s,{...e,...t})});var k=a(53812);let _=(l=({attributesToRender:e,children:t,facetOrdering:a})=>{let{algoliaIndex:s}=(0,c.mL)(),[l,n]=(0,p.useState)("Best Match"),[r,d]=(0,p.useState)([]),[m,u]=(0,p.useState)([]);return(0,i.jsxs)("div",{className:"jsx-53064c3c5f98fcdb w-full mr-40 laptop:block relative",children:[(0,i.jsxs)("div",{className:"jsx-53064c3c5f98fcdb "+(f()("mx-16 tablet:mx-32 laptop:mx-0")||""),children:[(0,i.jsx)(w,{attribute:"named_tags.type"}),(0,i.jsx)(h.nD,{allowZeroExpanded:!0,onChange:e=>{d(e)},children:(0,i.jsxs)(h.As,{className:"refinementAccordion accordion-item px-24 border-b border-lightGray",children:[(0,i.jsx)(h.IZ,{className:"text-13 leading-24 font-klavikaM text-header",children:(0,i.jsx)(h.SR,{className:"accordion__button",children:(0,i.jsxs)("div",{className:"jsx-53064c3c5f98fcdb flex flex-col",children:[(0,i.jsx)("div",{className:"jsx-53064c3c5f98fcdb",children:"Sort By"}),0===r.length&&(0,i.jsx)("div",{className:"jsx-53064c3c5f98fcdb  appliedFilters text-13 leading-20 text-disabledV2 font-normal normal-case",children:l})]})})}),(0,i.jsx)(h.IT,{className:"accordion-panel",children:(0,i.jsx)(y,{defaultRefinement:s,setCurrentSortItem:n,items:[{value:s,label:"Best Match"},{value:`${s}_recently_ordered_count_desc`,label:"Popularity"},{value:`${s}_published_at_desc`,label:"Newest"},{value:`${s}_price_asc`,label:"$ Low - High"},{value:`${s}_price_desc`,label:"$ High - Low"}]})})]})}),e.length>0&&(0,i.jsx)(h.nD,{onChange:e=>{u(e)},allowMultipleExpanded:!0,allowZeroExpanded:!0,children:e.map(e=>{let t="";"named_tags.category"===e&&(t="category");let a=(0,x.Iz)(e);return(0,i.jsx)(v,{attribute:e,title:(0,x.dn)(e),uuid:a,className:t,limit:20,filtersOpen:m},a)})})]}),(0,i.jsx)(o(),{id:"53064c3c5f98fcdb",children:".ais-ClearRefinements-button{text-decoration:underline}"})]})},e=>{let t=(0,k.M)(e);return(0,i.jsx)(l,{...e,...t})});var R=a(78094),L=a(35094),S=a(69328),C=a(95866),A=a(3902);let E=({onClose:e})=>{let{nbHits:t}=(0,C.J)();return(0,i.jsxs)(r.A,{onClick:e,width:"100%",children:["SHOW ",t," RESULTS"]})},$=({onClose:e})=>{let t=(0,p.useRef)(null),a=(0,p.useRef)(null),{closeFilterSidebar:s,displayFilterSidebar:l}=(0,c.mL)(),r=(0,R.A)(["(max-width: 699px)"],[!0],!1);return(0,p.useEffect)(()=>{t.current&&t.current.focus();let e=a.current;e&&l?(0,L.mh)(e,{reserveScrollBarGap:!0}):(0,L.qY)()},[l]),(0,i.jsx)(S.P.div,{variants:{open:{display:"block"},closed:{display:"none",transition:{delay:.5,when:"afterChildren"}}},animate:l?"open":"closed",initial:{display:"none"},className:"fixed inset-0 z-50 box-border h-full w-full outline-none",children:(0,i.jsxs)("div",{className:"absolute inset-0 overflow-hidden",children:[(0,i.jsx)(S.P.div,{onClick:s,ref:t,variants:{open:{opacity:1,transition:{duration:.4}},closed:{opacity:0,transition:{duration:.4}}},animate:l?"open":"closed",className:"fixed inset-0  h-full w-full bg-opacity-40 bg-black"}),(0,i.jsxs)(S.P.div,{variants:r?{open:{y:0,transition:{duration:.5}},closed:{y:600,transition:{duration:.5}}}:{open:{x:0,transition:{duration:.5}},closed:{x:392,transition:{duration:.5}}},animate:l?"open":"closed",className:f()({"absolute inset-y-0 right-0 flex h-full w-full flex-col bg-white pt-10 md:w-368 md:pt-14":!r,"absolute bottom-0 flex h-80% w-full flex-col bg-white pt-10 md:w-368 md:pt-14 rounded-t-3xl":r}),children:[(0,i.jsxs)("div",{ref:a,className:"flex h-full flex-1 flex-col overflow-y-scroll scrollbar-hide",children:[(0,i.jsx)("div",{className:"absolute right-20 top-12 laptop:right-24 laptop:top-16 self-end cursor-pointer",onClick:e,children:(0,i.jsx)(n.A,{})}),(0,i.jsx)("div",{className:"my-20",children:(0,i.jsx)("div",{className:"text-base text-center text-13 font-klavikaM leading-24 uppercase md:font-klavikaB",children:"FILTER & SORT"})}),(0,i.jsx)("div",{className:"h-full",children:(0,i.jsx)(_,{})})]}),(0,i.jsx)("div",{className:"mt-auto font-sans text-14 leading-16 w-full text-body",children:(0,i.jsxs)("div",{className:"flex flex-col gap-y-12 justify-center text-center py-16 px-24",children:[(0,i.jsx)(E,{onClose:e}),(0,i.jsx)(A.U,{translations:{resetButtonText:"Clear all filters"}})]})})]})]})})},M=e=>(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,i.jsx)("path",{d:"M3 6H21V8H3V6ZM6 11H18V13H6V11ZM10 16H14V18H10V16Z",fill:e?.fill||"#333333"})});var F=a(63099),I=a(68321);let B=()=>{let{openFilterSidebar:e,closeFilterSidebar:t}=(0,c.mL)(),{items:a}=(0,F.d)(),s=a.reduce((e,t)=>
1e+t.refinements.length,0);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"sticky top-57 z-20 border-b bg-white lg:top-109",children:(0,i.jsx)("div",{className:"laptop:wrapper",children:(0,i.jsxs)("div",{className:"px-16 tablet:px-32 laptop:px-0 h-56 flex items-center gap-x-16 text-14 leading-16 text-body font-sans",children:[(0,i.jsx)(I.U,{translations:{rootElementText:({nbHits:e})=>`${e.toLocaleString()} Products`}}),(0,i.jsx)("div",{className:"flex-1"}),(0,i.jsx)("button",{type:"button",onClick:e,className:"border-0 bg-transparent p-0 uppercase text-subdued",children:(0,i.jsxs)("span",{className:"flex items-center gap-x-8 cursor-pointer text-13 leading-24 font-klavikaB",children:["FILTER & SORT",s>0?(0,i.jsx)("span",{className:"flex h-32 w-32 items-center justify-center rounded-full bg-secondary text-12 font-sans font-bold text-white",children:s}):(0,i.jsx)(M,{})]})})]})})}),(0,i.jsx)($,{onClose:t})]})}},48670:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(26514),l=a(36559),i=a(49920);let n=({hit:e,columns:t,globalSettings:a})=>{let n=[{url:e.image}],r=e?.meta?.my_fields?.SKU__code,c=[],d=e?.meta?.my_fields&&Object.entries(e?.meta?.my_fields)?.map(([e,t])=>({key:e,value:t}));e?.meta?.my_fields?.colour_siblings&&JSON.parse(e.meta.my_fields.colour_siblings).forEach(e=>{c.push({key:e.handle,value:e.colour_code})});let o=a?.enable_promotions,x=(0,l.fR)(e);return(0,s.jsx)(i.A,{title:e.title,description:e.body_html_safe,images:n,price:e.price,compareAtPrice:e.compare_at_price,link:`/${e.handle}`,handle:e.handle,colors:c,tags:e?.named_tags,vendor:e.vendor,sku:r,metafields:d,columns:t,algoliaQueryId:e.__queryID,algoliaObjectId:e.objectID,enablePromotions:o,promotions:x})}},50563:(e,t,a)=>{a.d(t,{A:()=>u});var s=a(26514),l=a(93682),i=a.n(l),n=a(49255),r=a(27765),c=a(77569),d=a.n(c),o=a(46225),x=a(75834),m=a(54197);let u=({HitComponent:e,sessionStorageCache:t,columns:a,globalSettings:l})=>{let{query:c}=(0,o.useRouter)(),u=parseInt(c.p,10),[f,p]=(0,x.useState)(1),[h,b]=(0,x.useState)(32*f),{items:j}=(0,m.q)({cache:t}),g=j.slice(0,h),v=h<j.length,w=j.length,N=g.length;return(0,x.useEffect)(()=>{u&&u!==f&&(p(u),b(32*u))},[u]),(0,x.useEffect)(()=>{if(j.length){document.dispatchEvent(new Event("loadedHits"));let e=(0,r.rI)();e?.y&&(window.scrollTo(0,e.y),(0,r.BQ)())}},[j.length]),(0,s.jsxs)("div",{className:i().dynamic([["8304fedd172e4c86",[a]]]),children:[(0,s.jsx)("div",{className:i().dynamic([["8304fedd172e4c86",[a]]])+" mx-16 tablet:mx-32 laptop:mx-0",children:(0,s.jsx)("div",{className:i().dynamic([["8304fedd172e4c86",[a]]])+" "+(d()("mt-16 hits-grid")||""),children:g.map((t,i)=>(0,s.jsx)(e,{hit:t,columns:a,globalSettings:l},i))})}),(0,s.jsxs)("div",{className:i().dynamic([["8304fedd172e4c86",[a]]])+" text-center font-sans text-body text-14 leading-16 mt-24 laptop:mt-40 pb-24",children:["You have viewed ",N," of ",w," products"]}),v&&(0,s.jsx)("div",{className:i().dynamic([["8304fedd172e4c86",[a]]])+" flex justify-center pb-24",children:(0,s.jsx)(n.A,{variant:"outline",onClick:()=>{let e=f+1;p(e),b(e=>e+32);{let t=new URLSearchParams(window.location.search);t.set("p",e.toString());let a=`${window.location.pathname}?${t.toString()}`;window.history.replaceState({...window.history.state,as:a,url:a},"",a)}},width:"176px",children:"Show More"})}),(0,s.jsx)(i(),{id:"8304fedd172e4c86",dynamic:[a],children:`.hits-grid.__jsx-style-dynamic-selector{display:grid;grid-template-columns:repeat(${a},minmax(0,1fr));column-gap:20px;row-gap:32px;width:100%;padding-bottom:120px}@media(min-width:768px){.hits-grid.__jsx-style-dynamic-selector{column-gap:32px;row-gap:40px}}`})]})}},55297:(e,t,a)=>{a.d(t,{A:()=>h});var s=a(26514),l=a(63335),i=a(58201),n=a(27765);let r=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,"");var c=a(77569),d=a.n(c),o=a(58245),x=a.n(o),m=a(75834),u=a(67192),f=a(89146),p=a.n(f);let h=({brandListEntries:e})=>{let{algoliaIndex:t}=(0,i.mL)(),{items:a,refine:c}=(0,u.J)({attribute:n.aL}),o=(0,m.useMemo)(()=>{let t;return t=new Map,e?.forEach(e=>{let a=r(e?.brand_name||"");a&&!t.has(a)&&t.set(a,e)}),t},[e]),f=(0,m.useRef)(null),[h,b]=(0,m.useState)(!1);return 0===a.length?null:(0,s.jsx)("div",{className:"bg-white",children:(0,s.jsx)("div",{className:"laptop:wrapper",children:(0,s.jsxs)("div",{className:"px-16 py-16 tablet:px-32 laptop:px-0 laptop:pb-16 laptop:pt-24",children:[(0,s.jsx)("p",{className:"mb-12 text-16 leading-24 font-klavikaB text-black",children:"Shop by brand"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{ref:f,onScroll:()=>{!h&&(f.current?.scrollLeft||0)>0&&b(!0)},className:"flex items-center gap-x-8 overflow-x-auto scrollbar-hide",children:a.map(e=>{let a,l=(a=e.label,o.get(r(a))),i=l?.brand_logo,m=!i?.url;return(0,s.jsx)("button",{type:"button","aria-pressed":e.isRefined,title:m?`No matching brand logo found for "${e.label}" — add a brand_list entry with this brand_name`:e.label,onClick:()=>{var a;c(a=e.value),p()("clickedFilters",{index:t,eventName:"Filters item clicked",filters:[`${n.aL}:${a}`]})},className:d()("shrink-0 rounded-4 border px-12 py-8",e.isRefined?"border-black":"border-uiGrey10"),
1children:i?.url?(0,s.jsx)(x(),{src:i.url,alt:i.alt||e.label,width:i.dimensions.width,height:i.dimensions.height,className:"h-32 w-auto object-contain"}):(0,s.jsx)("span",{className:"whitespace-nowrap text-13 font-klavikaM uppercase leading-24 text-black",children:e.label})},e.value)})}),!h&&(0,s.jsx)("button",{type:"button","aria-label":"Scroll to see more brands",onClick:()=>{f.current?.scrollBy({left:160,behavior:"smooth"}),b(!0)},className:"absolute right-0 top-1/2 flex h-32 w-32 -translate-y-1/2 items-center justify-center rounded-full bg-white shadow-md laptop:hidden",children:(0,s.jsx)(l.A,{})})]})]})})})}},63335:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(26514);let l=({className:e="",...t})=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,...t,children:(0,s.jsx)("path",{d:"M9.02785 17.9055L8.83688 17.7145C8.71046 17.5881 8.71046 17.3837 8.83688 17.2573L14.0953 12.0015L8.83688 6.74304C8.71046 6.61663 8.71046 6.4122 8.83688 6.28579L9.02785 6.09481C9.15427 5.9684 9.35869 5.9684 9.48511 6.09481L15.1632 11.7702C15.2896 11.8966 15.2896 12.101 15.1632 12.2275L9.48511 17.9028C9.35869 18.0319 9.15427 18.0319 9.02785 17.9055Z",fill:"#333333"})})})},78094:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(75834);function l(e,t,a){let l=e.map(e=>window.matchMedia(e)),i=()=>{let e=l.findIndex(e=>e?.matches);return void 0!==t[e]?t[e]:a},[n,r]=(0,s.useState)(i);return(0,s.useEffect)(()=>{let e=()=>r(i);return l.forEach(t=>t.addListener(e)),()=>l.forEach(t=>t.removeListener(e))},[]),n}}}]);

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.