1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0e799d89-8127-4d7b-be1a-b965a8324aa4",e._sentryDebugIdIdentifier="sentry-dbid-0e799d89-8127-4d7b-be1a-b965a8324aa4")}catch(e){}}();var _global="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{};_global.SENTRY_RELEASE={id:"57ecc7b471fce630a9a83e03af7702d6977a38be"};"use strict";(self.webpackChunkopus1io=self.webpackChunkopus1io||[]).push([["18140"],{2488:function(e,n,i){var t=i(48689),s=i(7091),a=i(26871);n.A=()=>(0,a.oz)(t.ACTION_UPDATE,s.RESOURCE_BUSINESS)},66455:function(e,n,i){i.d(n,{A:function(){return e_},H:function(){return eR}});var t=i(41374);i(60726),i(93632),i(42273),i(45336),i(23446);var s=i(74848),a=i(96540),r=i(5556),o=i.n(r),l=i(52956),c=i(48810),d=i(50926),u=i(94362),p=i(61734),m=i(21002),x=i(52708),h=i(84577),g=i(17378);i(11516);var f=i(15257),v=i(7937),j=i(26871),y=i(7091),b=i(48689),A=i(6702),C=i(70537),N=i(25167),w=i(69348),R=i(57682),T=i(36459),_=i(36596);function O(){var e=(0,h._)(["\n font-size: 14px;\n font-weight: 500;\n line-height: 1.1;\n color: #888;\n"]);return O=function(){return e},e}var E=g.Ay.p(O()),L=e=>{var{isOpen:n,toggle:i,url:t,text:a,showUrl:r=!0}=e;return(0,s.jsxs)(_.A,{modalName:"qr-modal",isOpen:n,toggle:i,wrapClassName:"modal-primary",size:"xl",children:[(0,s.jsx)(R.default,{toggle:i,children:"QR Code"}),(0,s.jsxs)(N.default,{children:[(0,s.jsx)("p",{children:a}),(0,s.jsx)("div",{className:"d-flex justify-content-center",children:(0,s.jsx)(T.hp,{value:t,size:512,level:"H"})}),r&&(0,s.jsx)("div",{className:"d-flex justify-content-center",children:(0,s.jsx)(E,{children:t})})]}),(0,s.jsx)(w.default,{})]})},k=i(59769),I=i(95253),U=i(59003),S=i(86095),D=i(55064),z=i(86862);function P(){var e=(0,h._)(["\n display: flex;\n flex-direction: column;\n"]);return P=function(){return e},e}function q(){var e=(0,h._)(["\n display: flex;\n flex-direction: column;\n line-height: 17px;\n text-align: justify;\n max-width: 95%;\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n"]);return q=function(){return e},e}function Y(){var e=(0,h._)(["\n font-size: 18px;\n margin-bottom: 20px;\n color: #616161;\n"]);return Y=function(){return e},e}function G(){var e=(0,h._)(["\n font-size: 14px;\n margin-bottom: 5px;\n color: #616161;\n"]);return G=function(){return e},e}function Q(){var e=(0,h._)(["\n font-size: 14px;\n margin-bottom: 5px;\n color: #aaa;\n"]);return Q=function(){return e},e}function F(){var e=(0,h._)(["\n color: #616161 !important;\n"]);return F=function(){return e},e}function M(){var e=(0,h._)(["\n display: flex;\n flex-wrap: wrap;\n"]);return M=function(){return e},e}function H(){var e=(0,h._)(["\n &:not(:last-child) {\n margin-right: 5px;\n }\n"]);return H=function(){return e},e}function B(){var e=(0,h._)(["\n height: 180px;\n margin-bottom: 20px;\n background-color: lightgray;\n border-radius: 9px;\n border-radius: 9px;\n overflow: hidden;\n object-fit: cover;\n"]);return B=function(){return e},e}var Z=g.Ay.div(P()),V=g.Ay.div(q()),W=g.Ay.strong(Y()),J=g.Ay.strong(G()),K=g.Ay.p(Q()),X=g.Ay.span(F()),$=g.Ay.div(M()),ee=(0,g.Ay)(f.mH)(H()),en=g.Ay.img(B()),ei=(e,n)=>{var i=e.name.toUpperCase(),t=n.name.toUpperCase();return i<t?-1:+(i>t)},et=e=>{var{location:n,className:i}=e,t=(0,l.useDispatch)(),a=(0,l.useSelector)(e=>e.app.business.marketingPlusEnabled),[r,o]=(0,k.A)(),[c,u]=(0,k.A)(),p=["LOCATION_TYPE_HOME","LOCATION_TYPE_ONLINE"].includes(n.locationType);return(0,s.jsxs)(Z,{className:"".concat(i," description"),children:[(0,s.jsxs)(W,{children:[(0,s.jsx)(v.V,{className:"fas ".concat(v.e[n.locationType])}),(0,s.jsx)("span",{className:"name",children:n.name})]}),n.mainPhoto&&(0,s.jsx)(en,{alt:"locationPhoto",src:(0,U.Ay)(n.mainPhoto,null,null,"service")}),!p&&n.address&&(0,s.jsx)(V,{children:(0,s.jsxs)("div",{className:"d-flex",children:[(0,s.jsx)(C.A,{faIcon:"map-marker",className:"mr-2"}),(0,s.jsx)(X,{children:n.address})]})}),(0,s.jsx)(V,{children:(0,s.jsxs)("div",{className:"d-flex",children:[(0,s.jsx)(C.A,{faIcon:"globe",className:"mr-2"}),(0,s.jsx)(X,{children:n.timezone})]})}),n.suggestedTimezone&&!(0,d.WB)(n.timezone,n.suggestedTimezone)&&(0,s.jsx)(V,{children:(0,s.jsx)("div",{className:"d-flex",children:(0,s.jsx)(S.A,{text:(0,s.jsxs)(s.Fragment,{children:["The address does not match the selected\n time zone (Suggested time zone: ".concat(n.suggestedTimezone,")")," ",(0,s.jsx)(D.SC,{style:{fontSize:"0.8rem"},onClick:()=>t({type:z.Z7,payload:{showing:!0,forceOpen:!0}}),children:"Please contact our support team"})]})})})}),(0,s.jsxs)(V,{children:[(0,s.jsx)(J,{children:"Description:"}),(0,s.jsx)("div",{children:n.description})]}),!p&&n.rooms&&n.rooms.length>0&&(0,s.jsxs)(V,{children:[(0,s.jsx)(J,{children:"Rooms:"}),(0,s.jsx)($,{children:n.rooms.slice().sort(ei).map(e=>(0,s.jsx)(ee,{className:"mb-2",children:e.name},e.name))})]}),a&&n.googleRating&&(0,s.jsxs)(V,{children:[(0,s.jsx)(J,{children:"Google Rating:"}),(0,s.jsx)(X,{children:(0,s.jsx)(I.s,{rating:n.googleRating,ratingsCount:n.googleRatingsCount,label:"Google"})})]}),a&&n.managedGoogleReviewLink&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(V,{children:[(0,s.jsx)(J,{children:"Get 5-star Google Reviews:"}),(0,s.jsx)(X,{children:(0,s.jsxs)("div",{className:"d-flex",children:[(0,s.jsx)("a",{className:"d-flex mr-2",style:{textDecoration:"none",color:"inherit"},href:n.managedGoogleReviewLink,target:"_blank",rel:"noreferrer",children:"Link"}),(0,s.jsx)("span",{className:"mr-1",style:{cursor:"pointer"},onClick:o,children:"QR Code"})]})})]}),r&&(0,s.jsx)(L,{isOpen:r,toggle:o,url:n.managedGoogleReviewLink,text:"Use this QR Code to get reviews",showUrl:!1})]}),a&&n.yelpRating&&(0,s.jsxs)(V,{children:[(0,s.jsx)(J,{children:"Yelp Rating:"}),(0,s.jsx)(X,{children:(0,s.jsx)(I.s,{rating:n.yelpRating,ratingsCount:n.yelpRatingsCount,label:"Yelp"})})]}),a&&n.managedYelpReviewLink&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(V,{children:[(0,s.jsx)(J,{children:"Get 5-star Yelp Reviews:"}),(0,s.jsx)(X,{children:(0,s.jsxs)("div",{className:"d-flex",children:[(0,s.jsx)("a",{className:"d-flex mr-2",style:{textDecoration:"none",color:"inherit"},href:n.managedYelpReviewLink,target:"_blank",rel:"noreferrer",children:"Link"}),(0,s.jsx)("span",{className:"mr-1",style:{cursor:"pointer"},onClick:u,children:"QR Code"})]})})]}),c&&(0,s.jsx)(L,{isOpen:c,toggle:u,url:n.managedYelpReviewLink,text:"Use this QR Code to get reviews",showUrl:!1})]}),(0,s.jsxs)("div",{className:"d-flex flex-direction-row",children:[(0,j.oz)(b.ACTION_UPDATE,y.RESOURCE_LOCATION)&&!!n.businessPlanCost&&!n.discounted&&(0,s.jsx)(K,{className:"mr-2",children:"Subscription cost: ".concat((0,A.og)("USD",n.businessPlanCost))}),(0,j.oz)(b.ACTION_UPDATE,y.RESOURCE_LOCATION)&&n.discounted&&(0,s.jsx)(K,{className:"mr-2",children:"Subscription cost: ".concat((0,A.og)("USD",0)," (discounted)")}),(0,j.oz)(b.ACTION_UPDATE,y.RESOURCE_LOCATION)&&!!n.activeClientsLast30&&(0,s.jsx)(K,{className:"mr-2",children:"Active Clients (last 30 days): ".concat(n.activeClientsLast30)}),(0,j.oz)(b.ACTION_UPDATE,y.RESOURCE_LOCATION)&&!!n.activeClientsNext30&&(0,s.jsx)(K,{children:"Active Clients (next 30 days): ".concat(n.activeClientsNext30)})]})]})};
1et.propTypes={location:o().shape({name:o().string.isRequired,locationType:o().string.isRequired,address:o().string,description:o().string,rooms:o().arrayOf(o().object).isRequired}).isRequired,className:o().string},et.defaultProps={className:null};var es=i(4301);function ea(){var e=(0,h._)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"]);return ea=function(){return e},e}function er(){var e=(0,h._)(["\n display: flex;\n @media screen and (max-width: 768px) {\n flex-direction: column;\n }\n"]);return er=function(){return e},e}function eo(){var e=(0,h._)(["\n padding: 0px 6px;\n &:not(:last-child) {\n margin-right: 5px;\n }\n @media screen and (max-width: 768px) {\n margin-right: 0px !important;\n margin-top: 5px;\n }\n padding: 2px 8px !important;\n font-size: 10px !important;\n"]);return eo=function(){return e},e}var el=g.Ay.div(ea()),ec=g.Ay.div(er()),ed=(0,g.Ay)(es.Sh)(eo()),eu=e=>{var{locationId:n,index:i,updateLocation:t,removeLocation:a,duplicateLocation:r,className:o}=e;return(0,s.jsx)(el,{className:"".concat(o," description"),children:(0,s.jsxs)(ec,{children:[(0,j.Ay)(b.ACTION_UPDATE,y.RESOURCE_LOCATION)&&r&&(0,s.jsx)(ed,{id:"location-duplicate-".concat(i,"-button"),onClick:()=>r(n),className:"btn-cancel btn-duplicate",children:"Duplicate"}),(0,j.Ay)(b.ACTION_UPDATE,y.RESOURCE_LOCATION)&&(0,s.jsx)(ed,{id:"location-update-".concat(i,"-button"),onClick:()=>t(n),className:"btn-cancel btn-update",children:"Update"}),(0,j.Ay)(b.ACTION_DELETE,y.RESOURCE_LOCATION)&&(0,s.jsx)(ed,{id:"location-remove-".concat(i,"-button"),onClick:()=>a(n),className:"btn-cancel btn-remove",children:"Remove"})]})})};eu.propTypes={index:o().number.isRequired,locationId:o().string.isRequired,className:o().string,updateLocation:o().func.isRequired,removeLocation:o().func.isRequired,duplicateLocation:o().func.isRequired},eu.defaultProps={className:null};var ep=i(50163);function em(){var e=(0,h._)(["\n padding: 15px !important;\n display: flex;\n"]);return em=function(){return e},e}function ex(){var e=(0,h._)(["\n flex: 0 0 80%;\n width: 80%;\n padding-right: 10px;\n @media screen and (max-width: 768px) {\n flex: 0 0 80%;\n width: 80%;\n }\n"]);return ex=function(){return e},e}function eh(){var e=(0,h._)(["\n margin-left: auto;\n @media screen and (max-width: 768px) {\n flex: 0 0 20%;\n width: 20%;\n margin-top: auto;\n }\n"]);return eh=function(){return e},e}var eg=(0,g.Ay)(ep.A)(em()),ef=(0,g.Ay)(et)(ex()),ev=(0,g.Ay)(eu)(eh()),ej=e=>{var{location:n,index:i,updateLocation:t,removeLocation:a,duplicateLocation:r}=e;return(0,s.jsxs)(eg,{className:"location-card",children:[(0,s.jsx)(ef,{location:n}),(0,s.jsx)(ev,{index:i,locationId:n.id,updateLocation:t,removeLocation:a,duplicateLocation:["LOCATION_TYPE_ONLINE"].includes(n.locationType)?null:r})]})};ej.propTypes={index:o().number.isRequired,location:o().object.isRequired,duplicateLocation:o().func.isRequired,removeLocation:o().func.isRequired,updateLocation:o().func.isRequired},i(12820);var ey=i(50613),eb=i(89511),eA=i(2488),eC=i(38566),eN=(0,s.jsxs)("div",{children:["You are about to delete a location, are you sure you want to continue?",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"This action is irreversible and should only be used if you are closing a location and no longer offering services at this location.",(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:"This location will no longer be available for new appointment or session scheduling"}),(0,s.jsx)("li",{children:"Changes to staff availabilities in this location will not longer be possible"}),(0,s.jsx)("li",{children:"Changes to appointments scheduled at this locations will no longer be possible (except exception below)"}),(0,s.jsx)("li",{children:"Notifications and attendance taking will still be possible for appointments and sessions scheduled at this location"}),(0,s.jsx)("li",{children:"Currently scheduled appointments or sessions at this location will remain unchanged, and may be canceled as usual"})]}),"If you are sure you want to delete this location, please contact support over chat or"," ",(0,s.jsx)("a",{href:"mailto:[email protected]",target:"_blank",rel:"noreferrer",children:"email"})," ","and our team will be happy to assist."]}),ew=(e,n)=>{if(e.locationType===n.locationType){var i=e.name.toUpperCase(),t=n.name.toUpperCase();return i<t?-1:+(i>t)}return e.locationType>n.locationType?1:-1},eR=()=>{var e=(0,l.useDispatch)();return(0,s.jsx)(S.A,{text:(0,s.jsxs)(s.Fragment,{children:["opus1.io subscription is calculated based on number of locations and active clients. Adding locations will increase your opus1.io monthly subscription. Don't hesitate to"," ",(0,s.jsx)(D.SC,{onClick:()=>e({type:z.Z7,payload:{showing:!0,forceOpen:!0}}),children:"chat with our customer success team"}
1)," ","if you have any questions about pricing."]})})},eT=e=>{var{search:n}=e,i=(0,l.useSelector)(e=>e.app.business.name),{loading:r,error:o,data:h}=(0,ey.A)({query:x.kn,variables:{business:i,search:n?n.toLowerCase():""},processor:e=>e.locations}),[g]=(0,eC.A)(x.GE,{successMessage:"Location duplicated successfully",errorMessage:"Error duplicating location"}),[f]=(0,eC.A)(x.U3,{successMessage:null,errorMessage:null}),[v,j]=(0,a.useState)(),[y,b]=(0,a.useState)();return o?(0,s.jsxs)(u.A,{className:"alert alert-danger alert-bordered",children:[(0,s.jsx)("strong",{children:"Error"}),"Unable to access data - Networking problem?"]}):r?(0,s.jsx)(p.A,{}):(0,s.jsxs)("div",{className:"location-widget",children:[v&&(0,s.jsx)(m.A,{isOpen:!!v,toggle:()=>j(void 0),onConfirmation:(0,eA.A)()?()=>{let e;return e=v.id,(0,t._)(function*(){var{data:n,errors:t}=yield f({variables:{business:i,id:e},refetchQueries:()=>[{query:x.kn,variables:{business:i,search:""}}]});return t?(0,d.Fk)(t):"ok"===n.deleteLocation.status?(0,c.me)({htmlId:"locationDeleted",title:"Location deleted",status:"info",position:"tr",dismissible:!0,dismissAfter:1500}):(0,c.me)({htmlId:"locationDeletedError",title:"Error Deleting Location",message:n.deleteLocation.error,status:"danger",position:"tr",dismissible:!0,dismissAfter:1500}),n.deleteLocation.status})()}:null,confirmationButtonTitle:(0,eA.A)()?"Delete":"Please contact support",title:v&&"Remove ".concat(v.name),message:eN,size:"lg"}),y&&(0,s.jsx)(m.A,{isOpen:!!y,toggle:()=>b(void 0),onConfirmation:()=>{g({variables:{business:i,id:y.id},refetchQueries:()=>[{query:x.kn,variables:{business:i,search:""}}]}),b(void 0)},message:"Are you sure you want to a new location and duplicate ".concat(y.name,"?"),title:"duplicate ".concat(y.name," ?"),size:"lg"}),(0,s.jsx)("ul",{className:"list-unstyled",children:(null==h?void 0:h.length)>0&&h.slice().sort(ew).map((e,n)=>(0,s.jsx)(ej,{index:n,location:e,updateLocation:()=>(0,eb.gT)(e.id),removeLocation:()=>j(e),duplicateLocation:()=>b(e)},e.id))}),(0,s.jsx)(eR,{})]})};eT.defaultProps={search:""},eT.propTypes={search:o().string};var e_=eT},94362:function(e,n,i){i.d(n,{A:function(){return s}});var t=i(74848);i(96540);var s=e=>{var{className:n,children:i}=e;return(0,t.jsx)("div",{className:n,role:"alert",children:i})}}}]); 2//# sourceMappingURL=18140.006123fe.js.map
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.