"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["CollectionTitle-public"],{XyGs:function(t,e,n){n.d(e,{H:function(){return o},I:function(){return l}});var i=n("r+mp");function l(){var t=wp.element.useContext(i.g);if(!t)throw new Error("useCollectionState must be used within the CollectionProvider");return t}function o(){var t=wp.element.useContext(i.u);if(!t)throw new Error("useCollectionDispatch must be used within the CollectionProvider");return t}},TvWS:function(t,e,n){n.r(e);var i=n("LpH3"),l=n("Qu7M"),o=n("U039"),s=n("dGr1"),r=n("iPOl"),c=n("XyGs"),a=wp.element.lazy((function(){return n.e("Link-public").then(n.bind(n,"Y2m9"))})),u={name:"1qmxt59-CollectionTitleCSS",styles:"margin-top:0;label:CollectionTitleCSS;"};function p(t){var e=t.title,n="h".concat(shopwp.misc.isSingularCollections?"1":"2"),l=u;return(0,i.tZ)(n,{itemProp:"name",className:"wps-collection-title",css:l},e)}e.default=function(){var t=(0,l.Q)(),e=(0,c.I)();return(0,o.vI)((0,i.tZ)("div",{className:"wps-component wps-component-collection-title","aria-label":"Collection Title"},(0,r.AH)(t.settings)&&!t.settings.isSingular?(0,i.tZ)(a,{type:"collections",payload:e.payload,linkTo:t.settings.linkTo,target:t.settings.linkTarget},(0,i.tZ)(p,{title:e.payload.title})):(0,i.tZ)(p,{title:e.payload.title})),(0,s.tu)(t.settings.dropzoneCollectionTitle))}}}]);