1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3334],{93334:(e,t,a)=>{a.d(t,{A:()=>B});var r=a(58168),n=a(96540),i=a(5556),o=a.n(i),s=a(97491),l=a(35334),u=a(61263),c=a(6442),d=a(71073),m=a(77714),p=a(80045),g=a(54721),f=a(67234),y=a(85353),h=a(21052),b=a(28156),E=a(10697),v=a(18188),w=a(1194),D=a(95323),M=a(79637),S=a(64853),k=a(80107),C=a(17452),P=a(54625),_=a(5444);const L=({isOpen:e,onClose:t,btnRef:a=null})=>{const r=(0,c.A)();return n.createElement(b._s,{isOpen:e,placement:"right",onClose:t,finalFocusRef:a,size:"md"},n.createElement(E.m,{bg:"black",opacity:"0.7 !important"}),n.createElement(v.z,{px:5,py:5,backgroundColor:"hasbroShade.600"},n.createElement(w.s,{color:"white"}),n.createElement(_.r,{width:"300px",fontSize:"35px",color:"white"},r.formatMessage({id:"order_summary.shipping.return.policy",defaultMessage:[{type:0,value:"Shipping & Return Policy"}]})),n.createElement(D.c,null,n.createElement(h.E,{color:"white",pb:6},"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et"),n.createElement(h.E,{fontWeight:700,color:"white",pb:6},"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et"),n.createElement(h.E,{color:"white"},"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Consequat nisl vel pretium lectus quam id. Semper quis lectus nulla at volutpat diam ut venenatis. Dolor morbi non arcu risus quis varius quam quisque. Massa ultricies mi quis hendrerit dolor magna eget est lorem. Erat imperdiet sed euismod nisi porta. Lectus vestibulum mattis ullamcorper velit."),n.createElement(h.E,{color:"white"},"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Consequat nisl vel pretium lectus quam id. Semper quis lectus nulla at volutpat diam ut venenatis. Dolor morbi non arcu risus quis varius quam quisque. Massa ultricies mi quis hendrerit dolor magna eget est lorem. Erat imperdiet sed euismod nisi porta. Lectus vestibulum mattis ullamcorper velit."))))};L.propTypes={isOpen:o().bool.isRequired,onClose:o().func.isRequired,btnRef:o().object};const A=L,x=["onPress","accessibilityLabel"],I={component:"funding-tracker",slot:"responsive-text"},O=e=>n.createElement(u.E,{dataSet:I,variant:"mBold"},e),F=e=>{let{onPress:t,accessibilityLabel:a}=e,i=(0,p.A)(e,x);return n.createElement(k.K,(0,r.A)({accessibilityLabel:a,color:"textPrimary",icon:n.createElement(C.R2,null),iconSize:16,onPress:t,pressableProps:{testID:"funding-tracker-info-button"},size:"sm",variant:"transparent"},i))};F.propTypes={onPress:o().func,accessibilityLabel:o().string};const T=e=>null===e?"":`${((e,t)=>{const a=e.getMonth();switch(t){case"de-DE":return["Januar","februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"][a];case"it-IT":return["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"][a];case"es-US":case"es-ES":return["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][a];case"fr-CA":case"fr-FR":return["Janvier","février","Mars","Avril","Mai","Juin","Juillet","août","Septembre","Octobre","Novembre","décembre"][a];case"en-US":return["Winter","Winter","Spring","Spring","Spring","Summer","Summer","Summer","Fall","Fall","Fall","Winter"][a];default:return["January","February","March","April","May","June","July","August","September","October","November","December"][a]}})(e,(0,c.A)().locale)} ${e.getFullYear()}`,z=({children:e,drawerDisclosure:t})=>{const{isOpen:a,onClose:r}=t;return n.createElement("div",null,n.createElement(b._s,{isOpen:a,onClose:r,size:"md"},n.createElement(E.m,null,n.createElement(v.z,{color:"white",backgroundColor:"hasbroShade.700"},n.createElement(w.s,null),n.createElement(D.c,null,e)))))};z.propTypes={children:o().node,drawerDisclosure:o().object};const R=({showStatusText:e=!0,active:t=!1,status:a=m.PC.IN_PROGRESS,anticipatedShipDate:r,campaignEndDate:i})=>{const o=r?new Date(r.replace(/-/g,"/").replace(/T.+/,"")):null,l=i?new Date(i):null,d=(0,M.j)(),p=(0,M.j)();
1return n.createElement(s.a,null,n.createElement(s.a,{alignItems:"center",flexDirection:"row",justifyContent:"space-between",testID:"funding-tracker-campaign-info"},e&&((e,t)=>{const a=(0,c.A)();let r;switch(!0){case e:r=n.createElement(s.a,{flexDirection:"row",gap:2,alignItems:"center"},n.createElement(s.a,{backgroundColor:"buttonPrimaryHover",borderWidth:1,borderStyle:"solid",borderColor:"borderButtonPrimaryFocused",borderRadius:"round",width:10,height:10,elevation:2,shadowColor:"buttonPrimaryHover",shadowOffset:{width:0,height:0},shadowOpacity:.4,shadowRadius:8}),n.createElement(u.E,{dataSet:I,testID:"funding-tracker-status-text",variant:"mBold"},a.formatMessage({id:"crowdfund.currently_funding",defaultMessage:[{type:0,value:"Currently Funding"}]})));break;case t===m.PC.FAILED:r=n.createElement(u.E,{color:"neutral300",dataSet:I,testID:"funding-tracker-status-text",variant:"m"},a.formatMessage({id:"crowdfund.failed",defaultMessage:[{type:0,value:"Failed"}]}));break;default:r=n.createElement(S.y,{colors:["#25C0DC","#0171B7"],dataSet:I,testID:"funding-tracker-status-text",useAngle:!0,angle:86.02,variant:"mBold"},a.formatMessage({id:"crowdfund.funded",defaultMessage:[{type:0,value:"Funded"}]}))}return r})(t,a),((e,t,a,r,i)=>{const o=(0,c.A)();let l;switch(!0){case!e:l=n.createElement(s.a,{flexDirection:"row",gap:1,alignItems:"center"},n.createElement(u.E,{dataSet:I,testID:"funding-tracker-info-text",variant:"m"},t==m.PC.FUNDED?o.formatMessage({id:"crowdfund.shipping",defaultMessage:[{type:0,value:"Shipping "},{type:8,value:"strong",children:[{type:1,value:"date"}]}]},{date:T(a),strong:O}):o.formatMessage({id:"crowdfund.closed",defaultMessage:[{type:0,value:"Project "},{type:8,value:"strong",children:[{type:0,value:"Closed"}]}]},{strong:O})),n.createElement(F,{onPress:i,accessibilityLabel:o.formatMessage({defaultMessage:[{type:0,value:"Show information"}],id:"promo_popover.button.show_info"})}));break;case t==m.PC.FUNDED:l=a&&n.createElement(s.a,{flexDirection:"row",gap:1,alignItems:"center"},n.createElement(u.E,{dataSet:I,testID:"funding-tracker-info-text",variant:"m"},o.formatMessage({id:"crowdfund.estimated_shipping",defaultMessage:[{type:0,value:"Estimated Shipping in "},{type:8,value:"strong",children:[{type:1,value:"date"}]}]},{date:T(a),strong:O})),n.createElement(F,{onPress:i,accessibilityLabel:o.formatMessage({defaultMessage:[{type:0,value:"Show information"}],id:"promo_popover.button.show_info"})}));break;default:l=r&&n.createElement(s.a,{flexDirection:"row",gap:1,alignItems:"center"},n.createElement(u.E,{dataSet:I,testID:"funding-tracker-info-text",variant:"m"},o.formatMessage({id:"crowdfund.closes_in",defaultMessage:[{type:0,value:"Project Closes in "},{type:8,value:"strong",children:[{type:1,value:"days"},{type:0,value:" days"}]}]},{days:`${Math.floor((r-new Date)/864e5)}`,strong:O})),n.createElement(F,{marginLeft:1,onPress:i,accessibilityLabel:o.formatMessage({defaultMessage:[{type:0,value:"Show information"}],id:"promo_popover.button.show_info"})}))}return l})(t,a,o,l,d.onOpen)),n.createElement(z,{drawerDisclosure:d},((e,t,a,r)=>{const i=(0,c.A)(),o=n.useRef(),{buildUrl:s}=(0,g.A)();return e?n.createElement(f.s,{flexDirection:"column",gap:"8"},n.createElement(y.D,{as:"h3",size:"h3"},i.formatMessage({id:"crowdfund.estimated_shipping",defaultMessage:[{type:0,value:"Estimated Shipping "},{type:8,value:"strong",children:[{type:1,value:"date"}]}]},{date:T(a),strong:e=>n.createElement("strong",null,e)})),n.createElement(h.E,null,i.formatMessage({id:"crowdfund.modal.estimated_shipping.message",defaultMessage:[{type:0,value:"This campaign will move into production when it reaches its minimum backing goal."}]})),n.createElement(h.E,{fontWeight:"700"},i.formatMessage({id:"crowdfund.modal.estimated_shipping.end_date_message",defaultMessage:[{type:0,value:"We will stop taking backers at "},{type:1,value:"time"},{type:0,value:" on "},{type:1,value:"date"}]},{time:r?r.toLocaleTimeString(i.locale,{hour12:!0,hour:"2-digit",minute:"2-digit",timeZoneName:"short"}):"",date:r?r.toLocaleDateString(i.locale,{year:"numeric",month:"long",day:"numeric"}):""})),n.createElement(f.s,null,n.createElement(P.Link,{style:{color:"white","font-size":"1rem","font-weight":"bold","margin-right":"1rem"},fontSize:"12px",fontWeight:500,textDecoration:"underline",variant:"unstyled",ref:o,to:s("/pages/returns-policy")},i.formatMessage({id:"order_summary.return.policy",defaultMessage:[{type:0,value:"Return Policy"}]})),n.createElement(P.Link,{style:{color:"white","font-size":"1rem","font-weight":"bold"},fontSize:"12px",fontWeight:500,textDecoration:"underline",variant:"unstyled",ref:o,to:s("en-US"===i.locale?"/pages/shipping-policy":"/pages/delivery-policy")},i.formatMessage({id:"order_summary.shipping.policy",defaultMessage:[{type:0,value:"Shipping Policy"}]})))):t==m.PC.FUNDED?n.createElement(f.s,{flexDirection:"column",gap:"8"},n.createElement(y.D,{as:"h3",size:"h3"},i.formatMessage({id:"crowdfund.shipping",defaultMessage:[{type:0,value:"Shipping "},{type:8,value:"strong",children:[{type:1,value:"date"}]}]},{date:T(a),strong:e=>n.createElement("strong",null,e)})),n.createElement(h.E,{fontWeight:"500"},i.formatMessage({id:"crowdfund.modal.shipping.message",defaultMessage:[{type:8,value:"strong",children:[{type:0,value:"This campaign has ended and was successfully backed!"}]},{type:0,value:" It will now move into production."}]},{date:T(a),strong:e=>n.createElement("strong",null,e)})),n.createElement(f.s,null,n.createElement(P.Link,{style:{color:"white","font-size":"1rem","font-weight":"bold","margin-right":"1rem"},fontSize:"12px",fontWeight:500,textDecoration:"underline",variant:"unstyled",ref:o,to:s("/pages/returns-policy")},i.formatMessage({id:"order_summary.return.policy",defaultMessage:[{type:0,value:"Return Policy"}]})),n.createElement(P.Link,{style:{color:"white","font-size":"1rem","font-weight":"bold"},fontSize:"12px",fontWeight:500,textDecoration:"underline",variant:"unstyled",ref:o,to:s("en-US"===i.locale?"/pages/shipping-policy":"/pages/delivery-policy")},i.formatMessage({id:"order_summary.shipping.policy",defaultMessage:[{type:0,value:"Shipping Policy"}]})))):n.createElement(f.s,{flexDirection:"column",gap:"8"},n.createElement(y.D,{as:"h3",size:"h3"},i.formatMessage({id:"crowdfund.modal.not_funded.heading",defaultMessage:[{type:0,value:"Not Funded"}]})),n.createElement(h.E,{fontWeight:"700"},i.formatMessage({id:"crowdfund.modal.not_funded.message",defaultMessage:[{type:0,value:"Unfortunately, this project did not meet its backer goal and did not go into production."}]})))})(t,a,o,l)),n.createElement(A,{isOpen:p.isOpen,onClose:p.onClose}))};R.propTypes={showStatusText:o().bool,active:o().bool,status:o().oneOf([m.PC.FAILED,m.PC.FUNDED,m.PC.IN_PROGRESS]),anticipatedShipDate:o().string,campaignEndDate:o().number};const U=R,q={default:{component:"funding-tracker",layout:"default"},sticky:{component:"funding-tracker",layout:"sticky"}},N=({active:e,anticipatedShipDate:t,campaignEndDate:a,currentValue:i,goalType:o=m.$0.NUMBER,goalValue:p,showCrowdFundInfo:g=!0,status:f,tiersTotal:y,tiersUnlocked:h,tierColorScheme:b="gold",customStyles:E={},containerTestID:v,layout:w="default"})=>{const D=Boolean(y&&y>=0&&h>=0),M=(0,c.A)(),{currency:S}=(0,d.H2)(),k=e=>o===m.$0.NUMBER?new Intl.NumberFormat(M.locale||M.defaultLocale||"en-US").format(e):M.formatNumber(e,{style:"currency",currency:S}),C=k(i),P=k(p),_=M.formatMessage(o===m.$0.CURRENCY?{id:"crowdfund.raised",defaultMessage:"Raised"}:{id:"crowdfund.backers",defaultMessage:"Backers"}),L=M.formatMessage({id:"crowdfund.target",defaultMessage:[{type:0,value:"Target"}]}),A=`${C} ${_}; ${L} ${P}`,x=D?M.formatMessage({id:"crowdfund.tiers",defaultMessage:[{type:1,value:"tiersProgress"},{type:0,value:" Tiers Unlocked"}]},{tiersProgress:`${h} / ${y}`}):void 0,I=D?M.formatMessage({id:"crowdfund.tiers",defaultMessage:[{type:1,value:"tiersProgress"},{type:0,value:" Tiers Unlocked"}]},{tiersProgress:""}).trim():void 0;return n.createElement(s.a,(0,r.A)({dataSet:q[w],flexDirection:"column",gap:1,testID:v,width:"100%"},E),n.createElement(s.a,{alignItems:"flex-end",flexDirection:"row",gap:1,justifyContent:"space-between"},n.createElement(l.q,{currentValue:i,goalValue:p,primaryAccessibilityLabel:A,primaryProgressBarTestID:"funding-tracker-primary-progress",primaryProgressMarker:!D||f!==m.PC.FUNDED,primaryLabelLeft:()=>n.createElement(u.E,{variant:"m"},n.createElement(u.E,{variant:"mBold"},C)," ",_),primaryLabelRight:()=>n.createElement(u.E,{variant:"m"},L," ",n.createElement(u.E,{variant:"mBold"},P)),size:"medium",testID:"funding-tracker-status",tierColorScheme:b,tiersAccessibilityLabel:x,tiersLabel:I,tiersTotal:D?y:0,tiersUnlocked:D?h:0,tiersProgressBarTestID:"funding-tracker-tiers-progress",tiersProgressMarker:D,variant:"above",width:"100%"})),g&&n.createElement(U,{active:e,status:f,anticipatedShipDate:t,campaignEndDate:a}))};N.propTypes={active:o().bool,anticipatedShipDate:o().string,campaignEndDate:o().number,currentValue:o().number,containerTestID:o().string,customStyles:o().object,goalType:o().oneOf(["number","currency"]),goalValue:o().number,layout:o().oneOf(["default","sticky"]),showCrowdFundInfo:o().bool,status:o().string,tiersTotal:o().number,tiersUnlocked:o().number,tierColorScheme:o().oneOf(["yellow","blue","secondaryAccent","gold","purple","red","green","rose","white","carousel"])};const B=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.