@everymatrix/general-player-register-form 0.0.163 → 0.0.167

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8862,7 +8862,7 @@
8862
8862
  const { console: console_1 } = globals;
8863
8863
  const file = "src/GeneralPlayerRegisterForm.svelte";
8864
8864
 
8865
- // (196:0) {:else}
8865
+ // (199:0) {:else}
8866
8866
  function create_else_block(ctx) {
8867
8867
  let div1;
8868
8868
  let t0;
@@ -8898,9 +8898,9 @@
8898
8898
  ? "RegisterFormContainerMobile"
8899
8899
  : ""));
8900
8900
 
8901
- add_location(div0, file, 200, 4, 7558);
8901
+ add_location(div0, file, 203, 4, 7681);
8902
8902
  attr_dev(div1, "class", "RegisterFormWrapper");
8903
- add_location(div1, file, 196, 2, 7398);
8903
+ add_location(div1, file, 199, 2, 7521);
8904
8904
  },
8905
8905
  m: function mount(target, anchor) {
8906
8906
  insert_dev(target, div1, anchor);
@@ -8996,14 +8996,14 @@
8996
8996
  block,
8997
8997
  id: create_else_block.name,
8998
8998
  type: "else",
8999
- source: "(196:0) {:else}",
8999
+ source: "(199:0) {:else}",
9000
9000
  ctx
9001
9001
  });
9002
9002
 
9003
9003
  return block;
9004
9004
  }
9005
9005
 
9006
- // (194:0) {#if isLoading}
9006
+ // (197:0) {#if isLoading}
9007
9007
  function create_if_block(ctx) {
9008
9008
  let div;
9009
9009
 
@@ -9011,7 +9011,7 @@
9011
9011
  c: function create() {
9012
9012
  div = element("div");
9013
9013
  attr_dev(div, "class", "ModalLoader");
9014
- add_location(div, file, 194, 2, 7356);
9014
+ add_location(div, file, 197, 2, 7479);
9015
9015
  },
9016
9016
  m: function mount(target, anchor) {
9017
9017
  insert_dev(target, div, anchor);
@@ -9026,14 +9026,14 @@
9026
9026
  block,
9027
9027
  id: create_if_block.name,
9028
9028
  type: "if",
9029
- source: "(194:0) {#if isLoading}",
9029
+ source: "(197:0) {#if isLoading}",
9030
9030
  ctx
9031
9031
  });
9032
9032
 
9033
9033
  return block;
9034
9034
  }
9035
9035
 
9036
- // (198:4) {#if !isMobile}
9036
+ // (201:4) {#if !isMobile}
9037
9037
  function create_if_block_6(ctx) {
9038
9038
  let div;
9039
9039
 
@@ -9042,7 +9042,7 @@
9042
9042
  div = element("div");
9043
9043
  attr_dev(div, "class", "RegisterFormImage");
9044
9044
  set_style(div, "background-image", "url('" + /*imagedesktop*/ ctx[0] + "')");
9045
- add_location(div, file, 198, 6, 7458);
9045
+ add_location(div, file, 201, 6, 7581);
9046
9046
  },
9047
9047
  m: function mount(target, anchor) {
9048
9048
  insert_dev(target, div, anchor);
@@ -9061,14 +9061,14 @@
9061
9061
  block,
9062
9062
  id: create_if_block_6.name,
9063
9063
  type: "if",
9064
- source: "(198:4) {#if !isMobile}",
9064
+ source: "(201:4) {#if !isMobile}",
9065
9065
  ctx
9066
9066
  });
9067
9067
 
9068
9068
  return block;
9069
9069
  }
9070
9070
 
9071
- // (202:6) {#if showRegisterStepOne || showRegisterStepTwo || showRegisterStepThree}
9071
+ // (205:6) {#if showRegisterStepOne || showRegisterStepTwo || showRegisterStepThree}
9072
9072
  function create_if_block_5(ctx) {
9073
9073
  let div3;
9074
9074
  let div0;
@@ -9093,21 +9093,21 @@
9093
9093
  ? "RegisterStepDashColor"
9094
9094
  : ""));
9095
9095
 
9096
- add_location(div0, file, 203, 10, 7792);
9096
+ add_location(div0, file, 206, 10, 7915);
9097
9097
 
9098
9098
  attr_dev(div1, "class", div1_class_value = "RegisterSecondStepDash " + (/*showRegisterStepTwo*/ ctx[2] || !/*showRegisterStepOne*/ ctx[1] && !/*showRegisterStepTwo*/ ctx[2] && /*showRegisterStepThree*/ ctx[3]
9099
9099
  ? "RegisterStepDashColor"
9100
9100
  : ""));
9101
9101
 
9102
- add_location(div1, file, 204, 10, 8021);
9102
+ add_location(div1, file, 207, 10, 8144);
9103
9103
 
9104
9104
  attr_dev(div2, "class", div2_class_value = "RegisterThirdStepDash " + (/*showRegisterStepThree*/ ctx[3]
9105
9105
  ? "RegisterStepDashColor"
9106
9106
  : ""));
9107
9107
 
9108
- add_location(div2, file, 205, 10, 8202);
9108
+ add_location(div2, file, 208, 10, 8325);
9109
9109
  attr_dev(div3, "class", "RegisterSteps");
9110
- add_location(div3, file, 202, 8, 7730);
9110
+ add_location(div3, file, 205, 8, 7853);
9111
9111
  },
9112
9112
  m: function mount(target, anchor) {
9113
9113
  insert_dev(target, div3, anchor);
@@ -9116,7 +9116,7 @@
9116
9116
  append_dev(div3, div1);
9117
9117
  append_dev(div3, t1);
9118
9118
  append_dev(div3, div2);
9119
- /*div3_binding*/ ctx[17](div3);
9119
+ /*div3_binding*/ ctx[18](div3);
9120
9120
  },
9121
9121
  p: function update(ctx, dirty) {
9122
9122
  if (dirty[0] & /*showRegisterStepOne, showRegisterStepTwo, showRegisterStepThree*/ 14 && div0_class_value !== (div0_class_value = "RegisterFirstStepDash " + (/*showRegisterStepOne*/ ctx[1] || !/*showRegisterStepOne*/ ctx[1] && /*showRegisterStepTwo*/ ctx[2] || !/*showRegisterStepOne*/ ctx[1] && !/*showRegisterStepTwo*/ ctx[2] && /*showRegisterStepThree*/ ctx[3]
@@ -9139,7 +9139,7 @@
9139
9139
  },
9140
9140
  d: function destroy(detaching) {
9141
9141
  if (detaching) detach_dev(div3);
9142
- /*div3_binding*/ ctx[17](null);
9142
+ /*div3_binding*/ ctx[18](null);
9143
9143
  }
9144
9144
  };
9145
9145
 
@@ -9147,14 +9147,14 @@
9147
9147
  block,
9148
9148
  id: create_if_block_5.name,
9149
9149
  type: "if",
9150
- source: "(202:6) {#if showRegisterStepOne || showRegisterStepTwo || showRegisterStepThree}",
9150
+ source: "(205:6) {#if showRegisterStepOne || showRegisterStepTwo || showRegisterStepThree}",
9151
9151
  ctx
9152
9152
  });
9153
9153
 
9154
9154
  return block;
9155
9155
  }
9156
9156
 
9157
- // (209:6) {#if showRegisterStepOne}
9157
+ // (212:6) {#if showRegisterStepOne}
9158
9158
  function create_if_block_4(ctx) {
9159
9159
  let div;
9160
9160
  let general_player_register_form_step1;
@@ -9163,9 +9163,9 @@
9163
9163
  c: function create() {
9164
9164
  div = element("div");
9165
9165
  general_player_register_form_step1 = element("general-player-register-form-step1");
9166
- add_location(general_player_register_form_step1, file, 210, 10, 8408);
9166
+ add_location(general_player_register_form_step1, file, 213, 10, 8531);
9167
9167
  attr_dev(div, "class", "RegisterFormStep1");
9168
- add_location(div, file, 209, 8, 8366);
9168
+ add_location(div, file, 212, 8, 8489);
9169
9169
  },
9170
9170
  m: function mount(target, anchor) {
9171
9171
  insert_dev(target, div, anchor);
@@ -9180,14 +9180,14 @@
9180
9180
  block,
9181
9181
  id: create_if_block_4.name,
9182
9182
  type: "if",
9183
- source: "(209:6) {#if showRegisterStepOne}",
9183
+ source: "(212:6) {#if showRegisterStepOne}",
9184
9184
  ctx
9185
9185
  });
9186
9186
 
9187
9187
  return block;
9188
9188
  }
9189
9189
 
9190
- // (214:6) {#if showRegisterStepTwo}
9190
+ // (217:6) {#if showRegisterStepTwo}
9191
9191
  function create_if_block_3(ctx) {
9192
9192
  let div;
9193
9193
  let general_player_register_form_step2;
@@ -9196,9 +9196,9 @@
9196
9196
  c: function create() {
9197
9197
  div = element("div");
9198
9198
  general_player_register_form_step2 = element("general-player-register-form-step2");
9199
- add_location(general_player_register_form_step2, file, 215, 10, 8556);
9199
+ add_location(general_player_register_form_step2, file, 218, 10, 8679);
9200
9200
  attr_dev(div, "class", "RegisterFormStep2");
9201
- add_location(div, file, 214, 8, 8514);
9201
+ add_location(div, file, 217, 8, 8637);
9202
9202
  },
9203
9203
  m: function mount(target, anchor) {
9204
9204
  insert_dev(target, div, anchor);
@@ -9213,14 +9213,14 @@
9213
9213
  block,
9214
9214
  id: create_if_block_3.name,
9215
9215
  type: "if",
9216
- source: "(214:6) {#if showRegisterStepTwo}",
9216
+ source: "(217:6) {#if showRegisterStepTwo}",
9217
9217
  ctx
9218
9218
  });
9219
9219
 
9220
9220
  return block;
9221
9221
  }
9222
9222
 
9223
- // (219:6) {#if showRegisterStepThree}
9223
+ // (222:6) {#if showRegisterStepThree}
9224
9224
  function create_if_block_2(ctx) {
9225
9225
  let div;
9226
9226
  let general_player_register_form_step3;
@@ -9230,9 +9230,9 @@
9230
9230
  div = element("div");
9231
9231
  general_player_register_form_step3 = element("general-player-register-form-step3");
9232
9232
  set_custom_element_data(general_player_register_form_step3, "userconsentsexist", /*userconsentsexist*/ ctx[8]);
9233
- add_location(general_player_register_form_step3, file, 220, 10, 8706);
9233
+ add_location(general_player_register_form_step3, file, 223, 10, 8829);
9234
9234
  attr_dev(div, "class", "RegisterFormStep3");
9235
- add_location(div, file, 219, 8, 8664);
9235
+ add_location(div, file, 222, 8, 8787);
9236
9236
  },
9237
9237
  m: function mount(target, anchor) {
9238
9238
  insert_dev(target, div, anchor);
@@ -9252,14 +9252,14 @@
9252
9252
  block,
9253
9253
  id: create_if_block_2.name,
9254
9254
  type: "if",
9255
- source: "(219:6) {#if showRegisterStepThree}",
9255
+ source: "(222:6) {#if showRegisterStepThree}",
9256
9256
  ctx
9257
9257
  });
9258
9258
 
9259
9259
  return block;
9260
9260
  }
9261
9261
 
9262
- // (224:6) {#if showConfirmation}
9262
+ // (227:6) {#if showConfirmation}
9263
9263
  function create_if_block_1(ctx) {
9264
9264
  let div;
9265
9265
  let svg;
@@ -9301,24 +9301,24 @@
9301
9301
  t7 = space();
9302
9302
  button = element("button");
9303
9303
  button.textContent = "Go To Login";
9304
- add_location(style, file, 225, 79, 8943);
9305
- add_location(defs, file, 225, 73, 8937);
9304
+ add_location(style, file, 228, 79, 9066);
9305
+ add_location(defs, file, 228, 73, 9060);
9306
9306
  attr_dev(path, "class", "a");
9307
9307
  attr_dev(path, "d", "M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z");
9308
- add_location(path, file, 225, 118, 8982);
9308
+ add_location(path, file, 228, 118, 9105);
9309
9309
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
9310
9310
  attr_dev(svg, "viewBox", "0 0 73.95 51");
9311
- add_location(svg, file, 225, 10, 8874);
9311
+ add_location(svg, file, 228, 10, 8997);
9312
9312
  attr_dev(h2, "class", "RegisterConfirmationTitle");
9313
- add_location(h2, file, 226, 10, 9079);
9313
+ add_location(h2, file, 229, 10, 9202);
9314
9314
  attr_dev(p0, "class", "RegisterConfirmationSubtitle");
9315
- add_location(p0, file, 227, 10, 9155);
9315
+ add_location(p0, file, 230, 10, 9278);
9316
9316
  attr_dev(p1, "class", "RegisterConfirmationNote");
9317
- add_location(p1, file, 228, 10, 9235);
9317
+ add_location(p1, file, 231, 10, 9358);
9318
9318
  attr_dev(button, "class", "RegisterConfirmationGoToLogin");
9319
- add_location(button, file, 229, 10, 9310);
9319
+ add_location(button, file, 232, 10, 9433);
9320
9320
  attr_dev(div, "class", "RegisterConfirmation");
9321
- add_location(div, file, 224, 8, 8829);
9321
+ add_location(div, file, 227, 8, 8952);
9322
9322
  },
9323
9323
  m: function mount(target, anchor) {
9324
9324
  insert_dev(target, div, anchor);
@@ -9360,7 +9360,7 @@
9360
9360
  block,
9361
9361
  id: create_if_block_1.name,
9362
9362
  type: "if",
9363
- source: "(224:6) {#if showConfirmation}",
9363
+ source: "(227:6) {#if showConfirmation}",
9364
9364
  ctx
9365
9365
  });
9366
9366
 
@@ -9458,6 +9458,7 @@
9458
9458
  let { imagedesktop = "" } = $$props;
9459
9459
  let { playerid = "" } = $$props;
9460
9460
  let { session = "" } = $$props;
9461
+ let { trackedanalyticsdata = "" } = $$props;
9461
9462
  let isLoading = false;
9462
9463
  let showRegisterStepOne = true;
9463
9464
  let showRegisterStepTwo = false;
@@ -9535,6 +9536,9 @@
9535
9536
  userData.mobile.number = data.mobile;
9536
9537
  userData.userConsents = {};
9537
9538
 
9539
+ // analytics data
9540
+ userData.affiliateMarker = trackedanalyticsdata;
9541
+
9538
9542
  if (userconsentsexist) {
9539
9543
  userData.userConsents.additionalProp1 = data.consentOffersSms;
9540
9544
  userData.userConsents.additionalProp2 = data.consentOffersEmail;
@@ -9572,7 +9576,7 @@
9572
9576
  break;
9573
9577
  case "RegisterStepThree":
9574
9578
  createData("RegisterStepThree", e.data.registerStepThreeData);
9575
- getData(userData);
9579
+ sendData(userData);
9576
9580
  break;
9577
9581
  case "GoBackStepTwo":
9578
9582
  createData("RegisterStepTwo", e.data.registerStepTwoData);
@@ -9592,7 +9596,7 @@
9592
9596
  }
9593
9597
  };
9594
9598
 
9595
- const getData = userData => __awaiter(void 0, void 0, void 0, function* () {
9599
+ const sendData = userData => __awaiter(void 0, void 0, void 0, function* () {
9596
9600
  let sendRegistrationData = {
9597
9601
  method: "PUT",
9598
9602
  headers: {
@@ -9640,7 +9644,14 @@
9640
9644
  };
9641
9645
  });
9642
9646
 
9643
- const writable_props = ["endpoint", "cmsendpoint", "imagedesktop", "playerid", "session"];
9647
+ const writable_props = [
9648
+ "endpoint",
9649
+ "cmsendpoint",
9650
+ "imagedesktop",
9651
+ "playerid",
9652
+ "session",
9653
+ "trackedanalyticsdata"
9654
+ ];
9644
9655
 
9645
9656
  Object.keys($$props).forEach(key => {
9646
9657
  if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console_1.warn(`<undefined> was created with unknown prop '${key}'`);
@@ -9659,6 +9670,7 @@
9659
9670
  if ("imagedesktop" in $$props) $$invalidate(0, imagedesktop = $$props.imagedesktop);
9660
9671
  if ("playerid" in $$props) $$invalidate(15, playerid = $$props.playerid);
9661
9672
  if ("session" in $$props) $$invalidate(16, session = $$props.session);
9673
+ if ("trackedanalyticsdata" in $$props) $$invalidate(17, trackedanalyticsdata = $$props.trackedanalyticsdata);
9662
9674
  };
9663
9675
 
9664
9676
  $$self.$capture_state = () => ({
@@ -9670,6 +9682,7 @@
9670
9682
  imagedesktop,
9671
9683
  playerid,
9672
9684
  session,
9685
+ trackedanalyticsdata,
9673
9686
  isLoading,
9674
9687
  showRegisterStepOne,
9675
9688
  showRegisterStepTwo,
@@ -9694,7 +9707,7 @@
9694
9707
  scrollTop,
9695
9708
  createData,
9696
9709
  messageHandler,
9697
- getData,
9710
+ sendData,
9698
9711
  switchToLogin
9699
9712
  });
9700
9713
 
@@ -9705,6 +9718,7 @@
9705
9718
  if ("imagedesktop" in $$props) $$invalidate(0, imagedesktop = $$props.imagedesktop);
9706
9719
  if ("playerid" in $$props) $$invalidate(15, playerid = $$props.playerid);
9707
9720
  if ("session" in $$props) $$invalidate(16, session = $$props.session);
9721
+ if ("trackedanalyticsdata" in $$props) $$invalidate(17, trackedanalyticsdata = $$props.trackedanalyticsdata);
9708
9722
  if ("isLoading" in $$props) $$invalidate(10, isLoading = $$props.isLoading);
9709
9723
  if ("showRegisterStepOne" in $$props) $$invalidate(1, showRegisterStepOne = $$props.showRegisterStepOne);
9710
9724
  if ("showRegisterStepTwo" in $$props) $$invalidate(2, showRegisterStepTwo = $$props.showRegisterStepTwo);
@@ -9752,6 +9766,7 @@
9752
9766
  cmsendpoint,
9753
9767
  playerid,
9754
9768
  session,
9769
+ trackedanalyticsdata,
9755
9770
  div3_binding
9756
9771
  ];
9757
9772
  }
@@ -9776,7 +9791,8 @@
9776
9791
  cmsendpoint: 14,
9777
9792
  imagedesktop: 0,
9778
9793
  playerid: 15,
9779
- session: 16
9794
+ session: 16,
9795
+ trackedanalyticsdata: 17
9780
9796
  },
9781
9797
  [-1, -1]
9782
9798
  );
@@ -9794,7 +9810,14 @@
9794
9810
  }
9795
9811
 
9796
9812
  static get observedAttributes() {
9797
- return ["endpoint", "cmsendpoint", "imagedesktop", "playerid", "session"];
9813
+ return [
9814
+ "endpoint",
9815
+ "cmsendpoint",
9816
+ "imagedesktop",
9817
+ "playerid",
9818
+ "session",
9819
+ "trackedanalyticsdata"
9820
+ ];
9798
9821
  }
9799
9822
 
9800
9823
  get endpoint() {
@@ -9841,6 +9864,15 @@
9841
9864
  this.$set({ session });
9842
9865
  flush();
9843
9866
  }
9867
+
9868
+ get trackedanalyticsdata() {
9869
+ return this.$$.ctx[17];
9870
+ }
9871
+
9872
+ set trackedanalyticsdata(trackedanalyticsdata) {
9873
+ this.$set({ trackedanalyticsdata });
9874
+ flush();
9875
+ }
9844
9876
  }
9845
9877
 
9846
9878
  !customElements.get('general-player-register-form') && customElements.define('general-player-register-form', GeneralPlayerRegisterForm);