PageSourceSearch

https://bamboohousing.ca/_next/static/chunks/3529-13373a43a53ac1a9.js

js bamboohousing.ca collected 2026-10-04 09:49:28 UTC 7,756 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3529],{33529:function(e,t,r){var n=r(85893),i=r(67294),a=r(38738),s=r(3623),o=r(85775),l=r(52256),c=r(25142),u=r(59077),d=r(80967),m=r(95712);function h(e){var t=e.features;return(0,n.jsx)("div",{children:t.split("\u2713").filter((function(e){return""!==e.trim()})).map((function(e,t){return(0,n.jsxs)("div",{style:{marginBottom:"8px"},children:["\u2713"," ",e.split(" ").map((function(e,r){return(0,n.jsxs)("span",{style:{color:/^\d+$/.test(e)?"blue":"inherit",fontWeight:/^\d+$/.test(e)?"bold":"normal"},children:[e," "]},"".concat(t,"-").concat(r))}))]},t)}))})}t.Z=function(e){var t=e.user,r=e.selectedprice,f=e.setSelectedPrice,p=e.prices,x=e.numInstagramFeaturedToday,j=e.featuredPlusEnabled,y=(0,i.useState)(x),g=y[0],b=(y[1],(0,i.useState)(!1)),v=b[0],S=b[1];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.Z,{as:"h2",style:{marginBottom:"40px"},children:["Listing Feature ",(0,n.jsx)("span",{style:{color:"red"},children:"*"})]}),(0,n.jsxs)(o.Z,{stackable:!0,children:[(0,n.jsxs)(l.Z.Group,{children:[p.filter((function(e){return"websiteAndInstagram"!==e.product.metadata.packagepricename})).map((function(e,i){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(l.Z,{className:r.index==i&&"pricingSelected",color:r.index==i?"green":"white",children:(0,n.jsxs)(l.Z.Content,{className:"true"==e.metadata.isrecommended&&"recommendedproduct",children:["websiteAndInstagram"==e.product.metadata.packagepricename&&(0,n.jsx)("div",{style:{position:"relative"},children:(0,n.jsx)(c.Z,{as:"a",color:g>=3?"red":"violet",ribbon:"right",size:"small",style:{position:"absolute",top:"-30px"},children:g>=3?(0,n.jsx)(n.Fragment,{children:"No more spots available for today"}):(0,n.jsxs)(n.Fragment,{children:["Only ",3-g," left for today!"]})})}),(0,n.jsx)(l.Z.Header,{children:e.product.name}),(0,n.jsx)(l.Z.Description,{children:e.metadata.tagline}),(0,n.jsx)(u.Z,{size:"tiny",children:(0,n.jsxs)(u.Z.Value,{children:[t.ConfirmedStudent&&(0,n.jsxs)("s",{className:"redText",children:["$",e.metadata.unverifiedprice]})," ","$",e.unit_amount/100]})}),(0,n.jsx)("br",{}),(0,n.jsx)(d.Z,{className:"priceSelectButton",fluid:!0,circular:!0,type:"button",color:"teal",onClick:function(){f({index:i,priceId:e.id.toString(),productName:e.product.metadata.packagepricename,productImage:e.product.images[0],price:e.unit_amount})},disabled:"websiteAndInstagram"==e.product.metadata.packagepricename&&(g>=3||!j),children:"Select"}),(0,n.jsx)("br",{}),(0,n.jsx)(h,{features:e.metadata.features}),(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),!t.ConfirmedStudent&&"University"===t.UserType&&(0,n.jsxs)(m.Z,{className:"bottomDiv",children:[(0,n.jsx)("br",{}),parseFloat(e.unit_amount/100)>0?(0,n.jsxs)(n.Fragment,{children:["To get"," ",(0,n.jsxs)("b",{children:["$",parseFloat(e.unit_amount/100)-parseFloat(e.metadata.verifiedprice)," ","off"]})," ",(0,n.jsx)("b",{children:(0,n.jsx)("a",{target:"_blank",onClick:function(){return S(!0)},children:"verify"})})," ","your account with a university email"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("b",{children:(0,n.jsx)("a",{target:"_blank",onClick:function(){return S(!0)},children:"Verify"})})," ","your university email to become a"," ",(0,n.jsx)("b",{children:"trusted seller"})," "]})]}),(0,n.jsx)("br",{})]})})})})),(0,n.jsx)("br",{})]}),t&&v&&(0,n.jsx)(a.Z,{user:t,source:"createlisting",externalModalStateSetter:S,externalModalState:v})]})]})}},38738:function(e,t,r){r.d(t,{Z:function(){return w}});var n=r(828),i=r(85893),a=r(67294),s=r(24696),o=r(3623),l=r(85775),c=r(52190),u=r(80967),d=r(47568),m=r(14924),h=r(26042),f=r(69396),p=r(10092),x=r(9669),j=r.n(x),y=r(36808),g=r.n(y),b=r(60416),v=r(45150),S=r(57105);function Z(e,t){return k.apply(this,arguments)}function k(){return(k=(0,d.Z)((function(e,t){var r,n,i,a,s,o,l,c,u,d;return(0,p.__generator)(this,(function(m){switch(m.label){case 0:return m.trys.push([0,2,,3]),r="".concat(S.Z,"/api/university"),n={email:e,universityId:t},[4,j().get(r,{params:n})];case 1:if(i=m.sent().data){a=e.split("@")[1],s=!0,o=!1,l=void 0;try{for(c=i.ValidEmailSuffixes[Symbol.iterator]();!(s=(u=c.next()).done);s=!0)if(u.value===a)return[2,!0]}catch(h){o=!0,l=h}finally{try{s||null==c.return||c.return()}finally{if(o)throw l}}return[2,!1]}return[3,3];case 2:return d=m.sent(),console.error(d),[2,!1];case 3:return[2]}}
1))}))).apply(this,arguments)}var C=function(e){var t=e.user,r={StudentEmail:t.StudentEmail,ConfirmedStudent:t.ConfirmedStudent},s=(0,n.Z)(a.useState(r),2),l=s[0],c=s[1],u=(0,n.Z)(a.useState(""),2),x=u[0],y=u[1],k=(0,n.Z)(a.useState(""),2),C=k[0],w=k[1];function F(){return(F=(0,d.Z)((function(){var e,r,n,i,a,s,o;return(0,p.__generator)(this,(function(c){switch(c.label){case 0:return y(""),w(""),[4,Z(e=l.StudentEmail,t.UniversityId)];case 1:if(r=c.sent(),!e||!r)return[3,6];n="".concat(S.Z,"/api/profiles"),i={StudentEmail:e,onlyVerifyStudent:!0},a=g().get("token"),s={headers:{Authorization:a}},c.label=2;case 2:return c.trys.push([2,4,,5]),[4,j().post(n,i,s)];case 3:return c.sent(),w("Confirmation email sent to "+e.toString()+", please check your inbox. Emails may take a few minutes to arrive."),[3,5];case 4:return(o=c.sent()).response&&y(o.response.data.message),[3,5];case 5:return[3,7];case 6:y("Sorry you've entered an invalid student email not associated with your university, please try another email."),c.label=7;case 7:return[2]}}
1))}))).apply(this,arguments)}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Z,{as:"h3",children:"University Email Verification"}),"To verify your university-verified status, please enter a valid email address associated with your school.",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)(b.Z,{size:"small",className:"disabledInput",action:{size:"mini",color:"teal",labelPosition:"left",icon:"check",content:"Verify",disabled:l.ConfirmedStudent,onClick:function(){return function(){return F.apply(this,arguments)}()}},disabled:l.ConfirmedStudent,type:"email",name:"StudentEmail",actionPosition:"right",onChange:function(e){var t=e.target,r=t.name,n=t.value;c((function(e){return(0,f.Z)((0,h.Z)({},e),(0,m.Z)({},r,n))}))},value:l.StudentEmail,placeholder:"Eg. [email protected]"}),(0,i.jsx)("br",{}),l.ConfirmedStudent?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.Z,{color:"green",name:"check circle"}),"Email has been confirmed!"]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.Z,{color:"red",name:"ban"}),(0,i.jsx)("b",{children:"Email Not Confirmed Yet"})]}),(0,i.jsx)("p",{style:{color:"red"},children:x}),(0,i.jsx)("p",{style:{color:"orange"},children:C})]})};var w=function(e){var t=e.user,r=e.source,d=e.externalModalStateSetter,m=void 0===d?function(){}:d,h=e.externalModalState,f=void 0!==h&&h,p=(0,n.Z)(a.useState(!t.ConfirmedStudent&&!t.IsFirstTimeLoggedIn),2),x=p[0],j=p[1];return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(s.u,{onClose:function(){j(!1),m(!1)},onOpen:function(){return j(!0)},open:x||f,children:[(0,i.jsx)(o.Z,{as:"h3",children:"Become University Verified!"}),(0,i.jsxs)(l.Z,{columns:2,divided:!0,stackable:!0,children:[(0,i.jsxs)(l.Z.Column,{children:["createlisting"==r?(0,i.jsx)(i.Fragment,{children:"Being a University Verified means that potential buyers can trust you more easily. If verified, your listings will have a green verified check mark."}):(0,i.jsx)(i.Fragment,{children:"Being University Verified helps you build trust with other users. If verified, others will see a green verified check mark under your name when you message them."}),(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)(c.Z,{src:"../../static/verifiedbadge.png"})]}),(0,i.jsx)(l.Z.Column,{children:(0,i.jsx)(C,{user:t})})]}),(0,i.jsx)("br",{}),(0,i.jsx)(u.Z,{color:"white",onClick:function(){j(!1),m(!1)},children:"Maybe Later"})]})})}}}]);

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