(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[225],{96205:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/businesses/[businessUrl]",function(){return i(59396)}])},38601:function(e,t,i){"use strict";i.d(t,{f:function(){return AuctionMessage}});var n=i(85893);i(67294);var s=i(93787),a=i(45150),r=i(41609),o=i.n(r),l=i(58467),c=i.n(l),d=i(1588),u=i(31132),m=i(63197);let p={"Pre-open":function(e){let{auctionStats:t,auction:i}=e;return(0,n.jsx)("div",{style:{backgroundColor:"#FFF8DB",padding:"15px",marginBottom:0,borderRadius:0},children:(0,n.jsxs)("div",{style:{justifyContent:"space-between"},className:"flex-container flex-item-align-baseline",children:[(0,n.jsx)("div",{className:"flex-container flex-item-align-baseline",children:(0,n.jsxs)("h4",{className:"txt-yellow",style:{marginBottom:0},children:["Pre-open\xa0",(0,n.jsx)(s.Z,{wide:"very",content:"Trading is not open yet. You can read the information updates provided by the Issuer, but no bids or offers can be submitted yet.",trigger:(0,n.jsx)(a.Z,{size:"tiny",circular:!0,name:"help",className:"txt-yellow"})})]})}),(0,n.jsx)("div",{children:!o()(t)&&!(null==i?void 0:i.isThirdPartyTraded)&&(0,n.jsxs)("b",{className:"".concat(c()["right-padding"]," txt-yellow"),children:["Open to: \xa0",(0,d.uE)(t.productAccess)]})})]})})},Open:function(e){let{auctionStats:t,auction:i}=e;return(0,n.jsx)("div",{style:{backgroundColor:"#E5F9E7",padding:"15px",marginBottom:0,borderRadius:0},children:(0,n.jsxs)("div",{style:{justifyContent:"space-between"},className:"flex-container flex-item-align-baseline",children:[(0,n.jsx)("div",{className:"flex-container flex-item-align-baseline",children:(0,n.jsxs)("h4",{className:"txt-green",style:{marginBottom:0},children:["Open\xa0",(0,n.jsx)(s.Z,{wide:"very",content:"standard"===t.auctionType||"fixed_price"===t.auctionType?"You can submit bids and offers. Bids and offers are legally binding and can only be cancelled if you complete the cancellation before the end of the open period.":"You can submit orders. Orders are legally binding and can only be cancelled if you complete the cancellation before the end of the open period.",trigger:(0,n.jsx)(a.Z,{size:"tiny",circular:!0,name:"help",className:"txt-green"})})]})}),(0,n.jsx)("div",{children:!o()(t)&&!(null==i?void 0:i.isThirdPartyTraded)&&(0,n.jsx)("div",{className:"flex flex-row",children:(0,n.jsxs)("b",{className:"".concat(c()["right-padding"]," txt-green"),children:["Open to: \xa0",(0,d.uE)(t.productAccess)]})})})]})})},"Pre-close":function(e){let{auctionStats:t,auction:i}=e;return(0,n.jsx)("div",{style:{backgroundColor:"#FFEDDE",padding:"15px",marginBottom:0,borderRadius:0},children:(0,n.jsxs)("div",{style:{justifyContent:"space-between"},className:"flex-container flex-item-align-baseline",children:[(0,n.jsx)("div",{className:"flex-container flex-item-align-baseline",children:(0,n.jsxs)("h4",{className:"txt-orange",style:{marginBottom:0},children:["Pre-close\xa0",(0,n.jsx)(s.Z,{wide:"very",content:"During pre-close, bids and offers can only be improved by up to 10% (price and/or quantity). No new bids/offers.  No withdrawals. Bidders must prepay existing bid before improving. See Auction Process in the Documentation page for more information.",trigger:(0,n.jsx)(a.Z,{size:"tiny",circular:!0,name:"help",className:"txt-orange"})})]})}),(0,n.jsx)("div",{children:!o()(t)&&!(null==i?void 0:i.isThirdPartyTraded)&&(0,n.jsxs)("div",{className:"flex flex-row",children:[t.isTimeExtended&&(0,n.jsx)("b",{className:"".concat(c()["right-padding"]," pad-right-15px txt-orange"),children:"This period has been automatically extended and will be ending soon"}),(0,n.jsxs)("b",{className:"".concat(c()["right-padding"]," txt-orange"),children:["Open to: \xa0",(0,d.uE)(t.productAccess)]})]})})]})})},Closed:function(e){let{auctionStats:t,auction:i}=e;return(0,n.jsx)("div",{style:{backgroundColor:"#ffe6e6",padding:"15px",marginBottom:0,borderRadius:0},children:(0,n.jsxs)("div",{style:{justifyContent:"space-between"},className:"flex-container flex-item-align-baseline",children:[(0,n.jsx)("div",{className:"flex-container flex-item-align-baseline",children:(0,n.jsx)("h4",{className:"txt-red",style:{marginBottom:0},children:"Historic auction information"})}),(0,n.jsx)("b",{className:"txt-red",style:{marginBottom:0},children:"Auction ended ".concat((0,u.default)(new Date(1e3*t.closed),m.vc))})]})})},"Pre-Settlement":function(){return(0,n.jsx)("div",{style:{backgroundColor:"#ffe6e6",padding:"15px",marginBottom:0,borderRadius:0},children:(0,n.jsx)("div",{style:{justifyContent:"space-between"},className:"flex-container flex-item-align-baseline",children:(0,n.jsx)("div",{className:"flex-container flex-item-align-baseline",children:(0,n.jsxs)("h4",{className:"txt-red",style:{marginBottom:0},children:["Pre-settled\xa0",(0,n.jsx)(s.Z,{wide:"very",content:"This auction has now closed. All results are provisional until settlement has been completed.",trigger:(0,n.jsx)(a.Z,{size:"tiny",circular:!0,name:"help",className:"txt-red"})})]})})})})}};function AuctionMessage(e){let{auctionState:t,auctionStats:i,settlementState:s}=e,a=null;return null==(a="Closed"===t&&"settled"!==s?p["Pre-Settlement"]:p[t])?null:(0,n.jsx)(a,{auctionStats:i,auction:t})}},77411:function(e,t,i){"use strict";i.d(t,{G:function(){return InformationContainer}});var n=i(85893),s=i(93787),a=i(45150),r=i(67294),o=i(31132),l=i(63197),c=i(49125),d=i.n(c);function TimeLine(e){let{auctionStats:t,auction:i}=e,s=null!=t.closingStart&&t.closingStart!=t.closed,a=i.status;return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:d().showOnWidthScreen,children:(0,n.jsxs)("div",{className:d()["auction-timeline__container"],children:[(0,n.jsxs)("div",{className:d().timeline__container,style:{gridTemplateColumns:"repeat(".concat(s?4:3,", 1fr")},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"".concat("Pre-open"==a?d()["pre-open-active"]:""),children:"Pre-open"}),(0,n.jsxs)("p",{children:["Pre-open"===a?"Ends: ":"Ended: ",(0,o.default)(new Date(1e3*t.openStart),l.dq)]})]}),(0,n.jsxs)("div",{className:d()["center-align-column"],children:[(0,n.jsxs)("h3",{className:"".concat("Open"==a?d()["open-active"]:""),children:["Open","standard"===t.auctionType&&(0,n.jsx)(AutoExtensionHover,{})]}),(0,n.jsx)("p",{children:(0,o.default)(new Date(1e3*t.openStart),l.dq)})]}),s&&(0,n.jsxs)("div",{className:d()["center-align-column"],children:[(0,n.jsxs)("h3",{className:"".concat("Pre-close"==a?d()["preclose-active"]:""),children:["Pre-close","standard"===t.auctionType&&(0,n.jsx)(AutoExtensionHover,{})]}),(0,n.jsx)("p",{children:(0,o.default)(new Date(1e3*t.closingStart),l.dq)})]}),(0,n.jsxs)("div",{className:d()["right-align-column"],children:[(0,n.jsx)("h3",{className:"".concat(d()["auction-closed"]," ").concat("Closed"==a?d()["closed-active"]:""),children:"Close"}),(0,n.jsx)("p",{children:(0,o.default)(new Date(1e3*t.closed),l.dq)})]}),(0,n.jsx)("div",{style:{gridColumn:"1 / 2"},className:"".concat(d()["timeline-period"]," ").concat(d()["timeline-period__left"]," ").concat("Pre-open"==a?d()["timeline-period-active"]:"")}),(0,n.jsx)("div",{style:{gridColumn:"2 / 3"},className:"".concat(d()["timeline-period"]," ").concat(d()["timeline-period__center"]," ").concat("Open"==a?d()["timeline-period-active"]:"")}),s&&(0,n.jsx)("div",{style:{gridColumn:"-2 / -3"},className:"".concat(d()["timeline-period"]," ").concat(d()["timeline-period__center"]," ").concat("Pre-close"==a?d()["timeline-period-active"]:"")}),(0,n.jsx)("div",{style:{gridColumn:"-1 / -2"},className:"".concat(d()["timeline-period"]," ").concat(d()["timeline-period__right"]," ").concat("Closed"==a?d()["timeline-period-active"]:"")})]}),(0,n.jsx)("div",{className:d().stripe}),"commitment_raise"!==t.auctionType&&"exercise_issuer"!==t.auctionType&&"exercise_issuer_oversubscription"!==t.auctionType&&"exercise_investor"!==t.auctionType&&"exercise_investor_oversubscription"!==t.auctionType&&(0,n.jsx)("div",{className:"pad-top-30px",children:(0,n.jsxs)("a",{href:"/MarketplaceMechanics",target:"_blank",children:["Learn more about the ","capital_raise"===t.auctionType?"capital raise":"auction"," process"]})})]})}),(0,n.jsxs)("div",{className:d().showOnNarrowScreen,children:[(0,n.jsxs)("div",{className:d().timeline,children:[(0,n.jsxs)("div",{className:d().timeline__block,children:[(0,n.jsx)("div",{className:"".concat(d().timeline__midpoint," ").concat("Pre-open"==a?d()["timeline-period-active"]:"")}),(0,n.jsxs)("div",{className:d().timeline__content,children:[(0,n.jsx)("h3",{className:"".concat("Pre-open"==a?d()["pre-open-active"]:""),children:"Pre-open"}),(0,n.jsxs)("p",{children:["Pre-open"===a?"Ends: ":"Ended: ",(0,o.default)(new Date(1e3*t.openStart),l.dq)]})]})]}),(0,n.jsxs)("div",{className:d().timeline__block,children:[(0,n.jsx)("div",{className:"".concat(d().timeline__midpoint," ").concat("Open"==a?d()["timeline-period-active"]:"")}),(0,n.jsxs)("div",{className:d().timeline__content,children:[(0,n.jsxs)("h3",{className:"".concat("Open"==a?d()["open-active"]:""),children:["Open","standard"===t.auctionType&&(0,n.jsx)(AutoExtensionHover,{})]}),(0,n.jsx)("p",{children:(0,o.default)(new Date(1e3*t.openStart),l.dq)})]})]}),s&&(0,n.jsxs)("div",{className:d().timeline__block,children:[(0,n.jsx)("div",{className:"".concat(d().timeline__midpoint," ").concat("Pre-close"==a?d()["timeline-period-active"]:"")}),(0,n.jsxs)("div",{className:d().timeline__content,children:[(0,n.jsxs)("h3",{className:"".concat("Pre-close"==a?d()["preclose-active"]:""),children:["Pre-close","standard"===t.auctionType&&(0,n.jsx)(AutoExtensionHover,{})]}),(0,n.jsx)("p",{children:(0,o.default)(new Date(1e3*t.closingStart),l.dq)})]})]}),(0,n.jsxs)("div",{className:d().timeline__block,children:[(0,n.jsx)("div",{className:"".concat(d().timeline__midpoint," ").concat("Closed"==a?d()["timeline-period-active"]:"")}),(0,n.jsxs)("div",{className:d().timeline__content,children:[(0,n.jsx)("h3",{className:"".concat(d()["auction-closed"]," ").concat("Closed"==a?d()["closed-active"]:""),children:"Close"}),(0,n.jsxs)("p",{children:[" ",(0,o.default)(new Date(1e3*t.closed),l.dq)]})]})]})]}),"commitment_raise"!==t.auctionType&&"exercise_issuer"!==t.auctionType&&"exercise_issuer_oversubscription"!==t.auctionType&&"exercise_investor"!==t.auctionType&&"exercise_investor_oversubscription"!==t.auctionType&&(0,n.jsx)("div",{className:"pad-top-10px",children:(0,n.jsxs)("a",{href:"/MarketplaceMechanics",target:"_blank",children:["Learn more about the ","capital_raise"===t.auctionType?"capital raise":"auction"," process"]})})]})]})}function AutoExtensionHover(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)("span",{style:{fontSize:"16px"},children:"*"}),content:"The end of this period can be automatically extended by a short time to avoid price-manipulation or disorderly bidding."})}var u=i(1588),m=i(91108),p=i(80305);function InformationContainer(e){let{auctionStats:t,auction:i,authenticated:s}=e;return(0,n.jsxs)("div",{className:"background-white pad-left-15px pad-right-15px pad-bottom-15px",children:[(0,n.jsx)("div",{className:"pad-top-15px",children:i.isThirdPartyTrading?(0,n.jsx)(AuctionInformationGridThirdPartyTrading,{auctionType:i.auctionType,lastTradedPrice:t.lastTradedPrice}):(0,n.jsxs)(n.Fragment,{children:["standard"===i.auctionType&&(0,n.jsx)(AuctionInformationGridStandard,{auctionStats:t,status:i.status,isFixedPrice:i.isFixedPrice,settlementState:i.settlementState}),"capital_raise"===i.auctionType&&(0,n.jsx)(AuctionInformationGridCapitalRaise,{auctionStats:t,status:i.status,isFixedPrice:i.isFixedPrice,settlementState:i.settlementState}),"commitment_raise"===i.auctionType&&(0,n.jsx)(AuctionInformationGridCommitmentRaise,{auctionStats:t,status:i.status,isFixedPrice:i.isFixedPrice,settlementState:i.settlementState}),("exercise_issuer"===i.auctionType||"exercise_investor"===i.auctionType)&&(0,n.jsx)(AuctionInformationGridExercise,{auctionStats:t,status:i.status,auctionPublicID:i.publicID,isFixedPrice:i.isFixedPrice,settlementState:i.settlementState,authenticated:s}),("exercise_issuer_oversubscription"===i.auctionType||"exercise_investor_oversubscription"===i.auctionType)&&(0,n.jsx)(AuctionInformationGridExerciseOversubscription,{auctionStats:t,status:i.status,auctionPublicID:i.publicID,isFixedPrice:i.isFixedPrice,settlementState:i.settlementState,authenticated:s})]})}),!i.isThirdPartyTrading&&(0,n.jsx)(TimeLine,{auctionStats:t,auction:i})]})}function AuctionInformationGridThirdPartyTrading(e){let{auctionType:t,lastTradedPrice:i}=e;return(0,n.jsxs)("div",{className:"grid-container-2",children:[(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Event type ",(0,n.jsx)(HoverExplainThirdPartyTrading,{})]}),(0,n.jsx)("div",{className:"grid-value",children:(0,u.Wd)(t)})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Last traded price ",(0,n.jsx)(HoverExplainLastTradedPrice,{})]}),(0,n.jsx)("div",{className:"grid-value",children:(0,u.lb)(i,3,{emptyLabel:"-",currency:"NZD"})})]}),(0,n.jsx)("div",{className:"grid-stat",children:(0,n.jsx)("div",{className:"grid-label",children:(0,n.jsx)("i",{children:"To trade this product you will be taken to an external partner website to complete your order. Your investments will still be displayed in your Catalist account."})})})]})}function AuctionInformationGridStandard(e){let{auctionStats:t,status:i,isFixedPrice:s,settlementState:a}=e;return(0,n.jsxs)("div",{className:"grid-container-4",children:[(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Event type ",(0,n.jsx)(HoverExplainAuctionTypeSecondary,{})]}),(0,n.jsx)("div",{className:"grid-value",children:"Secondary market"})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsx)("div",{className:"grid-label",children:(0,n.jsx)(PriceColumnHeader,{status:i,hasExpectedPrice:0!=t.expectedPrice,isFixedPrice:s,settlementState:a})}),(0,n.jsx)("div",{className:"grid-value",children:0==t.expectedPrice&&i!==p.wo.Closed?(0,n.jsx)("h3",{className:"margin-top-5px txt-secondary-color",children:(0,u.lb)(t.competitiveOrders.bidPrice,3,{emptyLabel:"-",currency:"NZD"})}):(0,n.jsx)("h3",{className:"margin-top-5px txt-secondary-color",children:(0,u.lb)(t.expectedPrice,3,{emptyLabel:"-",currency:"NZD"})})})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:[i!==p.wo.Closed&&0==t.expectedPrice?(0,n.jsx)(n.Fragment,{children:"Best offer price"}):i!==p.wo.Closed&&(0,n.jsxs)(n.Fragment,{children:["Indicative trading quantity ",(0,n.jsx)(HoverExplainAuctionQuantity,{})]}),i===p.wo.Closed&&"settled"===a&&(0,n.jsx)(n.Fragment,{children:"Quantity traded"}),i===p.wo.Closed&&"settled"!==a&&(0,n.jsxs)(n.Fragment,{children:["Provisional trading quantity ",(0,n.jsx)(HoverExplainProvisionalQuantity,{})]})]}),0==t.expectedPrice&&i!==p.wo.Closed?(0,n.jsx)("div",{className:"grid-value",children:(0,u.lb)(t.competitiveOrders.offerPrice,3,{emptyLabel:"-",currency:"NZD"})}):(0,n.jsx)("div",{className:"grid-value",children:(0,u.uf)(t.expectedQuantity)})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsx)("div",{className:"grid-label",children:(0,n.jsx)(DemandColumnHeader,{auctionPrice:t.expectedPrice,status:i})}),(0,n.jsx)("div",{className:"grid-value",children:(0,n.jsx)(AuctionDemand,{price:t.expectedPrice,demand:t.demand})})]})]})}function AuctionInformationGridCapitalRaise(e){let{auctionStats:t,status:i,isFixedPrice:s,settlementState:a}=e;return(0,n.jsxs)("div",{className:"grid-container-3",children:[(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Event type ",(0,n.jsx)(HoverExplainAuctionTypeCapitalRaise,{})]}),(0,n.jsx)("div",{className:"grid-value",children:"Capital raise"})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsx)("div",{className:"grid-label",children:(0,n.jsx)(PriceColumnHeader,{status:i,hasExpectedPrice:0!=t.expectedPrice,isFixedPrice:s,settlementState:a})}),(0,n.jsx)("div",{className:"grid-value",children:(0,u.lb)(t.fixedPrice,3,{emptyLabel:"-",currency:"NZD"})})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:[i!==p.wo.Closed&&(0,n.jsx)(n.Fragment,{children:t.totalAmountRaised>t.raiseTargetMin?(0,n.jsxs)(n.Fragment,{children:["Total amount raised ",(0,n.jsx)(HoverExplainTotalAmountRaised,{})]}):(0,n.jsx)(n.Fragment,{children:"Status"})}),i===p.wo.Closed&&"settled"===a&&(0,n.jsx)(n.Fragment,{children:"Quantity traded"}),i===p.wo.Closed&&"settled"!==a&&(0,n.jsxs)(n.Fragment,{children:["Provisional trading quantity ",(0,n.jsx)(HoverExplainProvisionalQuantity,{})]})]}),(0,n.jsx)("div",{className:"grid-value",children:i===p.wo.Closed?(0,n.jsx)(n.Fragment,{children:(0,u.uf)(t.expectedQuantity)}):(0,n.jsx)(n.Fragment,{children:t.totalAmountRaised>t.raiseTargetMin?(0,u.lb)(t.totalAmountRaised,3,{emptyLabel:"-",showCents:!1,currency:"NZD"}):(0,n.jsx)("h3",{className:"margin-top-5px txt-secondary-color",children:"Raise in progress"})})})]})]})}function AuctionInformationGridCommitmentRaise(e){let{auctionStats:t,status:i,settlementState:s}=e;return(0,n.jsxs)("div",{className:"grid-container-2",children:[(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Event type ",(0,n.jsx)(HoverExplainAuctionTypeCapitalRaise,{})]}),(0,n.jsx)("div",{className:"grid-value",children:"Commitment"})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:[i!==p.wo.Closed&&(0,n.jsx)(n.Fragment,{children:t.totalAmountRaised>t.raiseTargetMin?(0,n.jsxs)(n.Fragment,{children:["Total amount raised ",(0,n.jsx)(HoverExplainTotalAmountRaised,{})]}):(0,n.jsx)(n.Fragment,{children:"Status"})}),i===p.wo.Closed&&"settled"===s&&(0,n.jsx)(n.Fragment,{children:"Quantity traded"}),i===p.wo.Closed&&"settled"!==s&&(0,n.jsxs)(n.Fragment,{children:["Provisional trading quantity ",(0,n.jsx)(HoverExplainProvisionalQuantity,{})]})]}),(0,n.jsx)("div",{className:"grid-value",children:i===p.wo.Closed?(0,n.jsx)(n.Fragment,{children:(0,u.uf)(t.expectedQuantity)}):(0,n.jsx)(n.Fragment,{children:t.totalAmountRaised>t.raiseTargetMin?(0,u.lb)(t.totalAmountRaised,3,{emptyLabel:"-",showCents:!1,currency:"NZD"}):(0,n.jsx)("h3",{className:"margin-top-5px txt-secondary-color",children:"Raise in progress"})})})]})]})}function AuctionInformationGridExercise(e){let{auctionStats:t,status:i,auctionPublicID:s,authenticated:a}=e,[o,l]=(0,r.useState)({allocatedQuantityAvailable:0,allocatedQuantityExercised:0,oversubscriptionsRequested:0}),c=i!==p.wo.Closed&&a?4:2;(0,r.useEffect)(()=>{getAuctionExerciseParameters()},[s]);let getAuctionExerciseParameters=async()=>{if(a){let e=await (0,m.U2)("/auctions/getAuctionExerciseParameters/".concat(s));e.success&&l(e.result)}};return 4===c?(0,n.jsxs)("div",{className:"grid-container-4",children:[(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Event type ",(0,n.jsx)(HoverExplainAuctionTypeExercise,{})]}),(0,n.jsx)("div",{className:"grid-value",children:"Exercise rights/options"})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Price ",(0,n.jsx)(HoverPriceExplainExercise,{})]}),(0,n.jsx)("div",{className:"grid-value",children:(0,u.lb)(t.fixedPrice,3,{emptyLabel:"-",currency:"NZD"})})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsx)("div",{className:"grid-label",children:"Allocated quantity available"}),(0,n.jsx)("div",{className:"grid-value",children:(0,u.uf)(o.allocatedQuantityAvailable)})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsx)("div",{className:"grid-label",children:"Allocated quantity exercised"}),(0,n.jsx)("div",{className:"grid-value",children:(0,u.uf)(o.allocatedQuantityExercised)})]})]}):(0,n.jsxs)("div",{className:"grid-container-2",children:[(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Event type ",(0,n.jsx)(HoverExplainAuctionTypeExercise,{})]}),(0,n.jsx)("div",{className:"grid-value",children:"Exercise rights/options"})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Price ",(0,n.jsx)(HoverPriceExplainExercise,{})]}),(0,n.jsx)("div",{className:"grid-value",children:(0,u.lb)(t.fixedPrice,3,{emptyLabel:"-",currency:"NZD"})})]})]})}function AuctionInformationGridExerciseOversubscription(e){let{auctionStats:t,status:i,auctionPublicID:s,authenticated:a}=e,[o,l]=(0,r.useState)({allocatedQuantityAvailable:0,allocatedQuantityExercised:0,oversubscriptionsRequested:0}),c=i!==p.wo.Closed&&a?5:2;(0,r.useEffect)(()=>{getAuctionExerciseParameters()},[s]);let getAuctionExerciseParameters=async()=>{if(a){let e=await (0,m.U2)("/auctions/getAuctionExerciseParameters/".concat(s));e.success&&l(e.result)}};return 5===c?(0,n.jsxs)("div",{className:"grid-container-5",children:[(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Event type ",(0,n.jsx)(HoverExplainAuctionTypeExercise,{})]}),(0,n.jsx)("div",{className:"grid-value",children:"Exercise rights/options"})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Price ",(0,n.jsx)(HoverPriceExplainExercise,{})]}),(0,n.jsx)("div",{className:"grid-value",children:(0,u.lb)(t.fixedPrice,3,{emptyLabel:"-",currency:"NZD"})})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsx)("div",{className:"grid-label",children:"Allocated quantity available"}),(0,n.jsx)("div",{className:"grid-value",children:(0,u.uf)(o.allocatedQuantityAvailable)})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsx)("div",{className:"grid-label",children:"Allocated quantity exercised"}),(0,n.jsx)("div",{className:"grid-value",children:(0,u.uf)(o.allocatedQuantityExercised)})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsx)("div",{className:"grid-label",children:"Oversubscriptions requested"}),(0,n.jsx)("div",{className:"grid-value",children:(0,u.uf)(o.oversubscriptionsRequested)})]})]}):(0,n.jsxs)("div",{className:"grid-container-2",children:[(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Event type ",(0,n.jsx)(HoverExplainAuctionTypeExercise,{})]}),(0,n.jsx)("div",{className:"grid-value",children:"Exercise rights/options"})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Price ",(0,n.jsx)(HoverPriceExplainExercise,{})]}),(0,n.jsx)("div",{className:"grid-value",children:(0,u.lb)(t.fixedPrice,3,{emptyLabel:"-",currency:"NZD"})})]})]})}function DemandColumnHeader(e){let{auctionPrice:t,status:i}=e;return 0==t?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{style:{height:"1.4285em"}})}):i!==p.wo.Closed?(0,n.jsxs)(n.Fragment,{children:["Current price has ",(0,n.jsx)(HoverExplainAuctionDemand,{})]}):(0,n.jsx)(n.Fragment,{children:"Closing price had "})}function PriceColumnHeader(e){let{status:t,hasExpectedPrice:i,isFixedPrice:s,settlementState:a}=e;return t===p.wo.Closed&&"settled"!==a?s?(0,n.jsxs)(n.Fragment,{children:["Price ",(0,n.jsx)(HoverExplainFixedPrice,{})]}):(0,n.jsxs)(n.Fragment,{children:["Provisional price ",(0,n.jsx)(HoverExplainProvisionalPrice,{})]}):t===p.wo.Closed?(0,n.jsx)(n.Fragment,{children:"Closing price"}):s?(0,n.jsxs)(n.Fragment,{children:["Price ",(0,n.jsx)(HoverExplainFixedPrice,{})]}):i?(0,n.jsxs)(n.Fragment,{children:["Indicative closing price ",(0,n.jsx)(HoverExplainAuctionPrice,{})," "]}):(0,n.jsx)(n.Fragment,{children:" Best bid price "})}function AuctionDemand(e){let{price:t,demand:i}=e;return 0==t?(0,n.jsx)("h3",{className:"margin-top-0px txt-secondary-color",children:"No matching orders"}):"Equal"==i?(0,n.jsx)("h3",{className:"margin-top-0px txt-secondary-color",children:"Equal demand"}):"Sell"==i?(0,n.jsx)("h3",{className:"margin-top-0px txt-secondary-color",children:"More offers"}):(0,n.jsx)("h3",{className:"margin-top-0px txt-secondary-color",children:"More bids"})}function HoverExplainAuctionPrice(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)(a.Z,{name:"question circle outline"}),content:"The price per financial product if the auction closed at this moment. This can change as orders change."})}function HoverExplainAuctionQuantity(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)(a.Z,{name:"question circle outline"}),content:"The quantity of financial products that would trade if the auction closed at this moment. This can change as orders change."})}function HoverExplainProvisionalPrice(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)(a.Z,{name:"question circle outline"}),content:"The provisional price per financial product. It is possible the price may change during settlement if orders are not fulfilled."})}function HoverExplainProvisionalQuantity(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)(a.Z,{name:"question circle outline"}),content:"The quantity of financial products that are expected to trade. It is possible the quantity may change during settlement if orders are not fulfilled."})}function HoverExplainAuctionTypeCapitalRaise(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)(a.Z,{name:"question circle outline"}),content:" New financial products are being sold by the business to raise new money for the business. Investors can't sell their existing products in this auction."})}function HoverExplainAuctionTypeSecondary(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)(a.Z,{name:"question circle outline"}),content:"Previously issued financial products can be traded amongst investors.  The sale price goes to the seller not to the business.  In some cases the business may act as an additional buyer or seller."})}function HoverExplainAuctionTypeExercise(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)(a.Z,{name:"question circle outline"}),content:"Exercise your Rights/Options to purchase shares.  You can purchase one share per Right/Option you exercise."})}function HoverExplainTotalAmountRaised(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)(a.Z,{name:"question circle outline"}),content:"The money raised by this business since it started, including new commitments in this capital raise."})}function HoverExplainAuctionDemand(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)(a.Z,{name:"question circle outline"}),content:"This tells you whether, at the moment, there are more bids or offers submitted at the indicative closing price. It is a simple indicator of whether a new order is likely to be successful at the indicative closing price. See the live order book for more detail."})}function HoverExplainThirdPartyTrading(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)(a.Z,{name:"question circle outline"}),content:"To trade this product you will be taken to an external partner website to complete your order. Your investments will still be displayed in your Catalist account."})}function HoverExplainLastTradedPrice(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)(a.Z,{name:"question circle outline"}),content:"The per product price at which the financial product most recently traded at."})}function HoverExplainFixedPrice(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)(a.Z,{name:"question circle outline"}),content:"The price per financial product."})}function HoverPriceExplainExercise(){return(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)(a.Z,{name:"question circle outline"}),content:"The price per Right/Option you exercise."})}},99305:function(e,t,i){"use strict";var n=i(85893),s=i(67294),a=i(44623),r=i(93787),o=i(45150),l=i(30120),c=i(48403),d=i.n(c),u=i(1588),m=i(91108),p=i(45295),h=i.n(p);t.Z=function(e){let{auctionPublicId:t}=e,[i,c]=(0,s.useState)(null),[p,x]=(0,s.useState)(null),[g,f]=(0,s.useState)(null),[y,v]=(0,s.useState)(null),[b,j]=(0,s.useState)(null),[w,_]=(0,s.useState)(null),[N,T]=(0,s.useState)(null),[S,C]=(0,s.useState)(null),[P,k]=(0,s.useState)(!0),fetchFundRaiseInfo=async()=>{let e=await (0,m.U2)("/auctions/fundRaise/".concat(t));e.success&&(c(e.result.amountRemaining),x(e.result.maximumAmountAvailable),f(e.result.volumeTrading),v(e.result.valueTrading),j(e.result.price),_(e.result.totalNumberOfInvestors),T(l.ou.fromMillis(e.result.whenClosing).toRelativeCalendar()),C(e.result.nextAuction?l.ou.fromMillis(e.result.nextAuction).toFormat("MMMM yyyy"):null)),k(!1)};return(0,s.useEffect)(()=>{fetchFundRaiseInfo()},[t]),(0,n.jsxs)(a.Z,{basic:!0,loading:P,className:h()["fund-raise-information-container"],children:[(0,n.jsxs)("div",{className:h()["capital-raise-stat"],children:[(0,n.jsxs)("div",{className:h()["capital-raise-stat-label"],children:["Price",(0,n.jsx)(r.Z,{wide:"very",trigger:(0,n.jsx)(o.Z,{name:"question circle outline"}),content:"The price per financial product."})]}),(0,n.jsx)("div",{className:h()["capital-raise-stat-value"],children:null!==b?(0,u.lb)(b,3,{showCents:!0,emptyLabel:"-",currency:"NZD"}):"-"})]}),i>0&&(0,n.jsxs)("div",{className:h()["capital-raise-stat"],children:[(0,n.jsxs)("div",{className:h()["capital-raise-stat-label"],children:["Available this round",(0,n.jsx)(r.Z,{wide:"very",trigger:(0,n.jsx)(o.Z,{name:"question circle outline"}),content:"The amount still available in this capital raising round. If it reaches zero, you can still submit an order, which may be successful if another investor cancels their order or fails to pay."})]}),(0,n.jsx)("div",{className:h()["capital-raise-stat-value"],children:null!==i?(0,u.lb)(i,3,{showCents:!1,emptyLabel:"-",currency:"NZD"}):"-"})]}),(0,n.jsxs)("div",{className:h()["capital-raise-stat"],children:[(0,n.jsxs)("div",{className:h()["capital-raise-stat-label"],children:["Total investors",(0,n.jsx)(r.Z,{wide:"very",trigger:(0,n.jsx)(o.Z,{name:"question circle outline"}),content:"Total number of investors, including any new investors participating in this capital raise."})]}),(0,n.jsx)("div",{className:h()["capital-raise-stat-value"],children:null!==w&&0!==w?(0,u.uf)(w):"-"})]}),(0,n.jsxs)("div",{className:h()["capital-raise-stat"],children:[(0,n.jsx)("div",{className:h()["capital-raise-stat-label"],children:"Closes"}),(0,n.jsx)("div",{className:h()["capital-raise-stat-value"],children:d()(N)})]}),S&&(0,n.jsxs)("div",{className:h()["capital-raise-stat"],children:[(0,n.jsx)("div",{className:h()["capital-raise-stat-label"],children:"Next expected auction"}),(0,n.jsx)("div",{className:h()["capital-raise-stat-value"],children:S})]})]})}},85763:function(e,t,i){"use strict";i.d(t,{t:function(){return InvestBidOfferButton}});var n=i(85893),s=i(67294),a=i(2812),r=i(45150),o=i(11163),l=i(91108),c=i(80305);function InvestBidOfferButton(e){let{auctionPublicID:t,authenticated:i}=e,[d,u]=(0,s.useState)(!1),[m,p]=(0,s.useState)(!1),[h,x]=(0,s.useState)(null),[g,f]=(0,s.useState)(null),[y,v]=(0,s.useState)(null),b=(0,o.useRouter)(),checkCanOfferProduct=async()=>{if(i){let e=await (0,l.U2)("/products/".concat(t,"/offerAbility"));e.success&&(p(e.result.isProductHolder),u(e.result.canOffer))}},getInvestBidOfferButton=async()=>{let e=await (0,l.U2)("/auctions/investBidOfferButton/".concat(t));e.success&&(x(e.result.accountInformation),f(e.result.auctionInformation),v(e.result.orderInformation))};if((0,s.useEffect)(()=>{checkCanOfferProduct(),getInvestBidOfferButton()},[]),(null==g?void 0:g.auctionPeriod)==c.wo.PreOpen||(null==g?void 0:g.auctionPeriod)==c.wo.Closed)return null;let j="/businesses/"+(null==g?void 0:g.productPublicID),w="/api/login?redirect="+encodeURIComponent(j),_="/auctions/".concat(t,"/bid"),N="/auctions/".concat(t,"/offer");return((null==h?void 0:h.accountStatus)==="inactive"?(_="/users/aml_form?origin=".concat(b.asPath),N="/users/aml_form?origin=".concat(b.asPath)):(null==h?void 0:h.accountStatus)==="pending"?(_="/dashboard",N="/dashboard"):(null==g?void 0:g.productAccess)==="wholesale_only"&&(null==h?void 0:h.wholesaleStatus)!=="verified"?(_="/users/profile/wholesale?origin=".concat(b.asPath),N="/users/profile/wholesale?origin=".concat(b.asPath)):(null==g?void 0:g.productAccess)!=="wholesale_existing"||(null==h?void 0:h.wholesaleStatus)==="verified"||m||(_="/users/profile/wholesale?origin=".concat(b.asPath),N="/users/profile/wholesale?origin=".concat(b.asPath)),(null==g?void 0:g.auctionPeriod)===c.wo.PreClose)?(0,n.jsxs)("div",{className:"flex flex-row pad-left-15px pad-top-15px pad-bottom-15px",children:[(null==y?void 0:y.bid)>0&&(0,n.jsx)(a.Z,{style:{marginBottom:10},color:"blue",size:"huge",href:"/auctions/".concat(t,"/bidUpdate"),children:"Update bid"}),(null==y?void 0:y.offer)>0&&d&&(0,n.jsxs)(a.Z,{style:{marginBottom:10},color:"blue",size:"huge",href:"/auctions/".concat(t,"/offerUpdate"),basic:!0,children:[" ","Update offer"," "]})]}):(null==h?void 0:h.accountStatus)!=="non_trading"&&((null==g?void 0:g.productAccess)!=="existing_only"||m)?(null==g?void 0:g.isThirdPartyTrading)?(0,n.jsx)("div",{className:"flex flex-row pad-left-15px pad-top-15px pad-bottom-15px",children:(0,n.jsxs)(a.Z,{style:{marginBottom:10},color:"blue",size:"huge",icon:!0,labelPosition:"right",target:"_blank",href:null==g?void 0:g.thirdPartyTradingProvider,children:[(null==g?void 0:g.auctionType)==="capital_raise"||(null==g?void 0:g.auctionType)==="commitment_raise"?"Invest":(null==g?void 0:g.auctionType)==="exercise_issuer"||(null==g?void 0:g.auctionType)==="exercise_issuer_oversubscription"||(null==g?void 0:g.auctionType)==="exercise_investor"||(null==g?void 0:g.auctionType)==="exercise_investor_oversubscription"?"Exercise rights/options":(null==g?void 0:g.auctionType)==="standard"?"Invest/Trade":null,(0,n.jsx)(r.Z,{name:"external alternate"})]})}):(0,n.jsxs)("div",{className:"flex flex-row pad-left-15px pad-top-15px pad-bottom-15px",children:[(0,n.jsx)(a.Z,{style:{marginBottom:10},color:"blue",size:"huge",href:i?_:w,children:(null==g?void 0:g.auctionType)==="capital_raise"||(null==g?void 0:g.auctionType)==="commitment_raise"?"Invest":(null==g?void 0:g.auctionType)==="exercise_issuer"||(null==g?void 0:g.auctionType)==="exercise_issuer_oversubscription"||(null==g?void 0:g.auctionType)==="exercise_investor"||(null==g?void 0:g.auctionType)==="exercise_investor_oversubscription"?"Exercise rights/options":(null==g?void 0:g.auctionType)==="standard"?"Bid":null}),d&&(0,n.jsx)(a.Z,{style:{marginBottom:10},color:"blue",size:"huge",href:i?N:w,basic:!0,children:"Offer"})]}):null}},25298:function(e,t,i){"use strict";i.d(t,{B6:function(){return getAuction},tq:function(){return getAuctionStat},z:function(){return getClosedAuction}});var n=i(91108);async function getAuction(e){let t=await (0,n.U2)("/auctions/"+e);return t.success?t.result:{db:null}}async function getAuctionStat(e){let t=await (0,n.U2)("/auctions/showAuctionStats/".concat(e));return t.success?t.result:null}async function getClosedAuction(e,t){let i=await (0,n.U2)("/business/".concat(t,"/closedAuctions/").concat(e));return i.success?i.result:{db:null}}},83570:function(e,t,i){"use strict";i.d(t,{S:function(){return MyHoldingAndOrder}});var n=i(85893),s=i(31132),a=i(67294),r=i(18029),o=i.n(r),l=i(40849),c=i(93787),d=i(45150),u=i(63197),m=i(91108),p=i(1588),h=i(20209),x=i(21230),g=i(18846),f=i(75131),y=i(44345);function MyHoldingAndOrder(e){let{auctionPublicId:t,auctionInformation:i,authenticated:s}=e,[r,o]=(0,a.useState)([]),[c,d]=(0,a.useState)(!1);(0,a.useEffect)(()=>{getHoldingsAndOffers()},[t]);let getHoldingsAndOffers=async()=>{if(s){d(!0);let e=await (0,m.U2)("/auctions/".concat(t,"/holdingsAndOrders")).finally(()=>d(!1));if(e.success){let{productHoldings:t}=e.result;o(t)}}};return(0,n.jsxs)("div",{children:[(0,n.jsx)(l.Z,{size:"massive",active:c}),(0,n.jsx)(MyHoldings,{productHolding:r,auctionInformation:i})]})}function MyHoldings(e){let{productHolding:t,auctionInformation:i}=e;if(0==t.length)return(0,n.jsx)("p",{children:"You don't currently have any holdings in this product."});let a=[{title:"Product",field:"productName"},{title:"Quantity",field:"quantity"},{title:"Percentage",field:"holdingPercentage"},{title:(0,n.jsxs)("div",{children:["Value ",(0,n.jsx)(HoverTextExplainHoldingValue,{})]}),field:"holdingValue"},{title:(0,n.jsxs)("div",{children:["Trading authority ",(0,n.jsx)(HoverTextExplainTradingAuthority,{})]}),field:"canTrade"}],r=[{title:"Order type",field:"orderType"},{title:(0,n.jsxs)("div",{children:["Quantity",(0,n.jsx)(HoverTextExplainBidQuantity,{})]}),field:"quantity"},{title:(0,n.jsxs)("div",{children:["Price",(0,n.jsx)(HoverTextExplainBidPrice,{})]}),field:"price"},{title:(0,n.jsxs)("div",{children:["Value ",(0,n.jsx)(HoverTextExplainBidValue,{})]}),field:"value"},{title:"Date submitted",field:"dateSubmitted"},{title:(0,n.jsxs)("div",{children:["Quantity trading ",(0,n.jsx)(HoverTextExplainTradingBidQuantity,{})]}),field:"quantityTrading"},{title:(0,n.jsxs)("div",{children:["Value trading ",(0,n.jsx)(HoverTextExplainTradingBidValue,{})]}),field:"valueTrading"},{title:(0,n.jsxs)("div",{children:["Order status ",(0,n.jsx)(HoverTextExplainOrderStatus,{})]}),field:"orderStatus"},{title:"Auction status",field:"auctionStatus"}],l=[{title:"Order type",field:"orderType"},{title:(0,n.jsxs)("div",{children:["Quantity",(0,n.jsx)(HoverTextExplainBidQuantity,{})]}),field:"quantity"},{title:(0,n.jsx)("div",{children:"Price"}),field:"price"},{title:(0,n.jsx)("div",{children:"Value"}),field:"value"},{title:"Date submitted",field:"dateSubmitted"},{title:(0,n.jsx)("div",{children:"Quantity trading"}),field:"quantityTrading"},{title:(0,n.jsxs)("div",{children:["Value trading ",(0,n.jsx)(HoverTextExplainTradingBidValue,{})]}),field:"valueTrading"},{title:(0,n.jsxs)("div",{children:["Order status ",(0,n.jsx)(HoverTextExplainOrderStatus,{})]}),field:"orderStatus"},{title:"Auction status",field:"auctionStatus"}];return(0,n.jsx)("div",{className:"pad-bottom-15px pad-right-15px",children:t&&t.map((e,t)=>{let c=[{id:t,productName:e.productName,holdingValue:"".concat(e.productCurrency+" "+(0,p.lb)(e.holdingValue,3)),quantity:(0,p.uf)(e.quantity),holdingPercentage:"".concat(e.holdingPercentage),canTrade:e.canTrade?"Yes":"No"}],d=e.orders.bid.map((e,t)=>("".concat(o()(e.orderType)[0]).concat(o()(e.orderType).slice(1).toLowerCase()),{id:t,valueTrading:"fixed_price"===e.auctionType?"NA":(0,p.lb)(e.valueTrading,3,{emptyLabel:"-",currency:"NZD"}),value:(0,p.lb)(e.value,3,{currency:"NZD"}),orderType:e.isAutoImprove?"Auto bid":"capital_raise"===e.auctionType?"Buy order":"commitment_raise"===e.auctionType?"Commitment":"exercise_issuer"===e.auctionType||"exercise_issuer_oversubscription"===e.auctionType||"exercise_investor"===e.auctionType||"exercise_investor_oversubscription"===e.auctionType?"Exercise":"Bid limit",quantity:"commitment_raise"===e.auctionType?"-":e.quantity,price:"commitment_raise"===e.auctionType?"-":(0,p.lb)(e.price,3,{currency:"NZD"}),dateSubmitted:(0,s.default)(new Date(e.submitted),u.dq),quantityTrading:"commitment_raise"===e.auctionType?"-":(0,n.jsx)(f.K,{auctionType:e.auctionType,value:(0,p.uf)(e.quantityTrading)}),orderStatus:(0,n.jsx)(h.i,{orderStatus:e.orderStatus,flagged:e.flagged,auctionType:e.auctionType}),auctionStatus:(0,n.jsx)(x.wo,{auctionStatus:i.status})})),m=e.orders.offer.map((e,t)=>("".concat(o()(e.orderType)[0]).concat(o()(e.orderType).slice(1).toLowerCase()),{id:t,valueTrading:"fixed_price"===e.auctionType?"NA":(0,p.lb)(e.valueTrading,3,{emptyLabel:"-",currency:"NZD"}),value:(0,p.lb)(e.value,3,{currency:"NZD"}),orderType:e.isAutoImprove?"Auto offer":"Offer limit",quantity:e.quantity,price:(0,p.lb)(e.price,3,{currency:"NZD"}),dateSubmitted:(0,s.default)(new Date(e.submitted),u.dq),quantityTrading:(0,n.jsx)(f.K,{auctionType:e.auctionType,value:(0,p.uf)(e.quantityTrading)}),orderStatus:(0,n.jsx)(h.i,{orderStatus:e.orderStatus,flagged:e.flagged,auctionType:e.auctionType}),auctionStatus:(0,n.jsx)(x.wo,{auctionStatus:i.status})}));return(0,n.jsxs)("div",{className:"pad-bottom-30px",children:[(0,n.jsx)("div",{className:"flex-container flex-item-align-center background-grey border-radius-5px pad-all-15px",children:(0,n.jsx)("b",{children:e.legalOwnerName.replace("Auto_generated_","")})}),null==e.quantity&&(0,n.jsx)("p",{children:"You currently don't have any holdings."}),null!==e.quantity&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:"txt-secondary-color",children:" My current holdings"}),(0,n.jsx)(g.G,{data:c,columns:a,options:{search:!1,paging:!1,sorting:!1,draggable:!1,pageSize:20},showComponents:!0,components:{Toolbar:e=>(0,n.jsx)("div",{style:{height:"0px"},children:(0,n.jsx)(y.UW,{...e})})}})]}),"\xa0",e.orders.bid.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:"txt-secondary-color",children:"My current bids"}),(0,n.jsx)(g.G,{data:d,columns:r,options:{search:!1,paging:!1,sorting:!1,draggable:!1,pageSize:20},showComponents:!0,components:{Toolbar:e=>(0,n.jsx)("div",{style:{height:"0px"},children:(0,n.jsx)(y.UW,{...e})})}})]}),"\xa0",e.orders.offer.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:"txt-secondary-color",children:" My current offers"}),(0,n.jsx)(g.G,{data:m,columns:l,options:{search:!1,paging:!1,sorting:!1,draggable:!1,pageSize:20},showComponents:!0,components:{Toolbar:e=>(0,n.jsx)("div",{style:{height:"0px"},children:(0,n.jsx)(y.UW,{...e})})}})]}),(0,n.jsxs)("p",{className:"txt-grey",children:["Visit your ",(0,n.jsx)("a",{href:"/dashboard?tab=orders",children:"dashboard"})," to update or withdraw orders."]})]},t)})})}function HoverTextExplainHoldingValue(){return(0,n.jsx)(c.Z,{wide:"very",trigger:(0,n.jsx)(d.Z,{name:"question circle outline"}),content:"The current value of the products you hold, based on the most recent price per product, shown in the product information section."})}function HoverTextExplainTradingAuthority(){return(0,n.jsx)(c.Z,{wide:"very",trigger:(0,n.jsx)(d.Z,{name:"question circle outline"}),content:"If you do not have authority to trade, this may be because you are a beneficial owner and the legal owner has not delegated authority to you. Speak to the legal owner to arrange delegation or contact us at hello@catalist.co.nz with any questions."})}function HoverTextExplainBidQuantity(){return(0,n.jsx)(c.Z,{wide:"very",trigger:(0,n.jsx)(d.Z,{name:"question circle outline"}),content:"Your submitted maximum quantity you would like to buy. If you have multiple bids you are committing to buy up to the total quantity of all bids combined."})}function HoverTextExplainBidPrice(){return(0,n.jsx)(c.Z,{wide:"very",trigger:(0,n.jsx)(d.Z,{name:"question circle outline"}),content:"Price per financial product."})}function HoverTextExplainBidValue(){return(0,n.jsx)(c.Z,{wide:"very",trigger:(0,n.jsx)(d.Z,{name:"question circle outline"}),content:"The maximum amount you will pay (including fees), if this bid is successful."})}function HoverTextExplainTradingBidQuantity(){return(0,n.jsx)(c.Z,{wide:"very",trigger:(0,n.jsx)(d.Z,{name:"question circle outline"}),content:"The quantity of products that you would trade if the auction closed at this moment. This can change as others submit and withdraw orders."})}function HoverTextExplainTradingBidValue(){return(0,n.jsx)(c.Z,{wide:"very",trigger:(0,n.jsx)(d.Z,{name:"question circle outline"}),content:"The amount you would pay for this bid, including fees, if the auction closed at this moment. This can change as others submit and withdraw orders."})}function HoverTextExplainOrderStatus(){return(0,n.jsx)(c.Z,{wide:"very",trigger:(0,n.jsx)(d.Z,{name:"question circle outline"}),content:"The status can change as others change their orders. You can only withdraw a bid during the open period - go to your dashboard, then ‘My orders’ to withdraw."})}},65992:function(e,t,i){"use strict";i.d(t,{T:function(){return Orderbook}});var n=i(85893),s=i(67294),a=i(45150),r=i(41609),o=i.n(r);function OrderbookExplain(){let[e,t]=(0,s.useState)(!1),toggleShowExplain=()=>t(!e);return e?(0,n.jsxs)("div",{children:[(0,n.jsx)("h4",{style:{cursor:"pointer"},className:"txt-secondary-color",onClick:toggleShowExplain,children:" The order book ▾"}),(0,n.jsxs)("p",{children:["The order book below shows the price of all live orders.  If there is an indicative closing price it is highlighted in blue.   The order book will show a range of prices, centered on the indicative closing price if there is one, but you can see other orders outside this range by clicking on 'Higher' or 'Lower'.  This gives you full transparency of the current prices of all orders. Some orders may be ",(0,n.jsx)("a",{href:"/FAQ#Order-types+1",target:"_blank",rel:"noopener",children:"auto bids or auto offers"}),", which means their price may change automatically when you submit a new order."]}),(0,n.jsxs)("p",{children:["Watch ",(0,n.jsx)("a",{href:"/FAQ#Secondary-market-auctions+2",target:"_blank",rel:"noopener",children:"this short video"})," that explains how to read the order book."]})]}):(0,n.jsx)("div",{children:(0,n.jsx)("h4",{style:{cursor:"pointer"},className:"txt-secondary-color",onClick:toggleShowExplain,children:" The order book ▸"})})}var l=i(1588),c=i(91108),d=i(18846),u=i(44345);function Orderbook(e){let{auctionPublicId:t,auctionPrice:i}=e,[a,r]=(0,s.useState)({prices:[],higher:{},lower:{},ordersHigher:[],ordersLower:[]}),[l,d]=(0,s.useState)(!1),getOrderBookPricePoint=async()=>{d(!0);let e=await (0,c.U2)("/auctions/orderbook/".concat(t));e.success&&r(e.result),d(!1)};return(0,s.useEffect)(()=>{null!=t&&getOrderBookPricePoint()},[t]),(0,s.useEffect)(()=>{if(null!=t){let e=setInterval(()=>{getOrderBookPricePoint()},6e4);return()=>{clearInterval(e)}}},[t]),(0,n.jsxs)("div",{className:"pad-all-15px",children:[(0,n.jsx)(OrderbookExplain,{}),(0,n.jsx)("div",{className:"pad-top-30px pad-bottom-30px",children:o()(a.prices)?(0,n.jsx)("div",{children:(0,n.jsx)("b",{children:"No orders entered yet"})}):(0,n.jsx)(OrderbookPriceTable,{orderbook:a,auctionPrice:i,isLoading:l})}),(0,n.jsxs)("p",{children:["For more information, have a read of\xa0",(0,n.jsx)("a",{href:"/MarketplaceMechanics",target:"_blank",children:"Marketplace mechanics"}),"\xa0or our\xa0",(0,n.jsx)("a",{href:"/FAQ",target:"_blank",children:"FAQ"}),"\xa0on what the orderbook shows."]})]})}function OrderbookPriceTable(e){let{orderbook:t,auctionPrice:i,isLoading:r}=e,[o,c]=(0,s.useState)(!1),[m,p]=(0,s.useState)(!1),toggleHigherOpen=()=>c(!o),toggleLowerOpen=()=>p(!m),h=t.higher?t.ordersHigher.map(e=>({numberOfBids:numberOfOrders(e.cumulativeBidOrders,e.price),bidQuantity:quantityAtPrice(e.cumulativeBidOrders,e.price),cumulativeBidQuantity:formatOrderbookValue(e.bidQuantity),price:(0,n.jsx)("div",{className:"txt-secondary-color",children:(0,n.jsx)("strong",{children:(0,l.lb)(e.price,3,{emptyLabel:"-",currency:"NZD"})})}),cumulativeOfferQuantity:formatOrderbookValue(e.offerQuantity),offerQuantity:quantityAtPrice(e.cumulativeOfferOrders,e.price),numberOfOffers:numberOfOrders(e.cumulativeOfferOrders,e.price),type:"orderHigherData"})):[],x=t.higher?[{numberOfBids:o?"":formatOrderbookValue(t.higher.bidCount),bidQuantity:o?"":formatOrderbookValue(t.higher.bidQuantity),cumulativeBidQuantity:o?"":formatOrderbookValue(t.higher.cumulativeBidQuantity),price:(0,n.jsx)("div",{className:"txt-secondary-color cursor-pointer",onClick:()=>t.ordersHigher.length&&toggleHigherOpen(),children:(0,n.jsxs)("strong",{children:["Higher",t.ordersHigher.length?(0,n.jsx)(a.Z,{name:"triangle ".concat(o?"down":"right"),color:"blue"}):null]})}),cumulativeOfferQuantity:o?"":formatOrderbookValue(t.higher.cumulativeOfferQuantity),offerQuantity:o?"":formatOrderbookValue(t.higher.offerQuantity),numberOfOffers:o?"":formatOrderbookValue(t.higher.offerCount),type:"higherData"}]:[],g=t.prices?t.prices.map(e=>({numberOfBids:numberOfOrders(e.cumulativeBidOrders,e.price),bidQuantity:quantityAtPrice(e.cumulativeBidOrders,e.price),cumulativeBidQuantity:formatOrderbookValue(e.bidQuantity),price:(0,n.jsx)("div",{className:"txt-secondary-color",children:(0,n.jsx)("strong",{children:(0,l.lb)(e.price,3,{emptyLabel:"-",currency:"NZD"})})}),cumulativeOfferQuantity:formatOrderbookValue(e.offerQuantity),offerQuantity:quantityAtPrice(e.cumulativeOfferOrders,e.price),numberOfOffers:numberOfOrders(e.cumulativeOfferOrders,e.price),orderBookPrice:e.price,type:"orderBookPriceData"})):[],f=t.lower?[{numberOfBids:m?"":formatOrderbookValue(t.lower.bidCount),bidQuantity:m?"":formatOrderbookValue(t.lower.bidQuantity),cumulativeBidQuantity:m?"":formatOrderbookValue(t.lower.cumulativeBidQuantity),price:(0,n.jsx)("div",{className:"txt-secondary-color cursor-pointer",onClick:()=>t.ordersLower.length&&toggleLowerOpen(),children:(0,n.jsxs)("strong",{children:["Lower \xa0",t.ordersLower.length?(0,n.jsx)(a.Z,{name:"triangle ".concat(m?"down":"right"),color:"blue"}):null]})}),cumulativeOfferQuantity:m?"":formatOrderbookValue(t.lower.cumulativeOfferQuantity),offerQuantity:m?"":formatOrderbookValue(t.lower.offerQuantity),numberOfOffers:m?"":formatOrderbookValue(t.lower.offerCount),type:"lowerData"}]:[],y=t.lower?t.ordersLower.map(e=>({numberOfBids:numberOfOrders(e.cumulativeBidOrders,e.price),bidQuantity:quantityAtPrice(e.cumulativeBidOrders,e.price),cumulativeBidQuantity:formatOrderbookValue(e.bidQuantity),price:(0,n.jsx)("div",{className:"txt-secondary-color",children:(0,n.jsx)("strong",{children:(0,l.lb)(e.price,3,{emptyLabel:"-",currency:"NZD"})})}),cumulativeOfferQuantity:formatOrderbookValue(e.offerQuantity),offerQuantity:quantityAtPrice(e.cumulativeOfferOrders,e.price),numberOfOffers:numberOfOrders(e.cumulativeOfferOrders,e.price),type:"orderLowerData"})):[],v=x.concat(o?h:[]).concat(g).concat(f).concat(m?y:[]),b=v.map((e,t)=>({...e,id:t}));return(0,n.jsx)("div",{children:(0,n.jsx)(d.G,{data:b,columns:[{title:"Number of bids",field:"numberOfBids",sorting:!1},{title:"Bid quantity",field:"bidQuantity",sorting:!1},{title:"Cumulative bid quantity",field:"cumulativeBidQuantity",sorting:!1},{title:"Price",field:"price",sorting:!1},{title:"Cumulative offer quantity",field:"cumulativeOfferQuantity",sorting:!1},{title:"Offer quantity",field:"offerQuantity",sorting:!1},{title:"Number of offers",field:"numberOfOffers",sorting:!1}],components:{Toolbar:e=>(0,n.jsx)("div",{style:{height:"0px"},children:(0,n.jsx)(u.UW,{...e})})},showComponents:!0,options:{pageSize:20,search:!1,paging:!1,showTitle:!1,draggable:!1,rowStyle:e=>({backgroundColor:"orderLowerData"===e.type||"orderHigherData"===e.type||"lowerData"===e.type&&m||"higherData"===e.type&&o?"#F0F1F6":i===e.orderBookPrice?"#D6E7FF":"transparent"})},isLoading:r})})}function numberOfOrders(e,t){let i=e.filter(e=>e.price===t);return i.length>0?(0,l.uf)(i.length):" - "}function quantityAtPrice(e,t){let i=e.filter(e=>e.price===t).reduce((e,t)=>e+t.quantity,0);return i>0?(0,l.uf)(i):" - "}function formatOrderbookValue(e){return e>0?(0,l.uf)(e):" - "}},60232:function(e,t,i){"use strict";i.d(t,{g:function(){return AuctionSegment}});var n=i(85893),s=i(67294),a=i(25298),r=i(4616),o=i(77411),l=i(38601),c=i(65992),d=i(83570),u=i(99305),m=i(80305),p=i(48469),h=i.n(p),x=i(85763),g=i(16541);let f={"Pre-open":"Auction__preopen__container",Open:"Auction__open__container","Pre-close":"Auction__preclose__container",Closed:"Auction__closed__container","Pre-settled":"Auction__presettled__container"};function AuctionSegment(e){let{auctionPublicId:t,authenticated:i,hasProductHolders:p}=e,[y,v]=(0,s.useState)(null),[b,j]=(0,s.useState)(null),[w,_]=(0,s.useState)("Live auction information"),[N,T]=(0,s.useState)("Live order book"),[S,C]=(0,s.useState)(!1),[P,k]=(0,s.useState)(null),fetchAuctionInfo=async()=>{let e=await (0,a.B6)(t);if(e.db){switch(e.db.auction.status){case m.wo.Closed:let n=await (0,a.z)(t,e.db.auction.productPublicId);j(n.db),k(n.db.settlementState),_("Auction information"),T("Order book"),C(!1);break;case m.wo.Open:default:j(e.db.auction)}"capital_raise"===e.db.auction.auctionType?_("Capital raise overview"):"commitment_raise"===e.db.auction.auctionType?_("Raise overview"):"exercise_issuer"===e.db.auction.auctionType||"exercise_issuer_oversubscription"===e.db.auction.auctionType||"exercise_investor"===e.db.auction.auctionType||"exercise_investor_oversubscription"===e.db.auction.auctionType?_("Overview"):_("Auction overview"),(i&&"pending"===e.db.auction.settlementState||"requested"===e.db.auction.settlementState)&&C(!0)}},fetchAuctionStats=async()=>{let e=await (0,a.tq)(t);null!=e&&v(e.liveAuctionStats)};if((0,s.useEffect)(()=>{null!=t&&(fetchAuctionInfo(),fetchAuctionStats())},[t]),(0,s.useEffect)(()=>{if(null!=t){let e=setInterval(()=>{fetchAuctionInfo(),fetchAuctionStats()},6e4);return()=>{clearInterval(e)}}},[t]),null==t||null==b||null==y)return null;let Z=!b.isThirdPartyTrading&&"standard"===b.auctionType||"fixed_price"===b.auctionType,A="capital_raise"===b.auctionType&&p;return(0,n.jsxs)(n.Fragment,{children:[y.isTimeExtended&&(0,n.jsx)("div",{className:"pad-bottom-15px",children:(0,n.jsx)(g.Z,{color:"orange",children:(0,n.jsx)(g.Z.Header,{children:"This period has been automatically extended due to late orders impacting other investors. The period will be ending soon. Exact timing is randomised."})})}),(0,n.jsxs)("div",{className:"Closed"===b.status&&"settled"!==P?h()[f["Pre-settled"]]:h()[f[b.status]],children:[(0,n.jsx)(l.f,{auctionState:b.status,auctionStats:y,settlementState:b.settlementState}),(0,n.jsxs)(r.O,{children:[(0,n.jsxs)(r.E,{label:w,index:0,children:[(0,n.jsx)(o.G,{auctionStats:y,auction:b,authenticated:i}),(0,n.jsx)(x.t,{auctionPublicID:t,authenticated:i})]}),A&&(0,n.jsxs)(r.E,{label:"Capital raise information",index:1,children:[(0,n.jsx)(u.Z,{auctionPublicId:t}),(0,n.jsx)(x.t,{auctionPublicID:t,authenticated:i})]}),Z&&(0,n.jsxs)(r.E,{label:N,index:2,children:[(0,n.jsx)("div",{children:(0,n.jsx)(c.T,{auctionPublicId:t,auctionPrice:y.expectedPrice})}),(0,n.jsx)(x.t,{auctionPublicID:t,authenticated:i})]}),S&&(0,n.jsxs)(r.E,{label:"My holdings / orders",index:3,children:[(0,n.jsx)("div",{className:"pad-left-15px pad-top-30px pad-bottom-15px",children:(0,n.jsx)(d.S,{auctionPublicId:t,auctionInformation:b,authenticated:i})}),(0,n.jsx)(x.t,{auctionPublicID:t,authenticated:i})]})]})]})]})}},27746:function(e,t,i){"use strict";i.d(t,{t:function(){return InformationHeading}});var n=i(85893),s=i(95712),a=i(18005),r=i(2812),o=i(45150),l=i(45912);function InformationHeading(e){let{externalURL:t,productPublicID:i,authenticated:c}=e;return(0,n.jsx)(s.Z,{fluid:!0,className:"pad-top-15px pad-bottom-15px",children:(0,n.jsxs)(a.Z,{columns:2,stackable:!0,children:[(0,n.jsx)(a.Z.Column,{width:12,children:(0,n.jsx)("h3",{children:" Product information "})}),t&&(0,n.jsxs)(a.Z.Column,{width:4,className:"txt-align-right",children:[c&&(0,n.jsx)(l.M,{productPublicID:i,starSize:"large"}),(0,n.jsxs)(r.Z,{color:"blue",icon:!0,labelPosition:"right",size:"small",href:t,target:"_blank",children:["View website",(0,n.jsx)(o.Z,{name:"external alternate"})]})]})]})})}},23271:function(e,t,i){"use strict";i.d(t,{K:function(){return BusinessPanes}});var n=i(85893),s=i(67294),a=i(11163),r=i(18005),o=i(16541),l=i(8804),c=i.n(l),d=i(41609),u=i.n(d),m=i(44345),p=i(91108),h=i(30120),x=i(18846),g=i(51086);function AuctionSchedule(e){var t,i,a;let{productPublicId:l}=e,[d,f]=(0,s.useState)(!0),[y,v]=(0,s.useState)([]),[b,j]=(0,s.useState)(!1),getAuctionSchedule=async()=>{f(!0);let e=await (0,p.U2)("/business/getAuctionSchedule/".concat(l)).finally(()=>f(!1));e.success?v(e.result.filter(e=>e.auctionDate>Date.now())):j(!0)};(0,s.useEffect)(()=>{null!=l&&getAuctionSchedule()},[l]);let w=y.map((e,t)=>{let{auctionDate:i,auctionType:n}=e;return{id:t,date:h.ou.fromMillis(i).toFormat("MMMM yyyy"),auctionType:n}});return(0,n.jsxs)(n.Fragment,{children:[!u()(y)&&!b&&(0,n.jsx)("div",{className:"pad-bottom-30px",children:(0,n.jsxs)(r.Z,{columns:2,divided:!0,stackable:!0,children:[(0,n.jsxs)(r.Z.Column,{children:[(0,n.jsx)("div",{className:"pad-bottom-30px",children:(0,n.jsxs)(r.Z,{columns:2,stackable:!0,children:[(0,n.jsxs)(r.Z.Column,{children:["Next auction expected",(0,n.jsx)("h3",{className:"margin-top-5px txt-secondary-color",children:h.ou.fromMillis(null===(t=c()(y))||void 0===t?void 0:t.auctionDate).toFormat("MMMM yyyy")})]}),(null===(i=c()(y))||void 0===i?void 0:i.auctionFrequency)&&(0,n.jsxs)(r.Z.Column,{children:["Auction frequency",(0,n.jsx)("h3",{className:"margin-top-5px txt-secondary-color",children:null===(a=c()(y))||void 0===a?void 0:a.auctionFrequency})]})]})}),(0,n.jsxs)("div",{className:"pad-top-30px",children:[(0,n.jsx)("h3",{className:"txt-secondary-color",children:"Indicative auction schedule"}),(0,n.jsx)(x.G,{data:w,columns:[{title:"Estimated date",field:"date"},{title:"Auction type",field:"auctionType"}],components:{Toolbar:e=>(0,n.jsx)("div",{style:{height:"0px"},children:(0,n.jsx)(m.UW,{...e})})},showComponents:!0,options:{search:!1,paging:!1,sorting:!1,showTitle:!1,draggable:!1,pageSize:20}}),(0,n.jsx)("p",{className:"pad-top-30px",children:"Future auctions are added once dates are confirmed."})]})]}),(0,n.jsx)(r.Z.Column,{children:(0,n.jsx)(g.Z,{productPublicID:l})})]})}),b&&(0,n.jsxs)(o.Z,{error:!0,children:["Failed to load auction schedule",(0,n.jsx)(o.Z.Content,{children:"You may have been logged out, please reload the page and log in again"})]})]})}var f=i(93787),y=i(45150),v=i(2812),b=i(31132),j=i(63197),w=i(1588);function AuctionHistory(e){let{productPublicId:t}=e,[i,a]=(0,s.useState)(!0),[r,l]=(0,s.useState)([]),[c,d]=(0,s.useState)(!1),getHistoricAuction=async()=>{a(!0);let e=await (0,p.U2)("/business/".concat(t,"/historicalAuction")).finally(()=>a(!1));e.success?l(e.result):d(!0)};(0,s.useEffect)(()=>{null!=t&&getHistoricAuction()},[t]);let u=[{title:"Open date",field:"openedAt"},{title:"Close date",field:"closedAt"},{title:"Type",field:"auctionType"},{title:(0,n.jsxs)("div",{children:["Product price",(0,n.jsx)(f.Z,{wide:"very",trigger:(0,n.jsx)(y.Z,{name:"question circle outline"}),content:"The price per financial product, set at this auction."})]}),field:"productPrice",customSort:(e,t)=>{let getProductPrice=e=>{let t="string"!=typeof e.productPrice?"0":e.productPrice;return parseInt(parseFloat(t.replace(/\D/g,"")))},i=isNaN(getProductPrice(e))?0:getProductPrice(e),n=isNaN(getProductPrice(t))?0:getProductPrice(t);return i===n?0:i<n?-1:1}},{title:"Quantity traded",field:"quantityTraded",customSort:(e,t)=>{let getQuantityTraded=e=>{let t="string"!=typeof e.quantityTraded?"0":e.quantityTraded;return parseInt(parseFloat(t.replace(/["",.]/g,"")))},i=isNaN(getQuantityTraded(e))?0:getQuantityTraded(e),n=isNaN(getQuantityTraded(t))?0:getQuantityTraded(t);return i===n?0:i<n?-1:1}},{title:"",field:"historyAuctionInfo",sorting:!1,align:"right"}],m=r.map((e,t)=>{let{openedAt:i,closedAt:s,auctionType:a,pricePerShare:r,sharesTraded:o,link:l,subAuctions:c,productName:d}=e;return{id:t,openedAt:(0,b.default)(new Date(i),j.vc),closedAt:c.length>1?"Rolling close":(0,b.default)(new Date(s),j.vc),auctionType:(0,w.Wd)(a,d),productPrice:(0,w.lb)(r,3,{emptyLabel:"-",currency:"NZD"}),quantityTraded:(0,w.uf)(o),link:l,subAuctions:c,historyAuctionInfo:c.length>1?(0,n.jsx)(y.Z,{color:"blue",size:"large",name:"dropdown"}):l?(0,n.jsx)(v.Z,{color:"blue",children:"View"}):null}});return(0,n.jsxs)("div",{className:"pad-bottom-30px",children:[!c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:"txt-secondary-color",children:"Trading history"}),(0,n.jsx)(x.G,{isLoading:i,data:m,columns:u,detailPanel:[{icon:()=>null,render:e=>{let{rowData:t}=e;return(0,n.jsx)(SubAuctionComponent,{subAuctions:t.subAuctions})}}],options:{search:!1,paging:!1,sorting:!1,showTitle:!1,draggable:!1,rowStyle:e=>({backgroundColor:e.tableData.showDetailPanel?"#D6E7FF":"white"})},onRowClick:(e,t,i)=>{t.subAuctions.length>1?i():t.link&&window.open(t.link)}})]}),c&&(0,n.jsxs)(o.Z,{error:!0,children:["Failed to load historic auctions",(0,n.jsx)(o.Z.Content,{children:"You may have been logged out, please reload the page and log in again"})]})]})}function SubAuctionComponent(e){let{subAuctions:t}=e,i=t.map((e,t)=>({id:t,openedAt:(0,b.default)(new Date(e.openedAt),j.vc),closedAt:(0,b.default)(new Date(e.closedAt),j.vc),auctionType:(0,w.Wd)(e.auctionType),productPrice:(0,w.lb)(e.pricePerShare,3,{emptyLabel:"-",currency:"NZD"}),quantityTraded:(0,w.uf)(e.sharesTraded),link:e.link,historyAuctionInfo:(0,n.jsx)(v.Z,{color:"blue",onClick:()=>window.open(e.link),children:"View"})}));return(0,n.jsx)(x.G,{data:i,columns:[{title:null,render:()=>(0,n.jsx)("div",{}),width:38},{title:null,field:"openedAt"},{title:null,field:"closedAt"},{title:null,field:"auctionType"},{title:null,field:"productPrice"},{title:null,field:"quantityTraded"},{title:null,field:"historyAuctionInfo",align:"right"}],showComponents:!0,options:{search:!1,paging:!1,sorting:!1,showTitle:!1,draggable:!1,toolbar:!1,header:!1,rowStyle:()=>({backgroundColor:"#f0f1f6",fontSize:"16px"})},onRowClick:(e,t)=>{window.open(t.link)}})}function Auction(e){let{productPublicId:t}=e;return(0,n.jsxs)("div",{className:"background-white pad-left-15px pad-right-15px pad-top-15px pad-bottom-60px",children:[(0,n.jsx)(AuctionSchedule,{productPublicId:t}),(0,n.jsx)(AuctionHistory,{productPublicId:t})]})}var _=i(47257),N=i(60345),T=i(84610),S=i(10837),C=i(73398),P=i(14643),k=i.n(P),Z=i(85763);function Overview(e){let{state:t,authenticated:i}=e,{keyPeople:s}=t;return(0,n.jsxs)("div",{className:"background-white pad-bottom-60px",children:[(0,n.jsx)("div",{className:"pad-left-15px pad-right-15px pad-top-15px",children:(0,n.jsx)(ProductBasicInformation,{state:t})}),(0,n.jsx)("div",{className:"pad-left-15px",children:(0,n.jsx)("div",{className:k().business__logo__container,style:{backgroundImage:"url(".concat(t.businessLogo,")")}})}),(0,n.jsxs)("div",{children:[t.productDescription&&(0,n.jsx)(S.D,{rehypePlugins:[C.default],className:k().markdownContainer,children:t.productDescription,linkTarget:"_blank"}),(0,n.jsx)("div",{children:(0,n.jsxs)(r.Z,{stackable:!0,children:[(0,n.jsx)(r.Z.Row,{columns:1,children:(0,n.jsxs)(r.Z.Column,{children:[t.description1TopImage&&(0,n.jsx)(_.Z,{className:k().imageContainer,src:t.description1TopImage}),(0,n.jsx)(S.D,{rehypePlugins:[C.default],className:k().markdownContainer,children:t.businessDescription,linkTarget:"_blank"}),t.description1BottomImage&&(0,n.jsx)(_.Z,{className:k().imageContainer,src:t.description1BottomImage})]})}),(0,n.jsxs)(r.Z.Row,{columns:2,children:[(0,n.jsxs)(r.Z.Column,{children:[t.description2TopImage&&(0,n.jsx)(_.Z,{className:k().imageContainer,src:t.description2TopImage}),(0,n.jsx)(S.D,{rehypePlugins:[C.default],className:k().markdownContainer,children:t.businessDescription2}),t.description2BottomImage&&(0,n.jsx)(_.Z,{className:k().imageContainer,src:t.description2BottomImage})]}),(0,n.jsxs)(r.Z.Column,{children:[t.description3TopImage&&(0,n.jsx)(_.Z,{className:k().imageContainer,src:t.description3TopImage}),(0,n.jsx)(S.D,{rehypePlugins:[C.default],className:k().markdownContainer,children:t.businessDescription3}),t.description3BottomImage&&(0,n.jsx)(_.Z,{className:k().imageContainer,src:t.description3BottomImage})]})]}),(0,n.jsx)(r.Z.Row,{columns:1,children:(0,n.jsxs)(r.Z.Column,{children:[t.description4TopImage&&(0,n.jsx)(_.Z,{className:k().imageContainer,src:t.description4TopImage}),(0,n.jsx)(S.D,{rehypePlugins:[C.default],className:k().markdownContainer,children:t.businessDescription4}),t.description4BottomImage&&(0,n.jsx)(_.Z,{className:k().imageContainer,src:t.description4BottomImage})]})})]})}),(0,n.jsx)(S.D,{className:k().markdownContainer,children:t.businessWhoWeAre,linkTarget:"_blank"})]}),s&&s.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h1",{children:" Our people "}),(0,n.jsx)(r.Z,{columns:5,stackable:!0,children:(0,n.jsx)(KeyPeople,{keyPeople:s})})]}),!u()(t.auctions)&&(null==t?void 0:t.auctionStatus)!=="Closed"&&(0,n.jsxs)("div",{className:"pad-top-30px pad-bottom-30px pad-left-15px pad-right-15px",children:[(0,n.jsx)(N.Z,{}),(0,n.jsx)(Z.t,{auctionPublicID:t.auctions[0].auctionPublicId,authenticated:i})]}),"Closed"!==t.auctionStatus&&"settled"!==t.settlementStatus&&"public"===t.productMarket&&(0,n.jsx)(SignificantShareHolder,{productType:t.productType,significantShareholders:t.significantShareholders,hasDisclosures:t.hasDisclosures,displaySignificantHolders:t.displaySignificantHolders})]})}function ProductBasicInformation(e){let{state:t}=e;return(0,n.jsxs)("div",{className:"grid-container-6",children:[(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label truncate-table-text",children:["Value per ",(0,w.a5)(t.productName),(0,n.jsx)(f.Z,{wide:"very",trigger:(0,n.jsx)(y.Z,{name:"question circle outline"}),content:"The most recent value per ".concat((0,w.a5)(t.productName),". This is calculated as the current total value of all ").concat(t.productName," divided by the number of ").concat(t.productName," issued. This may not be the most recent auction price if a non-auction valuation is used.")})]}),(0,n.jsx)("div",{className:"grid-value",children:"0.00"===t.businessSharePrice?"N/A":t.productCurrency+" "+t.businessSharePrice})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label truncate-table-text",children:["Total value of ",t.productName,(0,n.jsx)(f.Z,{wide:"very",trigger:(0,n.jsx)(y.Z,{name:"question circle outline"}),content:"The current total value of ".concat(t.productName," that have been issued.")})]}),(0,n.jsx)("div",{className:"grid-value",children:"0"===t.businessMarketCap?"N/A":t.productCurrency+" "+t.businessMarketCap})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Valuation method",(0,n.jsx)(f.Z,{wide:"very",trigger:(0,n.jsx)(y.Z,{name:"question circle outline"}),content:"Traded price"===t.valuationMethod?"This valuation is based on the most recent price at which investors have purchased ".concat(t.productName,"."):" This valuation is not based on the most recent price at which investors have purchased ".concat(t.productName," (see product information).")})]}),(0,n.jsx)("div",{className:"grid-value",children:t.valuationMethod})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label truncate-table-text",children:[t.productName," issued",(0,n.jsx)(f.Z,{wide:"very",trigger:(0,n.jsx)(y.Z,{name:"question circle outline"}),content:"The total number of ".concat(t.productName,", that have currently been issued.")})]}),(0,n.jsx)("div",{className:"grid-value",children:0===t.businessShares?"N/A":(0,w.uf)(t.businessShares,0)})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Holders",(0,n.jsx)(f.Z,{wide:"very",trigger:(0,n.jsx)(y.Z,{name:"question circle outline"}),content:"The number of people registered as the legal holders of ".concat(t.productName,", e.g. shareholders.")})]}),(0,n.jsx)("div",{className:"grid-value",children:0===t.businessShareholdersNumber?"N/A":(0,w.uf)(t.businessShareholdersNumber,0)})]}),(0,n.jsxs)("div",{className:"grid-stat",children:[(0,n.jsxs)("div",{className:"grid-label",children:["Investment type",(0,n.jsx)("div",{})]}),(0,n.jsx)("div",{className:"grid-value",children:t.productType})]})]})}function KeyPeople(e){let{keyPeople:t}=e;return t.map((e,t)=>(0,n.jsxs)(r.Z.Column,{children:[(0,n.jsx)("img",{src:e.image,style:{height:143,width:214.7}}),(0,n.jsxs)("h3",{children:[" ",e.name]}),(0,n.jsxs)("p",{children:[" Position: ",e.position," "]})]},t))}function SignificantShareHolder(e){let{productType:t,significantShareholders:i,hasDisclosures:s,displaySignificantHolders:r}=e,o=(0,a.useRouter)(),l=o.asPath.concat("/significantDisclosures");return(0,n.jsxs)("div",{className:"pad-all-15px",children:[(0,n.jsx)("h3",{className:"txt-secondary-color",children:!r&&s?(0,n.jsx)(n.Fragment,{children:"Relevant interest disclosures"}):r?(0,n.jsx)(n.Fragment,{children:"Equity"===t||"Fund (Equity)"===t?"Significant shareholders":"Significant holders"}):null}),s&&(0,n.jsxs)("p",{className:"txt-grey",children:["View all relevant interest disclosure notices",(0,n.jsx)("a",{className:"txt-secondary-color",href:l,target:"_blank",children:"\xa0here"})]}),r&&(0,n.jsx)(n.Fragment,{children:u()(i)?(0,n.jsx)("h5",{children:"No holdings over 5%"}):(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:" Holdings greater than 5% "}),(0,n.jsx)(T.Z,{basic:"very",className:"pad-bottom-60px",children:(0,n.jsx)(T.Z.Body,{children:i.map((e,i)=>(0,n.jsxs)(T.Z.Row,{children:[(0,n.jsxs)(T.Z.Cell,{children:[(0,n.jsx)(y.Z,{name:"user"}),e.name.replace("Auto_generated_","")]}),"Equity"===t?(0,n.jsxs)(T.Z.Cell,{children:[" ",(0,w.uf)(e.holding)," shares"]}):(0,n.jsxs)(T.Z.Cell,{children:[" ",(0,w.uf)(e.holding)," products"]}),(0,n.jsxs)(T.Z.Cell,{children:["(",e.percentage,")"]})]},i))})})]})})]})}var A=i(7739),I=i.n(A),D=i(6326),E=i(53149),O=i(24489);function BusinessDocuments(e){let{businessProfilePublicID:t,productProfilePublicID:i,auctionPublicID:a,productAccess:r,accountStatus:o,wholesaleStatus:l,authenticated:c,accountType:d}=e,[u,m]=(0,s.useState)([]),[h,x]=(0,s.useState)([]),getBusinessDocuments=async()=>{let e=await (0,p.U2)("/business/".concat(t,"/documents"));if(e.success){let{result:t}=e;m(t)}},getProductDocuments=async()=>{let e=await (0,p.U2)("/business/".concat(i,"/product/documents"));if(e.success){let{result:t}=e;x(t)}};(0,s.useEffect)(()=>{null!=t&&getBusinessDocuments(),i&&getProductDocuments()},[c,t,i,a]);let g=I()([...u,...h],"documentType");return"wholesale_only"===r?c?(0,n.jsx)(DocumentSegmentAuthenticatedWholesale,{groupedDocumentsByType:g,accountStatus:o,wholesaleStatus:l,accountType:d}):(0,n.jsx)(DocumentSegmentUnauthenticatedWholesale,{groupedDocumentsByType:g}):c?(0,n.jsxs)(n.Fragment,{children:[Object.keys(g).map((e,t)=>(0,n.jsx)(DocumentSegmentAuthenticated,{documents:g[e],type:e},t)),(0,n.jsx)("p",{className:"pad-top-15px",children:"To view historic documentation, click on the 'Trading details' tab above, navigate to the relevant historic auction, and see the documentation disclosed at that time."})]}):(0,n.jsx)(DocumentSegmentUnauthenticated,{groupedDocumentsByType:g})}function DocumentSegmentAuthenticated(e){let{type:t,documents:i}=e;return(0,n.jsxs)("div",{className:"pad-top-15px",children:[(0,n.jsxs)("h3",{className:"txt-secondary-color",children:[" ",t]}),(0,n.jsxs)(T.Z,{basic:"very",selectable:!0,children:[(0,n.jsx)(T.Z.Header,{children:(0,n.jsxs)(T.Z.Row,{children:[(0,n.jsx)(T.Z.HeaderCell,{}),(0,n.jsx)(T.Z.HeaderCell,{})]})}),(0,n.jsx)(T.Z.Body,{children:i.map((e,t)=>(0,n.jsxs)(T.Z.Row,{onClick:()=>window.open(e.privateURL,"_blank")&&(0,O.J)(e.fileID),children:[(0,n.jsxs)(T.Z.Cell,{style:{paddingLeft:0},children:[(0,n.jsxs)("h5",{children:[e.fileName," "]}),(0,n.jsxs)("p",{className:"txt-grey",children:[" Uploaded: ",(0,b.default)(new Date(e.date),j.vc)]})]}),(0,n.jsx)(T.Z.Cell,{textAlign:"right",children:(0,n.jsx)(y.Z,{name:"file alternate",size:"big",color:"blue"})})]},t))})]})]})}function DocumentSegmentUnauthenticated(e){let{groupedDocumentsByType:t}=e,i=(0,a.useRouter)(),redirectToLogin=()=>{let e=encodeURIComponent(i.asPath.includes("?tab=documents")?i.asPath:i.asPath+"?tab=documents");window.location="/api/login?redirect="+e};return(0,n.jsxs)("div",{className:"pad-top-30px",children:[(0,n.jsx)("p",{children:(0,n.jsxs)("strong",{children:["You need to be ",(0,n.jsx)("a",{className:"cursor-pointer",onClick:()=>redirectToLogin(),children:"logged in"})," to view the key documents."]})}),(0,n.jsxs)("p",{children:["If you don't have a Catalist account, ",(0,n.jsx)(E.f,{isHyperlink:!0,linkText:"sign up"})," now. All you need is an email address and password."]}),(0,n.jsx)("p",{children:"When you log in you'll be able to view the following types of documents:"}),(0,n.jsx)(D.Z,{bulleted:!0,children:Object.keys(t).map((e,t)=>(0,n.jsx)(D.Z.Item,{index:t,children:e}))}),(0,n.jsxs)("div",{className:"pad-top-15px flex flex-row",children:[(0,n.jsx)(v.Z,{style:{marginBottom:10},color:"blue",basic:!0,onClick:()=>redirectToLogin(),children:"Log in"}),(0,n.jsx)(E.f,{style:{marginBottom:10},color:"blue",linkText:"Sign up"})]})]})}function DocumentSegmentUnauthenticatedWholesale(e){let{groupedDocumentsByType:t}=e,i=(0,a.useRouter)(),redirectToLogin=()=>{let e=encodeURIComponent(i.asPath.includes("?tab=documents")?i.asPath:i.asPath+"?tab=documents");window.location="/api/login?redirect="+e};return(0,n.jsxs)("div",{className:"pad-top-30px",children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"To view these key documents you need to be:"})}),(0,n.jsxs)(D.Z,{bulleted:!0,children:[(0,n.jsx)(D.Z.Item,{children:"Logged in to your account"}),(0,n.jsx)(D.Z.Item,{children:"Completed the ID Verification on your account"}),(0,n.jsx)(D.Z.Item,{children:"Confirmed that you are wholesale"})]}),(0,n.jsxs)("p",{children:["If you don't have a Catalist account, ",(0,n.jsx)(E.f,{isHyperlink:!0,linkText:"sign up"})," now. It only takes a couple of minutes."]}),(0,n.jsxs)("p",{children:["If you already have a Catalist account, ",(0,n.jsx)("a",{className:"cursor-pointer",onClick:()=>redirectToLogin(),children:"log in"})," now so we can check whether you meet the above investment criteria."]}),(0,n.jsx)("p",{children:"If you meet the investment criteria, when logged in you'll be able to view the following types of documents:"}),(0,n.jsx)(D.Z,{bulleted:!0,children:Object.keys(t).map((e,t)=>(0,n.jsx)(D.Z.Item,{index:t,children:e}))}),(0,n.jsxs)("div",{className:"pad-top-15px flex flex-row",children:[(0,n.jsx)(v.Z,{color:"blue",basic:!0,onClick:()=>redirectToLogin(),children:"Log in"}),(0,n.jsx)(E.f,{color:"blue",linkText:"Sign up"})]})]})}function DocumentSegmentAuthenticatedWholesale(e){let{groupedDocumentsByType:t,accountStatus:i,wholesaleStatus:s,accountType:r}=e,o=(0,a.useRouter)(),l=o.asPath.includes("?tab=documents")?o.asPath:o.asPath+"?tab=documents";return(0,n.jsx)("div",{className:"pad-top-30px",children:"inactive"===i&&"issuer"!==r?(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:"This investment is only open to wholesale investors, so you will only be able to see the key documents if:"}),(0,n.jsx)("p",{children:(0,n.jsxs)(D.Z,{children:[(0,n.jsx)(D.Z.Item,{children:"1. You have completed the ID verification on your account, and"}),(0,n.jsx)(D.Z.Item,{children:"2. You have confirmed that you are a wholesale investor."})]})}),(0,n.jsx)("p",{children:"Once you meet the criteria you'll be able to view the following types of documents:"}),(0,n.jsx)(D.Z,{bulleted:!0,children:Object.keys(t).map((e,t)=>(0,n.jsx)(D.Z.Item,{index:t,children:e}))}),(0,n.jsx)("p",{children:"Click confirm to complete the ID verification form."}),(0,n.jsx)("div",{className:"pad-top-15px flex flex-row",children:(0,n.jsx)(v.Z,{color:"blue",onClick:()=>window.location="/users/aml_form?origin=".concat(l),children:"Confirm"})})]}):"verified"!==s&&"pending"!==s&&"issuer"!==r?(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:"This investment is only open to wholesale investors, so you will only be able to see the key documents if you confirm that you are a wholesale investor."}),(0,n.jsx)("p",{children:"Once confirmed you'll be able to view the following types of documents:"}),(0,n.jsx)(D.Z,{bulleted:!0,children:Object.keys(t).map((e,t)=>(0,n.jsx)(D.Z.Item,{index:t,children:e}))}),(0,n.jsx)("p",{children:"Click confirm to complete the wholesale investor form."}),(0,n.jsx)("div",{className:"pad-top-15px flex flex-row",children:(0,n.jsx)(v.Z,{color:"blue",onClick:()=>window.location="/users/profile/wholesale?origin=".concat(l),children:"Confirm"})})]}):(0,n.jsxs)("div",{children:[Object.keys(t).map((e,i)=>(0,n.jsx)(DocumentSegmentAuthenticated,{documents:t[e],type:e},i)),(0,n.jsx)("p",{className:"pad-top-15px",children:"To view historic documentation, click on the 'Trading details' tab above, navigate to the relevant historic auction, and see the documentation disclosed at that time."})]})})}var B=i(4616),F=i(25142),M=i(59972),q=i(416),R=i(57966),H=i(25092),L=i(31099),U=i(68655),Q=i(44623),z=i(9111),V=i(68543),W=i(91444);function MessageReportModal(e){let{openModal:t,closeModal:i,messagePublicId:a}=e,[r,o]=(0,s.useState)(""),[l,c]=(0,s.useState)(!1),showToast=(e,t)=>W.Am[e](t),messageReportSubmit=async()=>{c(!0);let e=await (0,p.v_)("/flag/".concat(a),{flagReason:r});e.success?(showToast("success","Message has been reported, the Catalist team will review it shortly."),i()):showToast("error","Failed to report message, please try again"),c(!1)};return(0,n.jsx)(U.Z,{open:t,onClose:i,centered:!0,size:"fullscreen",className:"txt-secondary-color",basic:!0,children:(0,n.jsx)(Q.Z,{children:(0,n.jsxs)(M.Z,{onSubmit:messageReportSubmit,children:[(0,n.jsx)("h3",{className:"txt-secondary-color",children:"Reason for reporting:"}),(0,n.jsx)(z.Z,{children:(0,n.jsx)(V.Z,{label:"Message was misleading or deceptive",checked:"deceptive"===r,onChange:()=>o("deceptive")})}),(0,n.jsx)(z.Z,{children:(0,n.jsx)(V.Z,{label:"Contents of the message was spam, irrelevant or self-promotional",checked:"spam"===r,onChange:()=>o("spam")})}),(0,n.jsx)(z.Z,{children:(0,n.jsx)(V.Z,{label:"Message contained profanity, hate speech or harassment",checked:"harrassment"===r,onChange:()=>o("harrassment")})}),(0,n.jsx)(z.Z,{children:(0,n.jsx)(V.Z,{label:"Contents of the message contained a privacy law breach",checked:"privacy_breach"===r,onChange:()=>o("privacy_breach")})}),(0,n.jsx)(z.Z,{children:(0,n.jsx)(V.Z,{label:"Message attempted to manipulate the market",checked:"market_manipulation"===r,onChange:()=>o("market_manipulation")})}),(0,n.jsx)(v.Z,{type:"submit",disabled:""===r||l,color:"blue",children:"\xa0 Submit\xa0"}),(0,n.jsx)(v.Z,{onClick:i,color:"blue",basic:!0,children:"\xa0 Cancel\xa0"})]})})})}function UserHandle(e){let{message:t}=e,{handle:i,isProductHolder:s,isIssuer:a,isAdmin:r}=t;return(0,n.jsxs)("span",{children:[(0,n.jsx)("u",{children:(0,n.jsx)("b",{children:i})}),s&&(0,n.jsx)(f.Z,{wide:"very",trigger:(0,n.jsxs)(F.Z,{color:"green",horizontal:!0,style:{fontSize:"12px",marginLeft:"10px"},children:[(0,n.jsx)(y.Z,{name:"hand holding usd icon"}),"Product Holder"]}),content:"This user was a product holder at the time of the message"}),a&&(0,n.jsx)(f.Z,{wide:"very",trigger:(0,n.jsxs)(F.Z,{color:"teal",horizontal:!0,style:{fontSize:"12px",marginLeft:"10px"},children:[(0,n.jsx)(y.Z,{name:"landmark icon"}),"Issuer"]}),content:"This user is the issuer of this product"}),r&&(0,n.jsx)(f.Z,{wide:"very",trigger:(0,n.jsxs)(F.Z,{color:"purple",horizontal:!0,style:{fontSize:"12px",marginLeft:"10px"},children:[(0,n.jsx)(y.Z,{name:"user astronaut icon"}),"Admin"]}),content:"This user is an admin of the Catalist platform"})]})}function UserMessage(e){let{containerStyle:t,productPublicId:i,messageDetails:r,fetchMessages:l,checkIfFirstMessage:c,openReplyComponent:d,closeReplyComponent:u,replyMessageId:m,currentUserHandle:h,isCommunityBlacklisted:x,isAmlVerified:g,isPostMessageDisabled:f}=e,[j,w]=(0,s.useState)(""),[_,N]=(0,s.useState)(!1),[T,C]=(0,s.useState)(r.likeCount||0),[P,k]=(0,s.useState)(r.isLikeByUser||!1),Z=(0,a.useRouter)(),showToast=(e,t)=>W.Am[e](t),{message:A,replies:I,createdAt:E,publicId:O,status:B}=r,F=m===O;async function handleReplySend(){if(""!=j.trim()){let e=await (0,p.v_)("/messages/new/".concat(i),{message:j.trim(),parentMessagePublicId:O});e.success||showToast("error","Message posting failed, please try again"),w(""),l(),u()}else showToast("error","Your message cannot be blank")}(0,s.useEffect)(()=>{C(r.likeCount||0),k(r.isLikedByUser)},[r]);let likeMessage=async()=>{let e=await (0,p.v_)("/like/new/".concat(O));e.success?(C(T+1),k(!0)):showToast("error","Failed to like message, please try again")},unlikeMessage=async()=>{let e=await (0,p.v_)("/like/delete/".concat(O));e.success?(C(T-1),k(!1)):showToast("error","Failed to unlike message, please try again")};return(0,n.jsxs)(R.Z,{style:t,children:["removed"===B?(0,n.jsxs)("div",{className:"flex flex-row-mobile",style:{paddingLeft:"5px"},children:[(0,n.jsx)("div",{className:"inline-block",style:{minWidth:"1.5px",width:"1.5px",background:"#0156d0"}}),(0,n.jsxs)("div",{style:{paddingLeft:"5px"},children:[(0,n.jsx)("p",{className:"message-header",style:{marginBottom:"0px"},children:(0,n.jsx)("u",{children:(0,n.jsx)("b",{children:"[Deleted message]"})})}),(0,n.jsx)("p",{children:"[Message has been removed]"})]})]}):(0,n.jsxs)("div",{className:"flex flex-row-mobile",style:{paddingLeft:"5px"},children:[(0,n.jsx)("div",{className:"inline-block",style:{minWidth:"1.5px",width:"1.5px",background:"#0156d0"}}),(0,n.jsxs)("div",{style:{paddingLeft:"5px"},children:[(0,n.jsxs)("p",{className:"message-header",style:{marginBottom:"0px"},children:[(0,n.jsx)(UserHandle,{message:r}),(0,n.jsx)("span",{className:"txt-grey",style:{fontSize:"12px",marginLeft:"10px"},children:(0,n.jsx)("u",{children:(0,b.default)(new Date(E),"dd MMM yyyy, hh:mm a")})}),(0,n.jsx)(H.Z,{icon:"ellipsis vertical",style:{marginLeft:"20px"},className:"txt-grey",children:(0,n.jsx)(L.Z,{children:(0,n.jsx)(H.Z.Item,{text:"Report",icon:"flag icon",onClick:()=>N(!0)})})})]}),(0,n.jsx)(S.D,{children:A}),(0,n.jsxs)("div",{className:"flex flex-row-mobile",style:{marginTop:"5px"},children:[(0,n.jsx)("a",{onClick:()=>d(O),basic:!0,size:"mini",color:"blue",children:"Reply"}),(0,n.jsx)(y.Z,{name:P?"thumbs up icon":"thumbs up outline icon",style:{marginLeft:"20px"},color:"blue",onClick:g?P?unlikeMessage:likeMessage:function(){g||(window.location="/users/aml_form?origin=".concat(Z.asPath))}}),(0,n.jsx)("span",{className:"text-primary-blue",children:T})]})]})]}),_&&(0,n.jsx)(MessageReportModal,{openModal:()=>{N(!0)},closeModal:()=>{N(!1)},messagePublicId:O}),F&&(x?(0,n.jsx)(o.Z,{children:(0,n.jsx)(o.Z.Content,{children:"This account cannot currently post messages. If you believe this is an error please contact us at hello@catalist.co.nz"})}):(0,n.jsxs)(M.Z,{className:" flex flex-column pad-top-15px pad-bottom-15px max-with-30-percent-desktop",onSubmit:handleReplySend,children:[(0,n.jsx)(q.Z,{maxLength:"1000",width:"100%",placeholder:"Write your message...",disabled:f,onClick:()=>c(),value:j,onChange:(e,t)=>{let{value:i}=t;w(i)}}),(0,n.jsxs)("div",{className:"flex flex-row-mobile margin-top-15px",children:[(0,n.jsx)(v.Z,{primary:!0,type:"submit",color:"blue",children:"\xa0Post\xa0"}),(0,n.jsx)(v.Z,{className:"margin-left-25px",onClick:u,color:"blue",basic:!0,children:"\xa0Cancel\xa0"})]})]})),(0,n.jsx)(D.Z,{className:"message-replies",children:I.map((e,t)=>(0,n.jsx)(UserMessage,{containerStyle:{marginLeft:"30px"},productPublicId:i,messageDetails:e,fetchMessages:l,checkIfFirstMessage:c,openReplyComponent:d,closeReplyComponent:u,replyMessageId:m,currentUserHandle:h,isCommunityBlacklisted:x,isAmlVerified:g,isPostMessageDisabled:f},t))})]})}function CreateHandleModal(e){let{openModal:t,closeModal:i}=e,[a,r]=(0,s.useState)(!1),[o,l]=(0,s.useState)(""),showToast=(e,t)=>W.Am[e](t),userHandleSubmit=async()=>{if(""!=o.trim()){let e=await (0,p.U2)("/messages/handle/".concat(o.trim(),"/validate"));if(e.result)showToast("error","Handle already exists, please enter a new handle");else{let e=await (0,p.v_)("/messages/handle/new",{handle:o.trim()});e.success?(showToast("success","Handle created successfully"),setTimeout(()=>{i(),location.reload()},1e3)):showToast("error","Handle creation failed, please try again")}}else showToast("error","User Handle cannot be blank")};return(0,n.jsx)(U.Z,{open:t,onClose:i,centered:!0,size:"fullscreen",className:"txt-secondary-color",basic:!0,children:(0,n.jsx)(Q.Z,{children:(0,n.jsxs)(M.Z,{onSubmit:userHandleSubmit,children:[(0,n.jsx)("h3",{className:"txt-secondary-color",children:"Welcome to Catalist's discussion forum"}),(0,n.jsx)("p",{children:" Please choose the username that will appear next to your posts."}),(0,n.jsx)("div",{className:" flex flex-column pad-top-15px pad-bottom-15px max-with-30-percent-desktop",children:(0,n.jsx)(M.Z.Input,{placeholder:"Your user handle...",onChange:(e,t)=>{let{value:i}=t;l(i)},value:o,required:!0})}),(0,n.jsx)(z.Z,{children:(0,n.jsx)(V.Z,{label:(0,n.jsxs)("label",{children:["I agree to the Catalist ",(0,n.jsx)("a",{href:"https://cdn.catalist.co.nz/Documents/Discussion+forum+guidelines.pdf",target:"_blank",children:"discussion forum guidelines "})]}),checked:a,onChange:()=>r(!a)})}),(0,n.jsx)(v.Z,{type:"submit",disabled:!a,color:"blue",children:"\xa0 Submit\xa0"}),(0,n.jsx)(v.Z,{onClick:i,color:"blue",basic:!0,children:"\xa0 Cancel\xa0"})]})})})}function Community(e){let{isCommunityBlacklisted:t,userHandle:i,authenticated:r,amlStatus:l,productPublicId:c}=e,[d,u]=(0,s.useState)(!1),[m,h]=(0,s.useState)(""),[x,g]=(0,s.useState)([]),[f,b]=(0,s.useState)(""),[j,w]=(0,s.useState)(!1),_=!i,N=(0,a.useRouter)(),T="inactive"!=l,showToast=(e,t)=>W.Am[e](t),redirectToLogin=()=>{let e=encodeURIComponent(N.asPath.includes("?tab=discussion")?N.asPath:N.asPath+"?tab=discussion");window.location="/api/login?redirect="+e},openReplyComponent=e=>{b(e)},closeReplyComponent=()=>{b("")};function handleFirstMessageModalOpen(){w(!0),u(!0)}let checkIfFirstMessage=()=>{if(_){handleFirstMessageModalOpen();return}};async function fetchMessages(){let e=await (0,p.U2)("/messages/".concat(c));g(e.result)}async function handleMessageSend(){if(""!=m.trim()){let e=await (0,p.v_)("/messages/new/".concat(c),{message:m.trim(),parentMessagePublicId:null});e.success||showToast("error","Message posting failed, please try again"),h(""),fetchMessages()}else showToast("error","Your message cannot be blank")}return((0,s.useEffect)(()=>{fetchMessages()},[]),r)?(0,n.jsxs)("div",{className:"background-white pad-bottom-60px pad-top-15px",children:[(0,n.jsx)("h3",{className:"txt-secondary-color",children:"Write a message or ask a question"}),(0,n.jsxs)("p",{children:[" By participating in this discussion forum you agree to our ",(0,n.jsx)("a",{href:"https://cdn.catalist.co.nz/Documents/Discussion+forum+guidelines.pdf",target:"_blank",children:"discussion forum guidelines"}),".  Please be aware that you may not remove or edit after posting.  If you make a mistake, you can contact us at hello@catalist.co.nz."]}),(0,n.jsxs)("p",{children:["Catalist and the listed business (Issuer) are not responsible for any of the comments shown below, except those marked as ",(0,n.jsxs)(F.Z,{color:"purple",horizontal:!0,style:{fontSize:"12px",marginLeft:"10px"},children:[(0,n.jsx)(y.Z,{name:"user astronaut icon"}),"Admin"]})," or ",(0,n.jsxs)(F.Z,{color:"teal",horizontal:!0,style:{fontSize:"12px",marginLeft:"10px"},children:[(0,n.jsx)(y.Z,{name:"landmark icon"}),"Issuer"]}),".  As with any social forum, take appropriate care before relying on any information shared by other users, and please report any comments that violate our guidelines."]}),t?(0,n.jsx)(o.Z,{children:(0,n.jsx)(o.Z.Content,{children:"This account cannot currently post messages. If you believe this is an error please contact us at hello@catalist.co.nz"})}):(0,n.jsxs)(M.Z,{className:" flex flex-column pad-top-15px pad-bottom-15px",onSubmit:handleMessageSend,children:[(0,n.jsx)(q.Z,{maxLength:"1000",width:"100%",placeholder:"Write your message...",disabled:j,onClick:()=>{T||(window.location="/users/aml_form?origin=".concat(N.asPath)),checkIfFirstMessage()},value:m,onChange:(e,t)=>{let{value:i}=t;h(i)}}),(0,n.jsx)("div",{className:"flex flex-row margin-top-15px",children:(0,n.jsx)(v.Z,{primary:!0,type:"submit",children:"Post a message"})})]}),(0,n.jsx)(D.Z,{style:{overflowY:"auto"},children:x.map((e,s)=>(0,n.jsx)(UserMessage,{containerStyle:{marginLeft:"0px"},productPublicId:c,messageDetails:e,fetchMessages:fetchMessages,checkIfFirstMessage:checkIfFirstMessage,openReplyComponent:openReplyComponent,closeReplyComponent:closeReplyComponent,replyMessageId:f,currentUserHandle:i,isCommunityBlacklisted:t,isAmlVerified:T,isPostMessageDisabled:j},s))}),d&&(0,n.jsx)(CreateHandleModal,{openModal:handleFirstMessageModalOpen,closeModal:function(){w(!1),u(!1)}})]}):(0,n.jsxs)("div",{className:"pad-top-15px",children:[(0,n.jsx)("p",{children:(0,n.jsxs)("strong",{children:["You need to be ",(0,n.jsx)("a",{className:"cursor-pointer",onClick:()=>redirectToLogin(),children:"logged in"})," to view the discussion forum."]})}),(0,n.jsxs)("p",{children:["If you don't have a Catalist account, ",(0,n.jsx)(E.f,{isHyperlink:!0,linkText:"sign up"})," now. All you need is an email address and password."]}),(0,n.jsxs)("div",{className:"pad-top-15px flex flex-row",children:[(0,n.jsx)(v.Z,{style:{marginBottom:10},color:"blue",basic:!0,onClick:()=>redirectToLogin(),children:"Log in"}),(0,n.jsx)(E.f,{style:{marginBottom:10},color:"blue",linkText:"Sign up"})]})]})}let G=["overview","auctions","documents","discussion"];function BusinessPanes(e){let{state:t,auctionId:i,authenticated:s}=e,r=(0,a.useRouter)(),o=r.query.tab?Math.max(G.findIndex(e=>e===r.query.tab),0):0;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(B.O,{loading:t.isLoading,defaultIndex:o,children:[(0,n.jsx)(B.E,{index:0,label:"Overview",tabURL:G[0],children:(0,n.jsx)(Overview,{state:t,authenticated:s})}),!i&&(0,n.jsx)(B.E,{index:1,label:"Trading details",tabURL:G[1],children:(0,n.jsx)(Auction,{productPublicId:t.productID})}),(0,n.jsx)(B.E,{index:2,label:"Key documents",tabURL:G[2],children:(0,n.jsx)("div",{className:"background-white pad-left-15px pad-right-15px pad-bottom-60px",children:(0,n.jsx)(BusinessDocuments,{businessProfilePublicID:t.businessProfilePublicId,productProfilePublicID:t.productProfilePublicId,productAccess:t.productAccess,accountStatus:t.accountStatus,wholesaleStatus:t.wholesaleStatus,authenticated:s,accountType:t.accountType})})}),t.communityMessageEnabled&&(0,n.jsx)(B.E,{index:3,label:"Discussion forum",tabURL:G[3],children:(0,n.jsx)("div",{className:"background-white pad-left-15px pad-right-15px pad-bottom-60px",children:(0,n.jsx)(Community,{isCommunityBlacklisted:t.isCommunityBlacklisted,userHandle:t.userHandle,authenticated:s,amlStatus:t.accountStatus,productPublicId:t.productID})})})]})})}},21230:function(e,t,i){"use strict";i.d(t,{BA:function(){return AuctionPaymentRequestedStatusCurrentEvents},BK:function(){return AuctionSettlementRequestedStatusCurrentEvents},MB:function(){return AuctionPaymentRequestedStatus},eE:function(){return AuctionPaymentRequestedStatusOrder},wo:function(){return AuctionStatus}});var n=i(85893);i(67294);var s=i(93787);let a={"Pre-open":"yellow",Open:"green","Pre-Close":"orange","Pre-Closing":"orange",Closing:"red","Pre-Settled":"orange","Settled Closed":"red","Pre-close":"orange",Closed:"red","Closed pre-settled":"red","Closed settled":"red",Settled:"red",Pending:"grey",Requested:"green"};function AuctionStatus(e){let{auctionStatus:t}=e;return(0,n.jsx)("b",{className:"whitespace-nowrap txt-".concat(a[t]," "),children:t})}function AuctionPaymentRequestedStatus(e){let{paymentProcess:t,isCalled:i,auctionStatus:s}=e;if(t)return"settled"===s?(0,n.jsx)("b",{children:"-"}):"prepayment"===t||"no-prepayment"===t&&i?(0,n.jsx)("b",{className:"txt-green",children:"Yes"}):"no-payment"===t?(0,n.jsx)("b",{children:"N/A"}):(0,n.jsx)("b",{className:"txt-red",children:"No"})}function AuctionPaymentRequestedStatusOrder(e){let{isCalled:t,orderType:i,orderStatus:a,auctionStatus:r,settlementState:o}=e;return"Closed"===r&&"settled"===o||"withdrawn"===a||"offerLimit"===i?(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)("b",{children:"-"}),content:"Not applicable"}):t?(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)("b",{className:"txt-black whitespace-nowrap",children:"Payment called"}),content:"This amount is due and payable. Check your 'Wallet balance' to ensure you have enough to cover this payment."}):(0,n.jsx)(s.Z,{wide:"very",trigger:(0,n.jsx)("b",{className:"txt-black whitespace-nowrap",children:"Not called"}),content:"This amount is not payable yet. It will not be included in your 'Amount to pay' yet."})}function AuctionPaymentRequestedStatusCurrentEvents(e){let{isCalled:t}=e;return t?(0,n.jsx)("b",{className:"whitespace-nowrap txt-green",children:"Payment called"}):(0,n.jsx)("b",{className:"whitespace-nowrap txt-black",children:"Not called"})}function AuctionSettlementRequestedStatusCurrentEvents(e){let{settlementRequested:t}=e;return t?(0,n.jsx)("b",{className:"whitespace-nowrap txt-green",children:"Yes"}):(0,n.jsx)("b",{className:"whitespace-nowrap txt-black",children:"No"})}},20209:function(e,t,i){"use strict";i.d(t,{i:function(){return OrderStatus}});var n=i(85893);i(67294);var s=i(18029),a=i.n(s),r=i(48403),o=i.n(r),l=i(93787);let c={fullTrade:"green",partialTrade:"green",noTrade:"orange",withdrawn:"red",submitted:"green",Other:"grey"},d={fullTrade:"This order's volume is trading in full at it's current price.",partialTrade:"This order's volume is partially trading at it's current price.",noTrade:"This order is not trading at it's current price.",withdrawn:"This order has been withdrawn from the order book.",submitted:"This order has been successfully submitted."};function OrderStatus(e){let{orderStatus:t,flagged:i,auctionType:s}=e;return i?(0,n.jsx)(l.Z,{wide:"very",trigger:(0,n.jsx)("b",{className:"whitespace-nowrap",color:"orange",children:"Flagged"}),content:"This order has been flagged for manual review. Don't worry, this is part of our standard procedures, but it may mean we need to contact you before we can release the order into the order book. Your order will retain the time priority status from the time it was submitted, so this will not affect your priority. If the order is still flagged after two business days and you haven't heard from us, please contact us at hello@catalist.co.nz."}):"withdrawn"===t?(0,n.jsx)(l.Z,{wide:"very",trigger:(0,n.jsx)("b",{className:"whitespace-nowrap txt-".concat(c.withdrawn),children:"Withdrawn"}),content:d.withdrawn}):"standard"!==s&&"fullTrade"===t?(0,n.jsx)(l.Z,{wide:"very",trigger:(0,n.jsx)("b",{className:"whitespace-nowrap txt-".concat(c.submitted),children:"Submitted"}),content:d.submitted}):(0,n.jsx)(l.Z,{wide:"very",trigger:(0,n.jsx)("b",{className:"whitespace-nowrap txt-".concat(c[t]),children:o()(a()(t))}),content:d[t]})}},75131:function(e,t,i){"use strict";function TradingStatus(e){let{auctionType:t,value:i}=e;return"fixed_price"===t?"NA":i}i.d(t,{K:function(){return TradingStatus}})},42135:function(e,t,i){"use strict";i.d(t,{Z:function(){return BusinessLayout}});var n=i(85893),s=i(67294),a=i(41085),r=i(95712),o=i(19009),l=i(40704),c=i(20880),d=i(76296);function BusinessLayout(e){let t=s.createRef();return(0,n.jsx)(a.R,{innerRef:t,children:(0,n.jsxs)(r.Z,{fluid:!0,style:{backgroundColor:"#F0F1F6"},children:[(0,n.jsxs)("div",{style:{width:"100%",marginTop:"-1px",height:"0px"},children:[(0,n.jsx)(o.Z,{context:t,children:(0,n.jsx)(l.Z,{...e})}),(0,n.jsx)(d.t,{})]}),(0,n.jsx)(r.Z,{className:"layout-padding",fluid:!0,children:(0,n.jsx)("div",{style:{paddingTop:"10rem"},children:e.children})}),(0,n.jsx)(c.Z,{className:"footer"})]})})}},51086:function(e,t,i){"use strict";i.d(t,{Z:function(){return AuctionCalendar}});var n=i(85893),s=i(67294),a=i(96827),r=i(45578),o=i.n(r),l=i(75472),c=i.n(l),d=i(31132),u=i(10234),m=i(584),p=i(20466),h=i(89711);i(7377);var x=i(74174),g=i(91108),f=i(68114),y=i.n(f);let v={"en-NZ":h.Z},b=(0,a.lD)({format:d.default,parse:u.default,startOfWeek:m.default,getDay:p.default,locales:v});function AuctionCalendar(e){let{productPublicID:t}=e,[i,r]=(0,s.useState)([]),getAuctionSchedule=async()=>{let e=await (0,g.U2)("/business/getAuctionSchedule/".concat(t));if(e.success){let t;let i=c()(e.result,"auctionType","DESC"),s=o()(i,"businessName");for(let e=0;e<s.length;e++){let i=e%x.v.length;t={...t,[s[e].businessName]:x.v[i]}}let a=i.map(e=>({start:new Date(e.auctionStart),end:new Date(e.auctionEnd),title:(0,n.jsx)("a",{href:e.url,style:{color:"white"},children:e.businessName+" - "+e.auctionType}),eventColour:t[e.businessName],eventScheduled:e.isScheduled}));r(a)}};return(0,s.useEffect)(()=>{getAuctionSchedule()},[]),(0,n.jsxs)("div",{children:[(0,n.jsx)(a.f,{localizer:b,events:i,min:new Date(0,0,0,0,0,0),max:new Date(0,0,0,0,0,0),startAccessor:"start",endAccessor:"end",style:{height:800},eventPropGetter:e=>({style:{height:"24px",fontSize:"12px",paddingTop:"0px",border:e.eventScheduled?"2px dashed #0156d0":"",backgroundColor:e.eventScheduled?"#BCBFC3":e.eventColour,opacity:"80%"}}),tooltipAccessor:null,culture:"en-NZ"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"pad-top-15px pad-bottom-0px",children:"Key"}),(0,n.jsxs)("div",{className:"flex flex-item-align-center pad-top-15px flex-row-mobile",children:[(0,n.jsx)("div",{className:y().donut}),(0,n.jsx)("p",{className:"pad-left-15px",children:"Solid: Confirmed dates"})]}),(0,n.jsxs)("div",{className:"flex flex-item-align-center pad-top-15px flex-row-mobile",children:[(0,n.jsx)("div",{className:y().estimated}),(0,n.jsx)("p",{className:"pad-left-15px",children:"Dotted: Estimated dates"})]}),(0,n.jsx)("p",{className:"pad-top-15px",children:"Estimated auction dates are based on the business' intended auction schedule. Confirmed auction dates are set by the issuer closer to the time of trading."})]})]})}},74174:function(e,t,i){"use strict";i.d(t,{v:function(){return n}});let n=["#0D2D50","#0156D0","#84D2F6","#D183C9","#E84855","#FF8600","#F4D35E","#0C7C59","#F0CBD6","#D6925B","#7FC1A1"]},27755:function(e,t,i){"use strict";i.d(t,{T:function(){return FBPixel}});var n=i(85893),s=i(67294),a=i(4298),r=i.n(a),o=i(11163),l=i(64721),c=i.n(l),d=i(63197);function FBPixel(e){let{pixelCode:t}=e,[i,a]=(0,s.useState)((0,n.jsx)(n.Fragment,{})),[l,u]=(0,s.useState)([d.hU]),m=(0,o.useRouter)(),pageview=()=>{"function"==typeof window.fbq&&window.fbq("track","PageView")},handleRouteChange=()=>{pageview()};return(0,s.useEffect)(()=>(m.events.on("routeChangeComplete",handleRouteChange),()=>{m.events.off("routeChangeComplete",handleRouteChange)}),[m.events]),(0,s.useEffect)(()=>{let e=l;t&&!c()(l,t)&&(e=[...l,t]),a((0,n.jsx)(n.Fragment,{children:e.map((e,t)=>(0,n.jsx)(r(),{className:"facebook-pixel",children:"!function(f,b,e,v,n,t,s)\n              {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n              n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n              if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n              n.queue=[];t=b.createElement(e);t.async=!0;\n              t.src=v;s=b.getElementsByTagName(e)[0];\n              s.parentNode.insertBefore(t,s)}(window, document,'script',\n              'https://connect.facebook.net/en_US/fbevents.js');\n              fbq('init', '".concat(e,"');\n              fbq('track', 'PageView');")},t))})),u(e)},[t]),i}},45912:function(e,t,i){"use strict";i.d(t,{M:function(){return FavouriteProductStar}});var n=i(85893),s=i(67294),a=i(93787),r=i(45150),o=i(16541),l=i(91444),c=i(91108);function FavouriteProductStar(e){let{productPublicID:t,businessProductName:i,isProductFavourited:d,starSize:u=""}=e,[m,p]=(0,s.useState)(!1),[h,x]=(0,s.useState)(""),showToast=(e,t)=>l.Am[e](t),getFavourite=async()=>{let e=await (0,c.U2)("/product/getFavourite/".concat(t));e.success?p(e.result):x(e.error)},addFavourite=async()=>{let e=await (0,c.v_)("/product/addFavourite/".concat(t));e.success?(p(!0),showToast("success","".concat(i||"This product"," has been added to your favourites. You will be notified of future trading events, this product will now also appear in your favourites on the marketplace."))):x(e.error)},removeFavourite=async()=>{let e=await (0,c.v_)("/product/removeFavourite/".concat(t));e.success?(p(!1),showToast("success","".concat(i||"This product"," has been removed from favourites. You will no longer be notified of future trading events, this product will no longer appear in your favourites on the marketplace."))):x(e.error)};return(0,s.useEffect)(()=>{null==d&&t&&getFavourite()},[]),(0,s.useEffect)(()=>{p(d)},[d]),(0,n.jsxs)(n.Fragment,{children:[m?(0,n.jsx)(a.Z,{wide:"very",trigger:(0,n.jsx)(r.Z,{className:"cursor-pointer",size:u,name:"star",color:"yellow",onClick:()=>removeFavourite()}),content:"Unfavourite this product? You can always favourite it again later."}):(0,n.jsx)(a.Z,{wide:"very",trigger:(0,n.jsx)(r.Z,{className:"cursor-pointer",size:u,name:"star outline",color:"yellow",onClick:()=>addFavourite()}),content:"Favourite this product to be notified of future trading events."}),h&&(0,n.jsx)(o.Z,{error:!0,children:h})]})}},49892:function(e,t,i){"use strict";i.d(t,{$7:function(){return c},$L:function(){return u},Cu:function(){return l},Ht:function(){return d},NK:function(){return o},RG:function(){return h},ZN:function(){return r},h_:function(){return m},sN:function(){return s},vt:function(){return a},x:function(){return n},xS:function(){return p}});let n={title:"Catalist | The stock exchange for New Zealand's growth economy",description:"The simplest way for investors and businesses to connect and grow with unrivalled access to NZ's growth marketplace.",keywords:"Growth stock exchange, investors, SMEs, share marketplace, capital markets, trading, shares, startups"},s={title:"Invest | Retail, Wholesale, Angel - Catalist",description:"Diversify your investment portfolio with the stock exchange for growing Kiwi businesses.",keywords:"Investment, Growth Businesses, portfolio diversification"},a={title:"List | Trade, Raise Capital - Catalist",description:"Unlock the power of tradable shares and stimulate new avenues of investments and raising capital for your business through Catalist marketplace.",keywords:"SMEs, Growth Businesses, investment, capital raise, share trading, registry"},r={title:"Investment marketplace | Public, Wholesale, Angel - Catalist",description:"The investment marketplace where investors can view investments in a diverse portfolio of New Zealand’s growth businesses, SMEs and startups.",keywords:"Listed businesses, investments, SMEs, share marketplace, retail investors, wholesale investors, angel investors"},o={title:"Blog - Catalist",description:"Information, tips and investing news from Catalist and the marketplace for New Zealand’s growth investments .",keywords:"Blog, news, Growth Businesses, investment, capital raise, share trading"},l={title:"Contact Us - Catalist",description:"Any suggestions, questions or feedback? Reach us here and we will be happy to help",keywords:"customer service"},c={title:"Frequently Asked Questions - Catalist",description:"The answers to some of our most frequently asked questions about investments, investing and listing a business",keywords:"FAQs, customer service, How to"},d={title:"Documentation - Catalist",description:"This is the one stop shop for all you need to know about investing, listing and other information related to our growth investment marketplace.",keywords:"Terms and conditions, policies, guidance, documentation"},u={title:"About Us - Catalist",description:"Welcome to Catalist New Zealand’s only licensed and regulated stock exchange designed to unlock new investment opportunities .",keywords:"about, team, about us, about Catalist, investing, invest"},m={title:"Marketplace Mechanics - Catalist",description:"Learn how auctions work and the mechanics of the marketplace. Understand the types and priorities of bids (to buy) and offers (to sell).",url:"https://www.catalist.co.nz/MarketplaceMechanics",keywords:"Marketplace mechanics, priority of investment, auction algorithm"},p={title:"Media - Catalist",description:"Catalist media coverage across articles, podcasts and video.",url:"https://www.catalist.co.nz/Media",keywords:"Media, press, coverage"},h={title:"Catalist - Auction schedule",description:"Catalist upcoming scheduled auctions.",url:"https://www.catalist.co.nz/Schedule",keywords:"schedule, auction, calendar, dates, upcoming, future"}},81592:function(e,t,i){"use strict";i.d(t,{E:function(){return StandardSeo}});var n=i(85893),s=i(2962);function StandardSeo(e){let{titleProp:t,descriptionProp:i,keywordProp:a,imageURL:r="https://cdn.catalist.co.nz/website_assets/Catalist_HeroImage_SocialSharing.png"}=e;return(0,n.jsx)(s.PB,{title:t,description:i,openGraph:{title:t,description:i,images:[{url:r,width:800,height:600,alt:"Catalist logo"}],site_name:"Catalist",locale:"en_NZ"},robotsProps:{maxImagePreview:"large"},additionalMetaTags:[{property:"keywords",content:a}]})}},18846:function(e,t,i){"use strict";i.d(t,{G:function(){return CustomTable}});var n=i(85893),s=i(67294),a=i(44345),r=i(44908),o=i.n(r),l=i(45150),c={DetailPanel:(0,s.forwardRef)((e,t)=>(0,n.jsx)(l.Z,{name:"triangle right",color:"blue",...e,ref:t})),SortArrow:(0,s.forwardRef)((e,t)=>(0,n.jsx)(l.Z,{name:"sort down",color:"blue",...e,ref:t})),FirstPage:(0,s.forwardRef)((e,t)=>(0,n.jsx)(l.Z,{name:"angle double left",color:"grey",...e,ref:t,"data-testid":"first_page",size:"small",style:{width:16,height:20,marginLeft:3,marginRight:6,paddingTop:4,fontSize:12}})),LastPage:(0,s.forwardRef)((e,t)=>(0,n.jsx)(l.Z,{name:"angle double right",color:"grey",...e,ref:t,"data-testid":"first_page",size:"small",style:{width:16,height:20,marginLeft:5,paddingTop:4,fontSize:12}})),NextPage:(0,s.forwardRef)((e,t)=>(0,n.jsx)(l.Z,{name:"chevron right",color:"grey",...e,ref:t,"data-testid":"chevron_right",size:"small",style:{width:16,height:20,marginLeft:5,paddingTop:4,fontSize:12}})),PreviousPage:(0,s.forwardRef)((e,t)=>(0,n.jsx)(l.Z,{name:"chevron left",color:"grey",...e,ref:t,"data-testid":"chevron_left",size:"small",style:{width:16,height:20,marginLeft:3,marginRight:6,paddingTop:4,fontSize:12}})),ResetSearch:(0,s.forwardRef)((e,t)=>(0,n.jsx)(l.Z,{name:"remove",color:"grey",...e,ref:t,"data-testid":"clear",size:"mini",inverted:!0}))};let CustomTable=e=>{let{options:t,data:i,columns:s,title:r,showComponents:l,components:d,onRowClick:u,detailPanel:m,isLoading:p}=e,h=s.map(e=>({...e,headerStyle:{fontSize:"15px",fontFamily:"Sofia-Pro",color:"#0D2D50",height:"80px"}})),x={fontFamily:"Sofia-Pro",color:"#0D2D50"},g={...t,rowStyle:e=>{let i=t.rowStyle?t.rowStyle(e):{};return{...x,...i}},pageSizeOptions:o()([5,10,20,50,null==i?void 0:i.length].sort((e,t)=>e-t)),padding:"dense"};return(0,n.jsx)("div",{children:(0,n.jsx)(a.ZP,{isLoading:p,data:i,columns:h,title:r,options:g,detailPanel:m,icons:c,components:l?d:null,onRowClick:u})})}},4616:function(e,t,i){"use strict";i.d(t,{E:function(){return TabItem},O:function(){return Tab}});var n=i(85893),s=i(67294),a=i(40849),r=i(19717),o=i.n(r);function TabItem(e){return(0,n.jsx)("div",{...e})}function Tab(e){let{defaultIndex:t=0,onTabClick:i,children:r,loading:l=!1}=e,[c,d]=(0,s.useState)(t);(0,s.useEffect)(()=>{d(t)},[t]),(0,s.useEffect)(()=>{let handlePopstate=e=>{let t=e.state,i=0;t&&t.tabURL&&-1===(i=r.findIndex(e=>{let{props:i}=e;return i&&i.tabURL===t.tabURL}))&&(i=0),d(i)};return window.addEventListener("popstate",handlePopstate),()=>{window.removeEventListener("popstate",handlePopstate)}},[r]);let changeTab=(e,t)=>{if("function"==typeof i&&i(e),d(e),t){let e=new URL(window.location.href);e.searchParams.set("tab",t),window.history.pushState({tabURL:t},"",e)}},u=r.filter(e=>!!e);return(0,n.jsxs)("div",{className:"wrapper",children:[(0,n.jsx)("div",{className:o().tab__menu,style:{gridTemplateColumns:"repeat(".concat(u.length,", 1fr)")},children:u.map(e=>{let{props:{index:t,label:i,tabURL:s}}=e;return(0,n.jsx)("button",{onClick:()=>changeTab(t,s),className:c===t?o().focus:"",children:i},"tab-btn-".concat(t))})}),(0,n.jsxs)("div",{className:o().tab__view,children:[l&&(0,n.jsxs)("div",{className:"".concat(o().tab__content," ").concat(o().selected," ").concat(o().tab__loader__container),children:[(0,n.jsx)(a.Z,{active:!0,size:"massive"})," "]}),!l&&u.map(e=>{let{props:t}=e;return c===t.index?(0,s.createElement)("div",{...t,className:"".concat(o().tab__content," ").concat(o().selected),key:"tab-content-".concat(t.index)}):null})]})]})}},63197:function(e,t,i){"use strict";i.d(t,{Fr:function(){return a},dq:function(){return s},hU:function(){return r},vc:function(){return n}});let n="MMM do yyyy",s="dd/MM/yyyy h:mm a",a="AIzaSyAXBcohvaOv7sLc2AFTVbH_4KhjC-wkJ9g",r="398198347901327"},59396:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return b},getBusiness:function(){return getBusiness},showBusinessFinancialInfo:function(){return showBusinessFinancialInfo}});var n=i(85893),s=i(67294),a=i(95712),r=i(2812),o=i(11163),l=i.n(o),c=i(41609),d=i.n(c),u=i(169),m=i(91108),p=i(42135),h=i(23271),x=i(60232),g=i(27746),f=i(27755),y=i(81592),v=i(49892);let BusinessPage=class BusinessPage extends s.Component{async componentDidMount(){var e,t,i,n,s;if(this.props.authenticated){let e;this.props.req&&(e=req.headers.cookie);let t=await (0,m.U2)("/users/me",e);this.setState({accountType:t.result.user.accountType,accountStatus:t.result.user.accountStatus,wholesaleStatus:t.result.user.wholesaleStatus,userHandle:t.result.user.handle,isCommunityBlacklisted:t.result.user.communityMessageBlacklist})}try{let{businessUrl:e}=null===(i=l().router)||void 0===i?void 0:i.query,t=await getBusiness(e);if(null==t)throw Error("Business not found");this.setState({businessKey:t.key,businessName:t.name,businessDescription:t.description,businessDescription2:t.businessDescription2,businessDescription3:t.businessDescription3,businessDescription4:t.businessDescription4,businessExternalURL:t.externalURL,businessWhoWeAre:t.who_we_are,businessLogo:t.logo_file_key,businessProfilePublicId:t.businessProfilePublicId,productProfilePublicId:t.productProfilePublicId,businessCoverPhoto:t.im_file_key,keyPeople:t.people,productID:e,productName:t.productName,productDescription:t.productDescription,fbPixelCode:t.fbPixelCode,isLoading:!1,isShowMobileAuctionTimeline:!0,description1TopImage:t.description1TopImage,description1BottomImage:t.description1BottomImage,description2TopImage:t.description2TopImage,description2BottomImage:t.description2BottomImage,description3TopImage:t.description3TopImage,description3BottomImage:t.description3BottomImage,description4TopImage:t.description4TopImage,description4BottomImage:t.description4BottomImage,content1TopImage:t.content1TopImage,content1BottomImage:t.content1BottomImage,content2TopImage:t.content2TopImage,content2BottomImage:t.content2BottomImage,content3TopImage:t.content3TopImage,content3BottomImage:t.content3BottomImage});let n=await showBusinessFinancialInfo(e);n&&this.setState({significantShareholders:n.information.significantShareholders,businessDirectors:n.directors,businessShareholdersNumber:n.information.shareholderCount,businessDirectorsNumber:n.information.directorCount,businessSharePrice:n.information.securitiesValue,valuationMethod:n.information.valuationMethod,businessMarketCap:n.information.currentMarketCap,businessShares:n.information.totalSecurities,businessIncorporated:n.information.incorporatedDate,productType:n.information.productType,productCurrency:n.information.productCurrency,productMarket:n.information.productMarket,productAccess:n.information.productAccess,hasDisclosures:n.information.hasDisclosureDocuments,displaySignificantHolders:n.information.displaySignificantHolders,communityMessageEnabled:n.information.communityMessageEnabled});let s=await getBusinessAuctions(e);s&&this.setState({...this.state,auctions:s})}catch(e){this.props.authenticated?window.location="/marketplace":window.location="/api/login?redirect="+encodeURIComponent(null===l()||void 0===l()?void 0:l().asPath)}if(window.location.hash||!d()(null===l()||void 0===l()?void 0:null===(t=l().router)||void 0===t?void 0:null===(e=t.query)||void 0===e?void 0:e.tab)){let e=window.location.hash.replace("#","");"product-information"!==e&&d()(null===l()||void 0===l()?void 0:null===(s=l().router)||void 0===s?void 0:null===(n=s.query)||void 0===n?void 0:n.tab)||setTimeout(()=>{let{top:e}=function(e){let t=e.getBoundingClientRect(),i=document.body,n=document.documentElement,s=window.pageYOffset||n.scrollTop||i.scrollTop,a=window.pageXOffset||n.scrollLeft||i.scrollLeft,r=n.clientTop||i.clientTop||0,o=n.clientLeft||i.clientLeft||0,l=t.top+s-r,c=t.left+a-o;return{top:Math.round(l),left:Math.round(c)}}(this.productInformationComponent);window.scroll(0,e)},500)}}render(){let e=window.innerWidth,t=e&&e<761,i=this.props.authenticated,s=this.state.businessDescription||this.state.businessDescription2||this.state.businessDescription3||this.state.businessDescription4;return(0,n.jsxs)(n.Fragment,{children:[!d()(this.state.businessName)&&(0,n.jsx)(y.E,{titleProp:"Invest - ".concat(this.state.businessName," ").concat(this.state.productName," - Catalist"),descriptionProp:(function(e){let t=new DOMParser().parseFromString(e,"text/html");return t.body.textContent||""})(s).replace(/[#\s]+/g," ").trim().substring(0,160),keywordProp:"".concat(this.state.productType,", ").concat(this.state.productMarket,", ").concat(v.sN.keywords),imageURL:this.state.businessLogo}),(0,n.jsxs)(p.Z,{...this.props,children:[(0,n.jsx)(f.T,{pixelCode:this.state.fbPixelCode}),(0,n.jsxs)(a.Z,{className:"pad-bottom-200px-desktop ease-up-quick",fluid:!0,children:[t&&this.state.auctions.length>0&&(0,n.jsx)("div",{className:"pad-top-30px pad-bottom-15px",children:(0,n.jsx)(r.Z,{color:"blue",size:"large",onClick:()=>{this.setState({isShowMobileAuctionTimeline:!this.state.isShowMobileAuctionTimeline})},children:this.state.isShowMobileAuctionTimeline?"View product information":"Invest"})}),(!t||this.state.isShowMobileAuctionTimeline)&&(0,n.jsx)(x.g,{auctionPublicId:this.state.auctions[0]&&this.state.auctions[0].auctionPublicId,authenticated:this.props.authenticated,accountType:this.state.accountType,accountStatus:this.state.accountStatus,wholesaleStatus:this.state.wholesaleStatus,hasProductHolders:this.state.businessShareholdersNumber>0}),(0,n.jsx)(g.t,{externalURL:this.state.businessExternalURL,productPublicID:this.state.productID,authenticated:i}),(0,n.jsx)("div",{ref:e=>this.productInformationComponent=e,children:(0,n.jsx)(h.K,{state:this.state,authenticated:i})})]})]})]})}constructor(e){super(e),this.state={accountType:null,accountStatus:null,wholesaleStatus:null,productID:"",businessKey:"",businessName:"",businessDescription:"",businessDescription2:"",businessDescription3:"",businessDescription4:"",businessExternalURL:"",businessWhoWeAre:"",businessCoverPhoto:null,businessLogo:"",significantShareholders:[],hasDisclosures:!1,displaySignificantHolders:!1,communityMessageEnabled:!1,businessShareholdersNumber:"",businessDirectors:[],businessDirectorsNumber:"",businessIncorporated:"",keyPeople:[],businessMarketCap:0,businessSharePrice:"",valuationMethod:"",businessShares:"",businessProfilePublicId:null,productName:"",productDescription:null,auctions:[],productType:"",productCurrency:"NZD",productMarket:"",productAccess:"",fbPixelCode:null,isLoading:!0}}};var b=(0,u.GY)(BusinessPage);async function getBusiness(e){let t=await (0,m.U2)("/business/"+e);if(t.success)return t.result.business}async function getBusinessAuctions(e){let t=await (0,m.U2)("/business/".concat(e,"/auctions"));if(t.success){let{db:e,canBid:i}=t.result;return e}return[]}async function showBusinessFinancialInfo(e){let t=await (0,m.U2)("/business/".concat(e,"/financial"));if(t.success)return t.result}},80305:function(e,t,i){"use strict";i.d(t,{IU:function(){return a},PZ:function(){return l},Rj:function(){return s},TF:function(){return c},kn:function(){return o},uG:function(){return r},wo:function(){return n}});let n={Open:"Open",PreOpen:"Pre-open",PreClose:"Pre-close",Closed:"Closed"},s={Trustee:"trustee",LargeBeneficiary:"large_beneficiary",SmallBeneficiary:"small_beneficiary",OtherKeyPerson:"other_key_person",ObjectClass:"object_class"},a={public:"public",private:"private",register:"register",record:"record",wholesale:"wholesale"},r={prepayment:"prepayment","no-prepayment":"no-prepayment","no-payment":"no-payment"},o=[{key:"AUD",text:"AUD",value:"AUD"},{key:"USD",text:"USD",value:"USD"},{key:"GBP",text:"GBP",value:"GBP"},{key:"EUR",text:"EUR",value:"EUR"},{key:"NZD",text:"NZD",value:"NZD"},{key:"CAD",text:"CAD",value:"CAD"},{key:"JPY",text:"JPY",value:"JPY"},{key:"CNY",text:"CNY",value:"CNY"},{key:"HKD",text:"HKD",value:"HKD"},{key:"SGD",text:"SGD",value:"SGD"}],l=[{key:"Equity",text:"Equity",value:"Equity"},{key:"Debt",text:"Debt",value:"Debt"},{key:"Fund (Equity)",text:"Fund (Equity)",value:"Fund (Equity)"},{key:"Fund (Debt)",text:"Fund (Debt)",value:"Fund (Debt)"},{key:"Limited partnership",text:"Limited partnership",value:"Limited partnership"},{key:"Fixed income",text:"Fixed income",value:"Fixed income"},{key:"Cash",text:"Cash/Money",value:"Cash"},{key:"Other",text:"Other",value:"Other"}],c=[{key:"public",text:"Public",value:"public"},{key:"wholesale",text:"Wholesale",value:"wholesale"},{key:"register",text:"Register",value:"register"},{key:"private",text:"Private",value:"private"},{key:"record",text:"Angel",value:"record"}]},1588:function(e,t,i){"use strict";i.d(t,{KY:function(){return formatName},Sv:function(){return downloadFile},Wd:function(){return formatAuctionType},a5:function(){return formatRemovePlural},aY:function(){return preventRedirectOnClick},lb:function(){return formatMoney},oN:function(){return formatNameNewProductHolder},p0:function(){return formatBankAccountForInput},uE:function(){return formatProductAccess},uf:function(){return formatNumber}});var n=i(85893),s=i(90711);i(41609);var a=i(93787),r=i(45150);function formatNumber(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-";return"NaN"===Number(e).toString()||null==e?i:Number(e).toFixed(t).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}function formatMoney(e,t){let{showDollarSign:i=!0,currencySymbol:n="$",emptyLabel:a="0.00",showCents:r=!0,currency:o=null}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("NaN"===Number(e).toString()||null==e)return a;let l=Number(e);if(0===l)return a;let c="".concat(i?n:"","0,0").concat(r?".00":""),d="0"!==e.toString().slice(-1);d&&(c="".concat(i?n:"","0,0").concat(r?".000":""));let u=o?{amount:l,precision:t,currency:o}:{amount:l,precision:t};return(0,s.Z)(u).toFormat(c)}function formatRemovePlural(e){return(null==e?void 0:e.endsWith("s"))?null==e?void 0:e.slice(0,-1):e}function formatAuctionType(e,t){return"standard"===e?"Secondary market":"capital_raise"===e?"Capital raise":"commitment_raise"===e?"Commitment":"exercise_issuer"!==e&&"exercise_issuer_oversubscription"!==e&&"exercise_investor"!==e&&"exercise_investor_oversubscription"!==e?"":t?"Exercise: ".concat(t):"Exercise"}function formatProductAccess(e){return"everyone"===e?"Everyone":"wholesale_only"===e?"Wholesale only":"wholesale_existing"===e?"Wholesale & existing holders":"existing_only"===e?"Existing holders":""}function formatName(e){return(null==e?void 0:e.length)>0?(null==e?void 0:e.includes("Auto_generated_"))?(0,n.jsx)(n.Fragment,{children:null==e?void 0:e.replace(/Auto_generated_/g,"")}):(0,n.jsxs)(n.Fragment,{children:[e,"\xa0",(0,n.jsx)(a.Z,{wide:"very",trigger:(0,n.jsx)(r.Z,{name:"user",color:"blue"}),content:"This person/entity has a Catalist account."})]}):e}function formatNameNewProductHolder(e,t){return t?(0,n.jsxs)(n.Fragment,{children:[e,"\xa0",(0,n.jsx)(a.Z,{wide:"very",trigger:(0,n.jsx)(r.Z,{name:"user plus",color:"green"}),content:"This person/entity is a new investor in this financial product."})]}):e}function preventRedirectOnClick(e){e.stopPropagation()}function formatBankAccountForInput(e){let t=e;return e&&20===e.length&&(t=t.slice(1,17)+t.slice(18).trim()),t}function downloadFile(e,t){let i=document.createElement("a");i.download=t,i.href=e,i.click()}},24489:function(e,t,i){"use strict";i.d(t,{J:function(){return uploadFileAnalyticsHandler}});var n=i(91108);async function uploadFileAnalyticsHandler(e){await (0,n.v_)("/file/recordFileAnalytics",{fileID:e})}},58467:function(e){e.exports={"right-padding":"auctionMessages_right-padding__fe2Jf"}},45295:function(e){e.exports={"capital-raise-information-container":"CapitalRaiseInformation_capital-raise-information-container__tsb1Q","capital-raise-information-container-max-only":"CapitalRaiseInformation_capital-raise-information-container-max-only__EEkDz","fund-raise-information-container":"CapitalRaiseInformation_fund-raise-information-container__bLJWM","capital-raise-progress-bar-container":"CapitalRaiseInformation_capital-raise-progress-bar-container__69mhM","capital-raise-stat-value":"CapitalRaiseInformation_capital-raise-stat-value__8wRMt","capital-raise-stat-label":"CapitalRaiseInformation_capital-raise-stat-label__po6Vy"}},48469:function(e){e.exports={Auction__preopen__container:"auctionContainer_Auction__preopen__container__Jgzop",Auction__open__container:"auctionContainer_Auction__open__container__ZLyic",Auction__preclose__container:"auctionContainer_Auction__preclose__container__R01Jq",Auction__closed__container:"auctionContainer_Auction__closed__container__Ppyyu",Auction__presettled__container:"auctionContainer_Auction__presettled__container__39ZUH"}},14643:function(e){e.exports={markdownContainer:"businessOverview_markdownContainer__d96F1",business__logo__container:"businessOverview_business__logo__container__uux5e",imageContainer:"businessOverview_imageContainer___jf7M"}},68114:function(e){e.exports={core__paragraph:"auctionCalendar_core__paragraph__0DySm",core__paragraph__inverse:"auctionCalendar_core__paragraph__inverse__5oTa9",core__heading:"auctionCalendar_core__heading__RxnJg",core__heading__inverse:"auctionCalendar_core__heading__inverse__zz9Rp",core__plain__heading:"auctionCalendar_core__plain__heading___XvyS",core__plain__heading__inverse:"auctionCalendar_core__plain__heading__inverse__F342A",auction__calendar__background:"auctionCalendar_auction__calendar__background__S2vSv",auction__calendar__container:"auctionCalendar_auction__calendar__container__oHzxX",estimated:"auctionCalendar_estimated__WKl87",donut:"auctionCalendar_donut__CIHsc"}},19717:function(e){e.exports={tab__menu:"tab_tab__menu__KqiD4",focus:"tab_focus__r6KHl",tab__content:"tab_tab__content__TjeMX",tab__loader__container:"tab_tab__loader__container__NvShI",selected:"tab_selected__5ujnv"}},49125:function(e){e.exports={timeline__container:"timelineStyles_timeline__container__hKp1s","auction-timeline__container":"timelineStyles_auction-timeline__container__fA_2t","timeline-period":"timelineStyles_timeline-period__w_1XZ","timeline-period__center":"timelineStyles_timeline-period__center__vJfw1","timeline-period__left":"timelineStyles_timeline-period__left__zaTXA","timeline-period__right":"timelineStyles_timeline-period__right__YXL1F",stripe:"timelineStyles_stripe__mnD84","timeline-period-active":"timelineStyles_timeline-period-active__SvGDY","right-align":"timelineStyles_right-align__Nb9dz","center-align-column":"timelineStyles_center-align-column__5ZZr8","right-align-column":"timelineStyles_right-align-column___05Wn","center-align":"timelineStyles_center-align__t1JoM","pre-open-active":"timelineStyles_pre-open-active__VAuuL","open-active":"timelineStyles_open-active__LDGAn","preclose-active":"timelineStyles_preclose-active__504tL","closed-active":"timelineStyles_closed-active__i30la",timeline:"timelineStyles_timeline__Whzjg",timeline__block:"timelineStyles_timeline__block__dnEjo",timeline__midpoint:"timelineStyles_timeline__midpoint___fagg",timeline__content:"timelineStyles_timeline__content__oLtAw",showOnWidthScreen:"timelineStyles_showOnWidthScreen__LU4Je",showOnNarrowScreen:"timelineStyles_showOnNarrowScreen__mn3rs"}}},function(e){e.O(0,[5062,2770,9135,4100,2962,9119,3787,1132,7814,4524,711,8655,7755,5479,120,3398,1243,5990,837,6461,3668,5848,704,5688,9774,2888,179],function(){return e(e.s=96205)}),_N_E=e.O()}]);
//# sourceMappingURL=[businessUrl]-e459576d0fee56ca.js.map