1import{a as L}from"./chunk-Z5BKUGWJ.js";import{b as Te}from"./chunk-IHNUXK3E.js";import{b as j}from"./chunk-CORZCAHW.js";import{a as Pe,b as De}from"./chunk-4K25O5BQ.js";import"./chunk-AFIILZII.js";import"./chunk-UETZVRR3.js";import{a as Ce}from"./chunk-TOWAWL3V.js";import"./chunk-7JYLXVZE.js";import"./chunk-ODJRAIXF.js";import"./chunk-ZKMF4QC3.js";import"./chunk-3O5TTJOZ.js";import"./chunk-JDKREAZL.js";import"./chunk-Q5D2J2UK.js";import{a as Y}from"./chunk-Y454BWZQ.js";import{ba as Ie,g as Ne,k as T,l as xe,m as S,n as Z,p as X,u as Ae}from"./chunk-SNZPEAKD.js";import{a as Q}from"./chunk-BVKWQ4B5.js";import{i as _e}from"./chunk-LW5KVSFS.js";import"./chunk-PVGZOUFO.js";import{b as V,f as Ee,l as Fe}from"./chunk-GPJC7KXP.js";import{c as ue,l as we}from"./chunk-2P5ATBS5.js";import{a as me}from"./chunk-PRMDPVJ5.js";import"./chunk-2GFMGOEM.js";import{$b as be,Cb as he,Gb as ge,Yb as Se,tb as ve,yb as ye}from"./chunk-VVQEEU56.js";import"./chunk-YWBWHPEZ.js";import{Z as de}from"./chunk-UCYOIBI3.js";import"./chunk-3V3PVNK2.js";import"./chunk-RB2HPUR4.js";import{C as N,D as E,F as x,G as A,H as _,I as d,K as k,R as I,S as P,X as D}from"./chunk-LV4NLFPR.js";import{W as pe}from"./chunk-EYIIS3PF.js";import{Ac as C,Bb as g,Cc as v,Fa as ie,Hb as ae,Mc as fe,N as te,Q as oe,Rc as s,Sc as F,Tc as b,Uc as le,Yb as u,_b as w,dc as y,ec as a,ed as W,fb as re,fc as r,gc as p,gd as ce,hc as R,ic as B,jc as ne,kb as n,md as q,od as $,qc as se,rd as ee,ta as K,ua as z,ub as f}from"./chunk-ELUVJUMX.js";import"./chunk-RCRYRWQM.js";import"./chunk-XNYKMX4R.js";import{a as G,i as J}from"./chunk-OUT7P5JZ.js";var Me=(()=>{class e{constructor(t,o){this.selfServeService=t,this.spaceService=o,this.selfServeService.NEXT_BUTTON_DISABLE=!1,this.selfServeService.propertyId=0,this.selfServeService.propertyData=void 0,this.spaceService.SPACE_LIST.next([])}static{this.\u0275fac=function(o){return new(o||e)(f(S),f(T))}}static{this.\u0275cmp=g({type:e,selectors:[["app-self-serve-property-about"]],decls:16,vars:0,consts:[[1,"showroom_step1_wrapper","step1_updates"],[1,"mx-1320"],[1,"row","showroom_inner"],[1,"col-4","col_left"],[1,"step1_left_sect"],[1,"left_inner_wrapper"],[1,"heading_step"],[1,"heading_step1"],[1,"text_des"],[1,"col-8","col_right"],[1,"step2_left_sect"],[1,"img_sectons"],["src","assets/images/self_serve/step1_update.webp"]],template:function(o,i){o&1&&(R(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h4",6),s(7,"Step 1"),B(),R(8,"h3",7),s(9,"Tell us about your property."),B(),R(10,"p",8),s(11,"In this step, we'll ask you to confirm the title of your Showroom, upload a cover photo and optional logo, and share a couple additional details."),B()()()(),R(12,"div",9)(13,"div",10)(14,"div",11),ne(15,"img",12),B()()()()()())},encapsulation:2})}}return e})();var ke=(e,c)=>({fix_label:e,float_label:c});function Qe(e,c){e&1&&(a(0,"span")(1,"h3",24),s(2,"First, let\u2019s confirm your Showroom name."),r(),a(3,"p",25),s(4,"This will be the title of your new site."),r()())}function Ze(e,c){e&1&&(a(0,"h3",24),s(1,"What would you like to name your new property?"),r(),a(2,"p",25),s(3,"Your property name will be displayed as the title of your Showroom site."),r())}function Xe(e,c){if(e&1&&(a(0,"small",26),s(1),a(2,"span",27),s(3),r()()),e&2){let t=v(2);n(),b(" ",t.errorService.SPECIAL_CHARACTER_NOT_ALLOWED," "),n(2),F("; / ? : @ < > # % { } | ^ ~ [ ]")}}function Ye(e,c){if(e&1&&(a(0,"small",26),s(1),r()),e&2){let t=v(2);n(),b(" ",t.errorService.ALL_CAPITALS," ")}}function je(e,c){if(e&1&&(a(0,"small",26),s(1),r()),e&2){let t=v(2);n(),b(" ",t.errorService.EMOJIS_NOT_ALLOWED," ")}}function Ke(e,c){if(e&1&&(a(0,"div",12),u(1,Xe,4,2,"small",26),u(2,Ye,2,1,"small",26),u(3,je,2,1,"small",26),r()),e&2){let t=v();n(),w(t.propertyForm.controls.name.hasError("invalidName")?1:-1),n(),w(t.propertyForm.controls.name.hasError("allCapitals")?2:-1),n(),w(t.propertyForm.controls.name.hasError("hasEmoji")?3:-1)}}function ze(e,c){if(e&1&&(a(0,"small",26),s(1),r()),e&2){let t=v(2);n(),b(" ",t.errorService.FIELD_REQUIRED," ")}}
1function qe(e,c){if(e&1&&(a(0,"small",26),s(1),r()),e&2){let t=v(2);n(),b(" ",t.errorService.MAX_LENGTH_50," ")}}function $e(e,c){if(e&1&&(a(0,"div",12),u(1,ze,2,1,"small",26),u(2,qe,2,1,"small",26),r()),e&2){let t=v();n(),w(t.propertyForm.controls.name.hasError("required")?1:-1),n(),w(t.propertyForm.controls.name.hasError("maxlength")?2:-1)}}function et(e,c){if(e&1&&(a(0,"div",18),s(1),r()),e&2){let t=v();n(),b("",t.propertyName.length,"/50")}}function tt(e,c){if(e&1&&(a(0,"div",31)(1,"span"),s(2),r()()),e&2){let t=c.$implicit;n(2),F(t.name)}}function ot(e,c){if(e&1&&(a(0,"div",32)(1,"div"),s(2),q(3,"applyFn"),r()()),e&2){let t=v(2);n(2),F($(3,1,t.selectedUsers(),t.randomService.returnCommaSeparatedStrings))}}function it(e,c){if(e&1&&(a(0,"span",30),s(1),r()),e&2){let t,o=v(2);n(),F((t=o.propertyForm.get("userAccess"))==null?null:t.value.length)}}function rt(e,c){if(e&1){let t=se();a(0,"div",19)(1,"label",11),s(2,"User access"),r(),a(3,"div",12)(4,"div",28)(5,"p-multiSelect",29,0),C("onChange",function(i){K(t);let l=v();return z(l.userAccessChangeEventHandler(i))})("onPanelHide",function(){K(t);let i=fe(6);return z(i.el.nativeElement.classList.remove("p-inputwrapper-focus"))}),ae(7,tt,3,1,"ng-template",null,1,ee)(9,ot,4,4,"ng-template",null,2,ee),r(),u(11,it,2,1,"span",30),r()()()}if(e&2){let t,o=v();n(5),y("options",o.allUserOptions)("group",!0)("autofocusFilter",!1)("resetFilterOnHide",!0)("showClear",!1),n(6),w(((t=o.propertyForm.get("userAccess"))==null?null:t.value.length)>0?11:-1)}}var He=(()=>{class e{constructor(t,o,i,l,m,h,H){this.selfServeService=t,this.errorService=o,this.toastService=i,this.managementApiService=l,this.propertySelectionService=m,this.spaceService=h,this.randomService=H,this.showroomBaseURL=me.showroomBaseURL,this.propertyForm=new _({name:new d("",[E.required,E.maxLength(50),V.allCapitalLetters,V.emojisNotAllowed,V.noWhiteSpace]),showroomName:new d("",[E.required]),companyId:new d(0,[E.required]),userAccess:new d([],[V.arrayLength0Validator])}),this.allUserOptions=[],this.allUsersList=[],this.showDropdownForUserAccess=!1,this.isFocused=!1,this.selectedUsers=ie(["Select"]),this.generateNewShowroomName=Fe,this.propertyFormSubscription=this.propertyForm.statusChanges.subscribe({next:U=>{this.selfServeService.NEXT_BUTTON_DISABLE=U!=="VALID",this.selfServeService.NEXT_BUTTON_DISABLE||(this.selfServeService.newPropertySetup=this.propertyForm.getRawValue())}}),this.showroomNameSubscription=this.propertyForm.get("name")?.valueChanges.subscribe({next:U=>{this.selfServeService.showroomSetup.showroomName=U,this.selfServeService.propertyId===-1&&this.propertyForm.patchValue({showroomName:U})}})}ngOnInit(){return J(this,null,function*(){if(this.selfServeService.NEXT_BUTTON_DISABLE=!0,this.selectedUsersSubscription=this.propertyForm.get("userAccess")?.valueChanges.subscribe({next:t=>{this.selectedUsers.set(this.managementApiService.userAccessChangeEventHandler(t,this.allUsersList))}}),this.selfServeService.propertyId===-1){let t=this.selfServeService.USER_DATA.getValue();t&&(this.allUsersList=t?.allUsersList,this.allUserOptions=t?.allUserOptions,this.showDropdownForUserAccess=t?.showDropdownForUserAccess,this.propertyForm.patchValue({companyId:this.propertySelectionService.selectedCompanyInformation.getValue().companyId,userAccess:t?.userAdmin}))}else this.propertyForm.controls.showroomName.clearValidators(),this.propertyForm.controls.showroomName.updateValueAndValidity(),this.propertyForm.controls.companyId.clearValidators(),this.propertyForm.controls.companyId.updateValueAndValidity(),this.propertyForm.controls.userAccess.clearValidators(),this.propertyForm.controls.userAccess.updateValueAndValidity(),this.propertyForm.patchValue({name:this.selfServeService.showroomSetup.showroomName?this.selfServeService.showroomSetup.showroomName:this.selfServeService.showroomSetup.name}),this.propertyForm.markAllAsTouched(),this.propertyForm.controls.name.markAsDirty();this.spaceService.SPACE_LIST.getValue().length===0&&this.selfServeService.propertyId!==-1&&(yield this.spaceService.updateSpaceList(this.selfServeService.propertyId).catch(t=>{console.log(t)}))})}returnSelectedItemsLabel(t){if(t.length==0)return"Select";let o=[],i=this.allUsersList.filter(h=>h.roleType=="member"&&t.indexOf(h.id)!=-1).sort((h,H)=>h.name.toLowerCase()<H.name.toLowerCase()?-1:1);o=[...o,...i];let l=this.allUsersList.filter(h=>h.roleType!=="member"&&t.indexOf(h.id)!=-1).sort((h,H)=>h.name.toLowerCase()<H.name.toLowerCase()?-1:1);return o=[...o,...l],o.map(h=>h.name).filter(h=>h!="").join(", ")}get propertyName(){return this.propertyForm.getRawValue().name}ngOnDestroy(){this.propertyFormSubscription?.unsubscribe(),this.showroomNameSubscription?.unsubscribe(),this.selectedUsersSubscription?.unsubscribe()}onFocusHandler(t){this.isFocused=t}userAccessChangeEventHandler(t){this.propertyForm.get("userAccess")?.setValue(t.value)}get isNewProperty(){return this.selfServeService.propertyId==-1}get placeHolderText(){return this.isNewProperty?"Property Name":"Showroom Name"}static{this.\u0275fac=function(o){return new(o||e)(f(S),f(Y),f(Q),f(xe),f(Ne),f(T),f(Z))}}static{this.\u0275cmp=g({type:e,selectors:[["app-self-serve-property-name"]],decls:30,vars:19,consts:[["pMultiDropDown2",""],["group",""],["selecteditems",""],[1,"showroom_name_wrapper"],[1,"mx-1320"],[1,"row"],[1,"col-6","align-self-center","custom_size"],[1,"content_ui"],[1,"form_wrapper","inner_float_group",3,"formGroup"],[1,"form_group","new_prop_wrap",3,"ngClass"],["
1id","propertyName-input-field","type","text","appPropertyName","","formControlName","name",1,"form-control","custom-input-1",3,"focusin","focusout","maxLength","isLengthOnly","placeholder"],[1,"float_label_txt"],[1,"fg-inner"],[1,"error_msg_ui"],[1,"info_sec"],[1,"left_sec","minoan_credit_tooltip","showroom_prop_tooltip"],["tooltipClass","minoan_credit_tooltip","placement","top","ngbTooltip","Your Showroom URL won't be live until you finish set up and publish.",1,"icon"],["src","assets/images/self_serve/info-circle.svg","alt","icon"],[1,"character_count"],[1,"form-group","new_property_wrapper","fix_label"],[1,"col-6","align-self-center","fix_col"],[1,"preview_wrapper"],[1,"simulator_wrapper"],["src","assets/images/self_serve/simulator.webp","alt",""],[1,"heading"],[1,"subtitle"],[1,"error-1"],[1,"character_ui"],[1,"multiselect-ui-outer","multiselect_group_by"],["id","userAccess-add","appendTo","body","formControlName","userAccess","panelStyleClass","showroom_prop_drop","defaultLabel","Select ","filterPlaceHolder","Search","optionLabel","name","optionValue","id","inputId","userAccess-add","optionDisabled","isOptionDisabled","placeholder","Select",1,"multiSelectDropdown",3,"onChange","onPanelHide","options","group","autofocusFilter","resetFilterOnHide","showClear"],[1,"multi-select-count"],[1,"flex","align-items-center"],[1,"country-item"]],template:function(o,i){o&1&&(a(0,"section",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),u(5,Qe,5,0,"span")(6,Ze,4,0),a(7,"div",8)(8,"div",9)(9,"input",10),C("focusin",function(){return i.onFocusHandler(!0)})("focusout",function(){return i.onFocusHandler(!1)}),r(),a(10,"label",11),s(11),r(),a(12,"div",12)(13,"div",13),u(14,Ke,4,3,"div",12),u(15,$e,3,2,"div",12),r()()(),a(16,"div",14)(17,"div",15)(18,"i",16),p(19,"img",17),r(),a(20,"p"),s(21),q(22,"replaceHttps"),r()(),u(23,et,2,1,"div",18),r(),u(24,rt,12,6,"div",19),r()()(),a(25,"div",20)(26,"div",21)(27,"div",22),p(28,"img",23),r(),p(29,"app-tab-display"),r()()()()()),o&2&&(n(5),w(i.selfServeService.propertyId!=-1?5:6),n(2),y("formGroup",i.propertyForm),n(),y("ngClass",ce(16,ke,!i.isNewProperty,i.isNewProperty)),n(),y("maxLength",50)("isLengthOnly",!0)("placeholder",i.placeHolderText),n(2),b(" ",i.placeHolderText," "),n(3),w(i.propertyForm.controls.name.invalid&&i.propertyForm.controls.name.dirty&&!(i.propertyForm.controls.name.hasError("required")||i.propertyForm.controls.name.hasError("maxlength"))?14:-1),n(),w(i.propertyForm.controls.name.invalid&&i.propertyForm.controls.name.touched?15:-1),n(6),le("",$(22,13,i.showroomBaseURL,!0),"/shop/",i.propertyName?i.generateNewShowroomName(i.propertyName):"showroom-name"),n(2),w(i.isFocused?23:-1),n(),w(i.showDropdownForUserAccess&&i.selfServeService.propertyId==-1?24:-1))},dependencies:[D,N,x,A,P,I,De,Pe,L,pe,ge,be,Se],styles:[`@charset "UTF-8";[_ngcontent-%COMP%]:root{--text-title: #343A40;--text-primary: #212529;--text-secondary: #495057;--text-tertiary: #6C757D;--text-subtle: #989EA4;--text-placeholder: #ADB5BD;--text-white: #FFFFFF;--text-teal: #006878;--text-light-teal: #5592A0;--text-success: #29BE83;--text-error: #E53935;--stroke-container: #E9ECEF;--stroke-divider: #DEE2E6;--stroke-pipe: #CED4DA;--surface-white: #FFFFFF;--surface-gray-bg: #F8F9FA;--surface-gray-container: #F4F5F7;--surface-cream-bg: #F8F6F3;--surface-orange-bg: #FEF1EC;--surface-teal-bg: #E4EFF1;--surface-teal-highlight: #EDF5F6;--surface-success: #E3FFF5;--surface-error: #FDE7E7;--overlay-light: rgba(255, 255, 255, .88);--overlay-dark: rgba(40, 49, 58, .6);--overlay-shadow: rgba(52, 58, 64, .25);--icon-success: #3ED29F;--icon-error: #E53935;--chip-light-gray: #E9ECEF;--chip-dark-gray: #DEE2E6;--chip-blue: #DDEAFD;--chip-yellow: #F7F4CB;--chip-orange: #F9E5E0;--chip-green: #CFF4E7;--chip-red: #FACFD1;--badge-chartreuse: #EBEE98;--badge-orange: #E37B6F;--badge-blue: #303E62;--badge-teal: #006878;--badge-gray: #141619;--button-primary-default: #DC5A4B;--button-primary-hover: #C65144;--button-primary-disabled: #F9E5E0;--button-tertiary-default: #495057;--button-tertiary-hover: #141619;--button-tertiary-disabled: #CED4DA}[_ngcontent-%COMP%]:root{--helvetica700: "Helvetica Neue";--helvetica500: "Helvetica Neue";--tooltip: #292929}@font-face{font-family:Helvetica Neue md;
1src:url("./media/HelveticaNeue-Medium-11.3544c501d5c407fcb906-YHQ2JVPB.ttf");font-style:normal;font-display:swap}@font-face{font-family:"Helvetica Neue 700";src:url("./media/helvetica-700-QDJUGAWU.woff2") format("woff2"),url("./media/helvetica-700-A2N76XUD.woff") format("woff");font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/ec6281a0-c9c4-4477-a360-156acd53093f-L7XNZR2S.woff2") format("woff2"),url("./media/11066b40-10f7-4123-ba58-d9cbf5e89ceb-6UD55IIK.woff") format("woff");font-weight:100;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/2707a251-2d32-4bb6-a3c4-87114ba2365f-QT6DQ7JJ.woff2") format("woff2"),url("./media/40f50724-486b-4e7b-9366-237e06eabfc8-MIERV5GE.woff") format("woff");font-weight:100;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/7d63ccf8-e0ae-4dee-ad4d-bbc798aa5803-CERSOHL2.woff2") format("woff2"),url("./media/b2c1327f-ab3d-4230-93d7-eee8596e1498-LAMEU5HR.woff") format("woff");font-weight:200;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/2a7e8f89-c0b2-4334-9c34-7a2078d2b959-6KT34QE3.woff2") format("woff2"),url("./media/32aad9d8-5fec-4b9d-ad53-4cf7a5b53698-FBR2Z6EB.woff") format("woff");font-weight:200;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/f9c5199e-a996-4c08-9042-1eb845bb7495-H6VZ4LTO.woff2") format("woff2"),url("./media/2a34f1f8-d701-4949-b12d-133c1c2636eb-QHSRRKRF.woff") format("woff");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/5e4f385b-17ff-4d27-a63a-9ee28546c9a8-R7JUJYMM.woff2") format("woff2"),url("./media/116cde47-4a07-44a5-9fac-cbdcc1f14f79-6FYFQYK3.woff") format("woff");font-weight:300;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/08b57253-2e0d-4c12-9c57-107f6c67bc49-HA3FA56E.woff2") format("woff2"),url("./media/08edde9d-c27b-4731-a27f-d6cd9b01cd06-IJMM4SBZ.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/4bd56f95-e7ab-4a32-91fd-b8704cbd38bc-ESKLKBF7.woff2") format("woff2"),url("./media/4fe1c328-1f21-434a-8f0d-5e0cf6c70dfb-NG2JG4CB.woff") format("woff");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/helveticaneueltpro-md-webfont-GRL2R64C.woff2") format("woff2"),url("./media/helveticaneueltpro-md-webfont-32KNKINJ.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/de68be2a-5d0e-4b8d-b3eb-940f75503e2a-WV7Z3QGR.woff2") format("woff2"),url("./media/31029e78-79a0-4940-b82d-2e3c238e1355-AVTI435I.woff") format("woff");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/800da3b0-675f-465f-892d-d76cecbdd5b1-YETWVZGC.woff2") format("woff2"),url("./media/7b415a05-784a-4a4c-8c94-67e9288312f5-Q3PK3CJN.woff") format("woff");font-weight:700;font-style:normal;font-display:swap;line-gap-override:0%;descent-override:0%}@font-face{font-family:Helvetica Neue;src:url("./media/13ab58b4-b5ba-4c95-afde-ab2608fbbbd9-G5WSHAR2.woff2") format("woff2"),url("./media/5018b5b5-c821-4653-bc74-d0b11d735f1a-7IR3SFSS.woff") format("woff");font-weight:700;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/02980b3d-1e37-4378-a5c6-4cf0d6ce0ba5-3MNJ2XSE.woff2") format("woff2"),url("./media/2d1e8a5f-eb7a-47a1-be1d-878bb9a46b6e-ONNIZ4WB.woff") format("woff");font-weight:800;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/f2f49a5e-567d-4dfa-8152-c28c8f60c84e-3LNATTO2.woff2") format("woff2"),url("./media/ea7ce364-9de4-43c3-9b0b-7b26af453629-XAMARXJV.woff") format("woff");font-weight:900;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stdlight;src:url("./media/souvenirstd-light-webfont-DBUCYA2D.woff2") format("woff2"),url("./media/souvenirstd-light-webfont-CYLSBSJL.woff") format("woff");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stdlight_italic;
1src:url("./media/souvenirstd-lightitalic-webfont-EMC6CXF5.woff2") format("woff2"),url("./media/souvenirstd-lightitalic-webfont-ZO27VSC2.woff") format("woff");font-weight:300;font-style:italic;font-display:swap}@font-face{font-family:itc_souvenir_stdmedium;src:url("./media/souvenirstd-medium-webfont-IMJF63QE.woff2") format("woff2"),url("./media/souvenirstd-medium-webfont-JWJWSQGZ.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stdmedium_italic;src:url("./media/souvenirstd-mediumitalic-webfont-2DVQ4SGW.woff2") format("woff2"),url("./media/souvenirstd-mediumitalic-webfont-L4OBO4PN.woff") format("woff");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:itc_souvenir_stddemi;src:url("./media/souvenirstd-demi-webfont-RJ5WBS7M.woff2") format("woff2"),url("./media/souvenirstd-demi-webfont-646BWQ5O.woff") format("woff");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stddemi_italic;src:url("./media/souvenirstd-demiitalic-webfont-YZ4532YM.woff2") format("woff2"),url("./media/souvenirstd-demiitalic-webfont-TVWPRJFB.woff") format("woff");font-weight:600;font-style:italic;font-display:swap}@font-face{font-family:itc_souvenir_stdbold;src:url("./media/souvenirstd-bold-webfont-MF7LWXL3.woff2") format("woff2"),url("./media/souvenirstd-bold-webfont-IZTVSZLN.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stdbold_italic;src:url("./media/souvenirstd-bolditalic-webfont-FMGOMDWA.woff2") format("woff2"),url("./media/souvenirstd-bolditalic-webfont-6IIWPAHJ.woff") format("woff");font-weight:700;font-style:italic;font-display:swap}.icons[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.icons[_ngcontent-%COMP%]:before{content:"";background-repeat:no-repeat}@keyframes _ngcontent-%COMP%_ripple{0%{opacity:0}50%{opacity:1}to{opacity:0}}.showroom_name_wrapper[_ngcontent-%COMP%]{padding-top:27.71px}.showroom_name_wrapper[_ngcontent-%COMP%] .custom-input-1[_ngcontent-%COMP%]{padding:0 24px;width:605px}@media(max-width:1200px){.showroom_name_wrapper[_ngcontent-%COMP%] .content-ui[_ngcontent-%COMP%]{width:605px}}.new_prop_wrap[_ngcontent-%COMP%]{position:relative}.new_prop_wrap[_ngcontent-%COMP%] .error_msg_ui[_ngcontent-%COMP%]{top:114px!important}.error_msg_ui[_ngcontent-%COMP%]{margin-top:10px}.error_msg_ui[_ngcontent-%COMP%] .error-1[_ngcontent-%COMP%]{font-size:1rem;font-family:Helvetica Neue,serif;font-weight:400;font-style:normal;line-height:26px;text-align:left}.error_msg_ui[_ngcontent-%COMP%] .character_ui[_ngcontent-%COMP%]{display:block}.showroom_name_wrapper[_ngcontent-%COMP%] .custom_size[_ngcontent-%COMP%]{width:635px}.showroom_name_wrapper[_ngcontent-%COMP%] .fix_col[_ngcontent-%COMP%]{flex:1} 2/*# sourceMappingURL=self-serve-property-name.component-AZYPVRHG.css.map */`]})}}return e})();var at=()=>({message:"Accepted file types include JPG, PNG, WEBP & HEIC.",size:"Maximum file size is 30MB."}),Re=(()=>{class e{constructor(t,o){this.selfServeService=t,this.spaceService=o,this.IMAGE_ACCEPTED_FORMATS=Ae,this.isEditCoverImage=!1,this.homePageImageForm=new _({landingImage:new d("",[E.required])}),this.selfServeService.NEXT_BUTTON_DISABLE=!0,this.homePageImageFormSubscription=this.homePageImageForm.statusChanges.subscribe({next:i=>{this.selfServeService.NEXT_BUTTON_DISABLE=i!=="VALID"}})}ngOnInit(){return J(this,null,function*(){this.homePageImageForm.patchValue({landingImage:this.selfServeService.showroomSetup.landingImage}),this.spaceService.SPACE_LIST.getValue().length===0&&(yield this.spaceService.updateSpaceList(this.selfServeService.propertyId).catch(t=>{console.log(t)}))})}editCoverImage(){this.isEditCoverImage=!this.isEditCoverImage}onFileUpdate(t){this.homePageImageForm.patchValue({landingImage:t}),this.isEditCoverImage=!1,this.selfServeService.showroomSetup.landingImage=this.landingImage}get landingImage(){return this.homePageImageForm.getRawValue().landingImage}ngOnDestroy(){this.homePageImageFormSubscription?.unsubscribe()}static{this.\u0275fac=function(o){return new(o||e)(f(S),f(T))}}static{this.\u0275cmp=g({type:e,selectors:[["app-self-serve-property-cover"]],decls:15,vars:5,consts:[[1,"showroom_name_wrapper"],[1,"mx-1320"],[1,"row"],[1,"col-5","upload_cover","align-self-center"],[1,"content_ui"],[1,"heading"],[1,"subtitle"],[3,"fileUpdated","acceptedFormats","selectedImage","isEdit","isImageDesc"],[1,"col-6","fix_col","align-self-center"],[1,"preview_wrapper"],[1,"simulator_wrapper"],["src","assets/images/self_serve/simulator.webp","alt",""]],template:function(o,i){o&1&&(a(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h3",5),s(6,"
2Next, let\u2019s upload your cover image."),r(),a(7,"p",6),s(8,"We recommend using the property image that's most prominent on your booking site."),r(),a(9,"app-file-selector",7),C("fileUpdated",function(m){return i.onFileUpdate(m)}),r()()(),a(10,"div",8)(11,"div",9)(12,"div",10),p(13,"img",11),r(),p(14,"app-tab-display"),r()()()()()),o&2&&(n(9),y("acceptedFormats",i.IMAGE_ACCEPTED_FORMATS)("selectedImage",i.landingImage)("isEdit",i.isEditCoverImage)("isImageDesc",W(4,at)))},dependencies:[j,L],styles:[`@charset "UTF-8";[_ngcontent-%COMP%]:root{--text-title: #343A40;--text-primary: #212529;--text-secondary: #495057;--text-tertiary: #6C757D;--text-subtle: #989EA4;--text-placeholder: #ADB5BD;--text-white: #FFFFFF;--text-teal: #006878;--text-light-teal: #5592A0;--text-success: #29BE83;--text-error: #E53935;--stroke-container: #E9ECEF;--stroke-divider: #DEE2E6;--stroke-pipe: #CED4DA;--surface-white: #FFFFFF;--surface-gray-bg: #F8F9FA;--surface-gray-container: #F4F5F7;--surface-cream-bg: #F8F6F3;--surface-orange-bg: #FEF1EC;--surface-teal-bg: #E4EFF1;--surface-teal-highlight: #EDF5F6;--surface-success: #E3FFF5;--surface-error: #FDE7E7;--overlay-light: rgba(255, 255, 255, .88);--overlay-dark: rgba(40, 49, 58, .6);--overlay-shadow: rgba(52, 58, 64, .25);--icon-success: #3ED29F;--icon-error: #E53935;--chip-light-gray: #E9ECEF;--chip-dark-gray: #DEE2E6;--chip-blue: #DDEAFD;--chip-yellow: #F7F4CB;--chip-orange: #F9E5E0;--chip-green: #CFF4E7;--chip-red: #FACFD1;--badge-chartreuse: #EBEE98;--badge-orange: #E37B6F;--badge-blue: #303E62;--badge-teal: #006878;--badge-gray: #141619;--button-primary-default: #DC5A4B;--button-primary-hover: #C65144;--button-primary-disabled: #F9E5E0;--button-tertiary-default: #495057;--button-tertiary-hover: #141619;--button-tertiary-disabled: #CED4DA}[_ngcontent-%COMP%]:root{--helvetica700: "Helvetica Neue";--helvetica500: "Helvetica Neue";--tooltip: #292929}@font-face{font-family:Helvetica Neue md;src:url("./media/HelveticaNeue-Medium-11.3544c501d5c407fcb906-YHQ2JVPB.ttf");font-style:normal;font-display:swap}@font-face{font-family:"Helvetica Neue 700";src:url("./media/helvetica-700-QDJUGAWU.woff2") format("woff2"),url("./media/helvetica-700-A2N76XUD.woff") format("woff");font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/ec6281a0-c9c4-4477-a360-156acd53093f-L7XNZR2S.woff2") format("woff2"),url("./media/11066b40-10f7-4123-ba58-d9cbf5e89ceb-6UD55IIK.woff") format("woff");font-weight:100;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/2707a251-2d32-4bb6-a3c4-87114ba2365f-QT6DQ7JJ.woff2") format("woff2"),url("./media/40f50724-486b-4e7b-9366-237e06eabfc8-MIERV5GE.woff") format("woff");font-weight:100;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/7d63ccf8-e0ae-4dee-ad4d-bbc798aa5803-CERSOHL2.woff2") format("woff2"),url("./media/b2c1327f-ab3d-4230-93d7-eee8596e1498-LAMEU5HR.woff") format("woff");font-weight:200;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/2a7e8f89-c0b2-4334-9c34-7a2078d2b959-6KT34QE3.woff2") format("woff2"),url("./media/32aad9d8-5fec-4b9d-ad53-4cf7a5b53698-FBR2Z6EB.woff") format("woff");font-weight:200;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/f9c5199e-a996-4c08-9042-1eb845bb7495-H6VZ4LTO.woff2") format("woff2"),url("./media/2a34f1f8-d701-4949-b12d-133c1c2636eb-QHSRRKRF.woff") format("woff");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/5e4f385b-17ff-4d27-a63a-9ee28546c9a8-R7JUJYMM.woff2") format("woff2"),url("./media/116cde47-4a07-44a5-9fac-cbdcc1f14f79-6FYFQYK3.woff") format("woff");font-weight:300;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/08b57253-2e0d-4c12-9c57-107f6c67bc49-HA3FA56E.woff2") format("woff2"),url("./media/08edde9d-c27b-4731-a27f-d6cd9b01cd06-IJMM4SBZ.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/4bd56f95-e7ab-4a32-91fd-b8704cbd38bc-ESKLKBF7.woff2") format("woff2"),url("./media/4fe1c328-1f21-434a-8f0d-5e0cf6c70dfb-NG2JG4CB.woff") format("woff");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/helveticaneueltpro-md-webfont-GRL2R64C.woff2") format("woff2"),url("./media/helveticaneueltpro-md-webfont-32KNKINJ.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/de68be2a-5d0e-4b8d-b3eb-940f75503e2a-WV7Z3QGR.woff2") format("woff2"),url("./media/31029e78-79a0-4940-b82d-2e3c238e1355-AVTI435I.woff") format("woff");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/800da3b0-675f-465f-892d-d76cecbdd5b1-YETWVZGC.woff2") format("woff2"),url("./media/7b415a05-784a-4a4c-8c94-6
27e9288312f5-Q3PK3CJN.woff") format("woff");font-weight:700;font-style:normal;font-display:swap;line-gap-override:0%;descent-override:0%}@font-face{font-family:Helvetica Neue;src:url("./media/13ab58b4-b5ba-4c95-afde-ab2608fbbbd9-G5WSHAR2.woff2") format("woff2"),url("./media/5018b5b5-c821-4653-bc74-d0b11d735f1a-7IR3SFSS.woff") format("woff");font-weight:700;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/02980b3d-1e37-4378-a5c6-4cf0d6ce0ba5-3MNJ2XSE.woff2") format("woff2"),url("./media/2d1e8a5f-eb7a-47a1-be1d-878bb9a46b6e-ONNIZ4WB.woff") format("woff");font-weight:800;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/f2f49a5e-567d-4dfa-8152-c28c8f60c84e-3LNATTO2.woff2") format("woff2"),url("./media/ea7ce364-9de4-43c3-9b0b-7b26af453629-XAMARXJV.woff") format("woff");font-weight:900;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stdlight;src:url("./media/souvenirstd-light-webfont-DBUCYA2D.woff2") format("woff2"),url("./media/souvenirstd-light-webfont-CYLSBSJL.woff") format("woff");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stdlight_italic;src:url("./media/souvenirstd-lightitalic-webfont-EMC6CXF5.woff2") format("woff2"),url("./media/souvenirstd-lightitalic-webfont-ZO27VSC2.woff") format("woff");font-weight:300;font-style:italic;font-display:swap}@font-face{font-family:itc_souvenir_stdmedium;src:url("./media/souvenirstd-medium-webfont-IMJF63QE.woff2") format("woff2"),url("./media/souvenirstd-medium-webfont-JWJWSQGZ.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stdmedium_italic;src:url("./media/souvenirstd-mediumitalic-webfont-2DVQ4SGW.woff2") format("woff2"),url("./media/souvenirstd-mediumitalic-webfont-L4OBO4PN.woff") format("woff");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:itc_souvenir_stddemi;src:url("./media/souvenirstd-demi-webfont-RJ5WBS7M.woff2") format("woff2"),url("./media/souvenirstd-demi-webfont-646BWQ5O.woff") format("woff");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stddemi_italic;src:url("./media/souvenirstd-demiitalic-webfont-YZ4532YM.woff2") format("woff2"),url("./media/souvenirstd-demiitalic-webfont-TVWPRJFB.woff") format("woff");font-weight:600;font-style:italic;font-display:swap}@font-face{font-family:itc_souvenir_stdbold;src:url("./media/souvenirstd-bold-webfont-MF7LWXL3.woff2") format("woff2"),url("./media/souvenirstd-bold-webfont-IZTVSZLN.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stdbold_italic;src:url("./media/souvenirstd-bolditalic-webfont-FMGOMDWA.woff2") format("woff2"),url("./media/souvenirstd-bolditalic-webfont-6IIWPAHJ.woff") format("woff");font-weight:700;font-style:italic;font-display:swap}.icons[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.icons[_ngcontent-%COMP%]:before{content:"";background-repeat:no-repeat}@keyframes _ngcontent-%COMP%_ripple{0%{opacity:0}50%{opacity:1}to{opacity:0}}.showroom_name_wrapper[_ngcontent-%COMP%] .upload_cover[_ngcontent-%COMP%]{width:490px}.showroom_name_wrapper[_ngcontent-%COMP%] .fix_col[_ngcontent-%COMP%]{flex:1} 3/*# sourceMappingURL=self-serve-property-cover.component-5VEV7RSH.css.map */`]})}}return e})();var st=()=>({message:"Accepted file types include PNG, JPG, or SVG.",size:"Maximum file size is 30MB."}),Be=(()=>{class e{constructor(t,o){this.selfServeService=t,this.amplitudeService=o,this.IMAGE_ACCEPTED_FORMATS=["jpg","jpeg","png","svg"],this.isEditLogo=!1,this.logoForm=new _({logo:new d("")}),this.logoFormSubscription=this.logoForm.statusChanges.subscribe({next:i=>{this.selfServeService.NEXT_BUTTON_DISABLE=i!=="VALID"}})}ngOnInit(){this.selfServeService.NEXT_BUTTON_DISABLE=!1,this.logoForm.patchValue({logo:this.selfServeService.showroomSetup.logo})}editLogo(){this.isEditLogo=!this.isEditLogo}onFileUpdate(t){this.logoForm.patchValue({logo:t}),this.isEditLogo=!1,this.selfServeService.showroomSetup.logo=this.logo,this.amplitudeService.trackEvent("showroom_property_logo_upload",this.selfServeService.userPropertyAccountId)}get logo(){return this.logoForm.getRawValue().logo}ngOnDestroy(){this.logoFormSubscription?.unsubscribe()}static{this.\u0275fac=function(o){return new(o||e)(f(S),f(X))}}static{this.\u0275cmp=g({type:e,selectors:[["app-self-serve-property-logo"]],decls:15,vars:6,consts:[[1,"showroom_name_wrapper"],[1,"mx-1320"],[1,"row"],[1,"col-md-7","align-self-center","property_logo_box"],[1,"content_ui"],[1,"heading"],[1,"subtitle"],["cropperType","logo",3,"fileUpdated","acceptedFormats","selectedImage","isEdit","isImageDesc"],[1,"col-md-5","align-self-center","fix_col"],[1,"preview_wrapper"],[1,"simulator_wrapper"],["src","assets/images/self_serve/simulator-logo.webp","alt",""],[3,"isLogoPage"]],template:function(o,i){o&1&&(a(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h3",5),s(6,"Would you like to upload a property logo?"),r(),a(7,"p",6),s(8,"An image with a white or transparent background will look best. "),r(),a(9,"app-file-selector",7),C("fileUpdated",function(m){return i.onFileUpdate(m)}),r()()(),a(10,"div",8)(11,"div",9)(12,"div",10),p(13,"img",11),r(),p(14,"app-tab-display",12),r()()()()()),o&2&&(n(9),y("acceptedFormats",i.IMAGE_ACCEPTED_FORMATS)("selectedImage",i.logo)("isEdit",i.isEditLogo)("isImageDesc",W(5,st)),n(5),y("isLogoPage",!0))},dependencies:[j,L],styles:[`@charset "UTF-8";[_ngcontent-%COMP%]:root{--text-title: #343A40;--text-primary: #212529;--text-secondary: #495057;--text-tertiary: #6C757D;--text-subtle: #989EA4;--text-placeholder: #ADB5BD;--text-white: #FFFFFF;--text-teal: #006878;--text-light-teal: #5592A0;--text-success: #29BE83;--text-error: #E53935;--stroke-container: #E9ECEF;
3--stroke-divider: #DEE2E6;--stroke-pipe: #CED4DA;--surface-white: #FFFFFF;--surface-gray-bg: #F8F9FA;--surface-gray-container: #F4F5F7;--surface-cream-bg: #F8F6F3;--surface-orange-bg: #FEF1EC;--surface-teal-bg: #E4EFF1;--surface-teal-highlight: #EDF5F6;--surface-success: #E3FFF5;--surface-error: #FDE7E7;--overlay-light: rgba(255, 255, 255, .88);--overlay-dark: rgba(40, 49, 58, .6);--overlay-shadow: rgba(52, 58, 64, .25);--icon-success: #3ED29F;--icon-error: #E53935;--chip-light-gray: #E9ECEF;--chip-dark-gray: #DEE2E6;--chip-blue: #DDEAFD;--chip-yellow: #F7F4CB;--chip-orange: #F9E5E0;--chip-green: #CFF4E7;--chip-red: #FACFD1;--badge-chartreuse: #EBEE98;--badge-orange: #E37B6F;--badge-blue: #303E62;--badge-teal: #006878;--badge-gray: #141619;--button-primary-default: #DC5A4B;--button-primary-hover: #C65144;--button-primary-disabled: #F9E5E0;--button-tertiary-default: #495057;--button-tertiary-hover: #141619;--button-tertiary-disabled: #CED4DA}[_ngcontent-%COMP%]:root{--helvetica700: "Helvetica Neue";--helvetica500: "Helvetica Neue";--tooltip: #292929}@font-face{font-family:Helvetica Neue md;src:url("./media/HelveticaNeue-Medium-11.3544c501d5c407fcb906-YHQ2JVPB.ttf");font-style:normal;font-display:swap}@font-face{font-family:"Helvetica Neue 700";src:url("./media/helvetica-700-QDJUGAWU.woff2") format("woff2"),url("./media/helvetica-700-A2N76XUD.woff") format("woff");font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/ec6281a0-c9c4-4477-a360-156acd53093f-L7XNZR2S.woff2") format("woff2"),url("./media/11066b40-10f7-4123-ba58-d9cbf5e89ceb-6UD55IIK.woff") format("woff");font-weight:100;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/2707a251-2d32-4bb6-a3c4-87114ba2365f-QT6DQ7JJ.woff2") format("woff2"),url("./media/40f50724-486b-4e7b-9366-237e06eabfc8-MIERV5GE.woff") format("woff");font-weight:100;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/7d63ccf8-e0ae-4dee-ad4d-bbc798aa5803-CERSOHL2.woff2") format("woff2"),url("./media/b2c1327f-ab3d-4230-93d7-eee8596e1498-LAMEU5HR.woff") format("woff");font-weight:200;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/2a7e8f89-c0b2-4334-9c34-7a2078d2b959-6KT34QE3.woff2") format("woff2"),url("./media/32aad9d8-5fec-4b9d-ad53-4cf7a5b53698-FBR2Z6EB.woff") format("woff");font-weight:200;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/f9c5199e-a996-4c08-9042-1eb845bb7495-H6VZ4LTO.woff2") format("woff2"),url("./media/2a34f1f8-d701-4949-b12d-133c1c2636eb-QHSRRKRF.woff") format("woff");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/5e4f385b-17ff-4d27-a63a-9ee28546c9a8-R7JUJYMM.woff2") format("woff2"),url("./media/116cde47-4a07-44a5-9fac-cbdcc1f14f79-6FYFQYK3.woff") format("woff");font-weight:300;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/08b57253-2e0d-4c12-9c57-107f6c67bc49-HA3FA56E.woff2") format("woff2"),url("./media/08edde9d-c27b-4731-a27f-d6cd9b01cd06-IJMM4SBZ.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/4bd56f95-e7ab-4a32-91fd-b8704cbd38bc-ESKLKBF7.woff2") format("woff2"),url("./media/4fe1c328-1f21-434a-8f0d-5e0cf6c70dfb-NG2JG4CB.woff") format("woff");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/helveticaneueltpro-md-webfont-GRL2R64C.woff2") format("woff2"),url("./media/helveticaneueltpro-md-webfont-32KNKINJ.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/de68be2a-5d0e-4b8d-b3eb-940f75503e2a-WV7Z3QGR.woff2") format("woff2"),url("./media/31029e78-79a0-4940-b82d-2e3c238e1355-AVTI435I.woff") format("woff");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/800da3b0-675f-465f-892d-d76cecbdd5b1-YETWVZGC.woff2") format("woff2"),url("./media/7b415a05-784a-4a4c-8c94-6
37e9288312f5-Q3PK3CJN.woff") format("woff");font-weight:700;font-style:normal;font-display:swap;line-gap-override:0%;descent-override:0%}@font-face{font-family:Helvetica Neue;src:url("./media/13ab58b4-b5ba-4c95-afde-ab2608fbbbd9-G5WSHAR2.woff2") format("woff2"),url("./media/5018b5b5-c821-4653-bc74-d0b11d735f1a-7IR3SFSS.woff") format("woff");font-weight:700;font-style:italic;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/02980b3d-1e37-4378-a5c6-4cf0d6ce0ba5-3MNJ2XSE.woff2") format("woff2"),url("./media/2d1e8a5f-eb7a-47a1-be1d-878bb9a46b6e-ONNIZ4WB.woff") format("woff");font-weight:800;font-style:normal;font-display:swap}@font-face{font-family:Helvetica Neue;src:url("./media/f2f49a5e-567d-4dfa-8152-c28c8f60c84e-3LNATTO2.woff2") format("woff2"),url("./media/ea7ce364-9de4-43c3-9b0b-7b26af453629-XAMARXJV.woff") format("woff");font-weight:900;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stdlight;src:url("./media/souvenirstd-light-webfont-DBUCYA2D.woff2") format("woff2"),url("./media/souvenirstd-light-webfont-CYLSBSJL.woff") format("woff");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stdlight_italic;src:url("./media/souvenirstd-lightitalic-webfont-EMC6CXF5.woff2") format("woff2"),url("./media/souvenirstd-lightitalic-webfont-ZO27VSC2.woff") format("woff");font-weight:300;font-style:italic;font-display:swap}@font-face{font-family:itc_souvenir_stdmedium;src:url("./media/souvenirstd-medium-webfont-IMJF63QE.woff2") format("woff2"),url("./media/souvenirstd-medium-webfont-JWJWSQGZ.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stdmedium_italic;src:url("./media/souvenirstd-mediumitalic-webfont-2DVQ4SGW.woff2") format("woff2"),url("./media/souvenirstd-mediumitalic-webfont-L4OBO4PN.woff") format("woff");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:itc_souvenir_stddemi;src:url("./media/souvenirstd-demi-webfont-RJ5WBS7M.woff2") format("woff2"),url("./media/souvenirstd-demi-webfont-646BWQ5O.woff") format("woff");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stddemi_italic;src:url("./media/souvenirstd-demiitalic-webfont-YZ4532YM.woff2") format("woff2"),url("./media/souvenirstd-demiitalic-webfont-TVWPRJFB.woff") format("woff");font-weight:600;font-style:italic;font-display:swap}@font-face{font-family:itc_souvenir_stdbold;src:url("./media/souvenirstd-bold-webfont-MF7LWXL3.woff2") format("woff2"),url("./media/souvenirstd-bold-webfont-IZTVSZLN.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:itc_souvenir_stdbold_italic;src:url("./media/souvenirstd-bolditalic-webfont-FMGOMDWA.woff2") format("woff2"),url("./media/souvenirstd-bolditalic-webfont-6IIWPAHJ.woff") format("woff");font-weight:700;font-style:italic;font-display:swap}.icons[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.icons[_ngcontent-%COMP%]:before{content:"";background-repeat:no-repeat}@keyframes _ngcontent-%COMP%_ripple{0%{opacity:0}50%{opacity:1}to{opacity:0}}.logo_content_wrapper[_ngcontent-%COMP%]{text-align:center} 4/*# sourceMappingURL=self-serve-property-logo.component-6GB2CRWI.css.map */`]})}}return e})();function ft(e,c){if(e&1&&(a(0,"small",15),s(1),r()),e&2){let t=v(2);n(),b(" ",t.errorService.URL_INVALID," ")}}function lt(e,c){if(e&1&&(a(0,"div",13),u(1,ft,2,1,"small",15),r()),e&2){let t=v();n(),w(t.propertyListingControls.url.hasError("pattern")?1:-1)}}function ct(e,c){if(e&1&&(a(0,"div",14)(1,"a",16),s(2),r()()),e&2){let t=v();n(),y("href",t.returnLinkAsHttp(t.propertyListingControls.url.value),re),n(),F(t.listingTitle)}}var Ve=(()=>{class e{constructor(t,o,i,l){this.errorService=t,this.selfServeService=o,this.cartService=i,this.randomService=l,this.propertyListingUrlForm=new _({url:new d("",[E.pattern(ue)])}),this.listingTitle="",this.returnLinkAsHttp=_e,this.propertyFormSubscription=this.propertyListingUrlForm.statusChanges.subscribe({next:m=>{this.selfServeService.NEXT_BUTTON_DISABLE=m!=="VALID"}}),this.showroomNameSubscription=this.propertyListingUrlForm.get("url")?.valueChanges.subscribe({next:m=>{this.selfServeService.showroomSetup.logoLink=m}}),this.linkPreviewSubscription=this.propertyListingUrlForm.get("url")?.valueChanges.pipe(te(500)).subscribe({next:m=>{this.propertyListingUrlForm.get("url")?.valid&&m&&m.trim()&&this.generateLinkPreview(m),(!m||!m.trim())&&(this.listingTitle="")}})}ngOnInit(){this.propertyListingUrlForm.patchValue({url:this.selfServeService.showroomSetup.logoLink})}get propertyListingControls(){return this.propertyListingUrlForm.controls}ngOnDestroy(){this.propertyFormSubscription?.unsubscribe(),this.showroomNameSubscription?.unsubscribe(),this.linkPreviewSubscription?.unsubscribe()}generateLinkPreview(t){this.cartService.scrapProductData({url:t},10).subscribe({next:o=>{let{title:i}=o;this.listingTitle=i},error:o=>{this.listingTitle="",console.log(o)}})}static{this.\u0275fac=function(o){return new(o||e)(f(Y),f(S),f(Ce),f(Z))}}static{this.\u0275cmp=g({type:e,selectors:[["app-self-serve-property-listing"]],decls:18,vars:3,consts:[[1,"showroom_listing_wrapper"],[1,"mx-1320"],[1,"row"],[1,"col-md-12","align-self-center"],[1,"content_ui","page_title_wrap"],[1,"heading"],[1,"subtitle"],[3,"formGroup"],[1,"form_field_wrapper","pt-67"],[1,"form-group","inner_float_group"],[1,"fg-inner","float_label"],["appNoWhiteSpaceNoNewLine","","appAutoSizeTextInput","","formControlName","url","placeholder","www.yourlistingurl.com",1,"form-control","custom-input-1","custom_textarea"],[1,"float_label_txt"],[1,"fg-inner"],[1,"typing_result_listing"],[1,"custom_error1"],[3,"href"]],template:function(o,i){o&1&&(a(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h3",5),s(6,"What is your property listing URL?"),r(),a(7,"p",6),s(8,"If provided, your Showroom site will link directly to your listing page."),r(),a(9,"form",7)(10,"div",8)(11,"div",9)(12,"div",10),p(13,"textarea",11),a(14,"label",12),s(15," Property listing URL "),r()(),u(16,lt,2,1,"div",13),u(17,ct,3,2,"div",14),r()()()()()()()()),o&2&&(n(9),y("formGroup",i.propertyListingUrlForm),n(7),w(i.propertyListingControls.url.touched&&i.propertyListingControls.url.invali
4d?16:-1),n(),w(i.listingTitle?17:-1))},dependencies:[D,k,N,x,A,P,I,ve,he],encapsulation:2})}}return e})();var Ue=(()=>{class e{constructor(t,o){this.selfServeService=t,this.toastService=o,this.propertyAddressForm=new _({address:new d(""),state:new d(""),stateCode:new d(""),zipCode:new d(""),city:new d(""),latitude:new d(0),longitude:new d(0)}),this.options=we,this.propertyFormSubscription=this.propertyAddressForm.statusChanges.subscribe({next:i=>{this.selfServeService.NEXT_BUTTON_DISABLE=i!=="VALID"}}),this.showroomNameSubscription=this.propertyAddressForm.valueChanges.subscribe({next:i=>{let l={address:i.address,state:i.state,stateCode:i.stateCode,zipCode:i.zipCode,city:i.city,latitude:i.latitude,longitude:i.longitude};this.selfServeService.showroomSetup=G(G({},this.selfServeService.showroomSetup),l)}})}ngOnInit(){this.propertyAddressForm.patchValue(G({},this.selfServeService.showroomSetup)),this.showroomAddressSubscription=this.propertyAddressForm.get("address")?.valueChanges.subscribe({next:t=>{(!t||t.length<=3)&&this.resetAddressesField()}})}onAddressPaste(){this.resetAddressesField()}resetAddressesField(){this.propertyAddressForm.patchValue({zipCode:"",state:"",stateCode:"",city:"",latitude:0,longitude:0})}onAutoCompleteSelect(t){let o=Ee(t),l=[o.address1,o.city,o.state_code,"USA"].filter(m=>m.trim().length>0).join(", ");this.propertyAddressForm.patchValue({address:l,state:o.state,stateCode:o.state_code,zipCode:o.zip,city:o.city,latitude:o.latitude,longitude:o.longitude})}ngOnDestroy(){this.showroomNameSubscription?.unsubscribe(),this.propertyFormSubscription?.unsubscribe(),this.showroomAddressSubscription?.unsubscribe()}static{this.\u0275fac=function(o){return new(o||e)(f(S),f(Q))}}static{this.\u0275cmp=g({type:e,selectors:[["app-self-serve-property-address"]],decls:16,vars:2,consts:[[1,"showroom_listing_wrapper"],[1,"mx-1320"],[1,"row"],[1,"col-md-12","align-self-center"],[1,"content_ui","page_title_wrap"],[1,"heading"],[1,"subtitle"],[3,"formGroup"],[1,"form_field_wrapper","pt-46","inner_float_group"],[1,"form-group"],[1,"fg-inner","float_label"],["type","text","formControlName","address","placeholder","Start typing\u2026","appGoogleAutocomplete","",1,"form-control","custom-input-1",3,"onAddressChange","paste","options"],[1,"float_label_txt"]],template:function(o,i){o&1&&(a(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h3",5),s(6,"What is your property address?"),r(),a(7,"p",6),s(8,"We will use your general location to help market your Showroom \u2014 your property address will never be displayed publicly. "),r(),a(9,"form",7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"input",11),C("onAddressChange",function(m){return i.onAutoCompleteSelect(m)})("paste",function(){return i.onAddressPaste()}),r(),a(14,"label",12),s(15," Property address "),r()()()()()()()()()()),o&2&&(n(9),y("formGroup",i.propertyAddressForm),n(4),y("options",i.options))},dependencies:[D,k,N,x,A,P,I,ye],encapsulation:2})}}return e})();function mt(e,c){e&1&&p(0,"app-self-serve-property-about")}function pt(e,c){e&1&&p(0,"app-self-serve-property-selection")}function dt(e,c){e&1&&p(0,"app-self-serve-property-name")}function ut(e,c){e&1&&p(0,"app-self-serve-property-cover")}function wt(e,c){e&1&&p(0,"app-self-serve-property-logo")}function vt(e,c){e&1&&p(0,"app-self-serve-property-listing")}function yt(e,c){e&1&&p(0,"app-self-serve-property-address")}var po=(()=>{class e{constructor(t,o,i,l){this.selfServeService=t,this.amplitudeService=o,this.auth=i,this.router=l,this.selfServeService.CURRENT_STEP="property",this.propertyProgressSubscription=this.selfServeService._PROPERTY_PROGRESS.pipe(oe()).subscribe({next:m=>{switch(m){case 0:{this.selfServeService.selfServeProgress=[14,0,0],this.amplitudeService.screenImpressionEvent("property_intro",this.auth.user.getValue(),"",0,!1,this.selfServeService.propertyId);break}case 1:{this.selfServeService.selfServeProgress=[28,0,0],this.amplitudeService.screenImpressionEvent("property_selection",this.auth.user.getValue(),"",0,!1,this.selfServeService.propertyId);break}case 2:{this.selfServeService.selfServeProgress=[42,0,0],this.amplitudeService.screenImpressionEvent("property_showroom_name",this.auth.user.getValue(),"",0,!1,this.selfServeService.propertyId);break}case 3:{this.selfServeService.selfServeProgress=[56,0,0];break}case 4:{this.selfServeService.selfServeProgress=[70,0,0],this.amplitudeService.screenImpressionEvent("property_logo_upload",this.auth.user.getValue(),"",0,!1,this.selfServeService.propertyId);break}case 5:{this.selfServeService.selfServeProgress=[84,0,0],this.amplitudeService.screenImpressionEvent("property_listing_url",this.auth.user.getValue(),"",0,!1,this.selfServeService.propertyId);break}case 6:this.selfServeService.selfServeProgress=[100,0,0],this.selfServeService.PROPERTY_PROGRESS===6&&this.amplitudeService.screenImpressionEvent("property_address",this.auth.user.getValue(),"",0,!1,this.selfServeService.propertyId)}this.selfServeService.setSessionStorageState()}})}ngOnDestroy(){this.propertyProgressSubscription.unsubscribe()}static{this.\u0275fac=function(o){return new(o||e)(f(S),f(X),f(Ie),f(de))}}static{this.\u0275cmp=g({type:e,selectors:[["app-self-serve-property-base"]],decls:7,vars:1,template:function(o,i){if(o&1&&u(0,mt,1,0,"app-self-serve-property-about")(1,pt,1,0,"app-self-serve-property-selection")(2,dt,1,0,"app-self-serve-property-name")(3,ut,1,0,"app-self-serve-property-cover")(4,wt,1,0,"app-self-serve-property-logo")(5,vt,1,0,"app-self-serve-property-listing")(6,yt,1,0,"app-self-serve-property-address"),o&2){let l;w((l=i.selfServeService.PROPERTY_PROGRESS)===0?0:l===1?1:l===2?2:l===3?3:l===4?4:l===5?5:l===6?6:-1)}},dependencies:[Me,Te,He,Re,Be,Ve,Ue],encapsulation:2})}}return e})();export{po as SelfServePropertyBaseComponent}; 5//# sourceMappingURL=chunk-4QG4DNMP.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.